CVE-2017-12862
HIGH8.8EPSS 2.1%Improper Restriction of Operations within the Bounds of a Memory Buffer in OpenCV
Published: 10/12/2021Modified: 4/28/2026
Description
In modules/imgcodecs/src/grfmt_pxm.cpp, the length of buffer AutoBuffer _src is small than expected, which will cause copy buffer overflow later. If the image is from remote, may lead to remote code execution or denial of service. This affects Opencv 3.3 and earlier.
Affected packages (3)
- Debian/opencvfrom 0, < 3.2.0+dfsg-6
- PyPI/opencv-contrib-pythonfrom 0, < 3.3.1.11
- PyPI/opencv-pythonfrom 0, < 3.3.1.11
CVSS scores
| Source | Version | Severity | Vector |
|---|---|---|---|
| osv | CVSS 3.1 | HIGH8.8 | CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
References (8)
- ADVISORYhttps://nvd.nist.gov/vuln/detail/CVE-2017-12862
- ADVISORYhttps://security-tracker.debian.org/tracker/CVE-2017-12862
- PATCHhttps://github.com/opencv/opencv-python
- WEBhttps://github.com/opencv/opencv/issues/9370
- WEBhttps://github.com/opencv/opencv/pull/9376
- WEBhttps://lists.debian.org/debian-lts-announce/2018/07/msg00030.html
- WEBhttps://lists.debian.org/debian-lts-announce/2021/10/msg00028.html
- WEBhttps://security.gentoo.org/glsa/201712-02