CVE-2017-12862
mediumpriority · track · 36EPSS 0.031 · 88 %ileEURUUSEPSS · scored 2026-10-28
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.
cvss
Technical severity, 0–10. One row per scoring source.
base score 0–10 · higher = more severe · hover a vector to decode⚠ sources disagree · medium–high · 6.8–8.8
weaknesses
The CWE weakness classes this flaw belongs to.
affected products (13)
Products and version ranges known to be affected.
advisories (3)
Vendor and ecosystem advisories describing this.
- GHSA-5rpc-gwh9-q9fgImproper Restriction of Operations within the Bounds of a Memory Buffer in OpenCV2021-10-12ghsa · osvUS
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 (corresponding to OpenCV-Python 3.3.0.9) and earlier.
- PYSEC-2026-2807Improper Restriction of Operations within the Bounds of a Memory Buffer in OpenCV2026-07-09vendor · osvUS
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 (corresponding to OpenCV-Python 3.3.0.9) and earlier.
- PYSEC-2026-699Improper Restriction of Operations within the Bounds of a Memory Buffer in OpenCV2026-07-02vendor · osvUS
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 (corresponding to OpenCV-Python 3.3.0.9) and earlier.
also known as (9)
Other names and identifiers for this entity.
sources
Which sources assert this record, and when.
references (13)
External citations — patches, advisories, analysis.
- https://github.com/opencv/opencv/issues/9370cnnvd
- https://lists.debian.org/debian-lts-announce/2018/07/msg00030.htmlcnnvd
- https://lists.debian.org/debian-lts-announce/2021/10/msg00028.htmlcnnvd
- https://security.gentoo.org/glsa/201712-02cnnvd
- https://www.auscert.org.au/bulletins/ESB-2021.3620cnnvd
- https://github.com/opencv/opencv/issues/9370enisa_euvd
- https://lists.debian.org/debian-lts-announce/2018/07/msg00030.htmlenisa_euvd
- https://lists.debian.org/debian-lts-announce/2021/10/msg00028.htmlenisa_euvd
Attackers weaponise vulnerabilities like this against internet-exposed services. See what is exposed on your perimeter with a free passive scan.
Free scan