CVE-2017-12864
mediumpriority · track · 36EPSS 0.027 · 86 %ileEURUUSEPSS · scored 2026-10-28
In opencv/modules/imgcodecs/src/grfmt_pxm.cpp, function ReadNumber did not checkout the input length, which lead to integer overflow. 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-267x-w5hx-8hjrInteger Overflow or Wraparound in OpenCV2021-10-12ghsa · osvUS
In opencv/modules/imgcodecs/src/grfmt_pxm.cpp, function ReadNumber did not checkout the input length, which lead to integer overflow. If the image is from remote, may lead to remote code execution or denial of service. This affects OpenCV 3.3 (corresponding with OpenCV-Python version 3.3.0.9) and earlier.
- PYSEC-2026-2804Integer Overflow or Wraparound in OpenCV2026-07-09vendor · osvUS
In opencv/modules/imgcodecs/src/grfmt_pxm.cpp, function ReadNumber did not checkout the input length, which lead to integer overflow. If the image is from remote, may lead to remote code execution or denial of service. This affects OpenCV 3.3 (corresponding with OpenCV-Python version 3.3.0.9) and earlier.
- PYSEC-2026-697Integer Overflow or Wraparound in OpenCV2026-07-02vendor · osvUS
In opencv/modules/imgcodecs/src/grfmt_pxm.cpp, function ReadNumber did not checkout the input length, which lead to integer overflow. If the image is from remote, may lead to remote code execution or denial of service. This affects OpenCV 3.3 (corresponding with OpenCV-Python version 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/9372cnnvd
- 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/9372enisa_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