CVE-2017-12864

high
Published 2021-10-12 · Modified 2026-05-13
CVSS v3
8.8
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
CVSS v2
6.8
VIR risk
8.8

Description

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.

Predictions

Exploit likelihood
92%
Patch ETA

Heuristic predictions, AS-IS, for prioritization only.

Mitigations

vendor Authored 2026-05-27

Vendor advisory: debian — https://security-tracker.debian.org/tracker/CVE-2017-12864

vendor Authored 2026-05-27

Vendor advisory: cve@mitre.org — https://github.com/opencv/opencv/issues/9372

OS impact

OSVersionStatusFixed in
debian debianbookwormfixed3.2.0+dfsg-6
debian debianbullseyefixed3.2.0+dfsg-6
debian debianforkyfixed3.2.0+dfsg-6
debian debiansidfixed3.2.0+dfsg-6
debian debiantrixiefixed3.2.0+dfsg-6
debian debian8.0affected
debian debian9.0affected

Package impact

EcosystemPackageVulnerableFixed
python PyPIopencv-contrib-python<3.3.1.113.3.1.11
python PyPIopencv-python<3.3.1.113.3.1.11

Application impact

VendorProductVersionsFixed
opencvopencv{"endIncluding":"3.3.0"}

References

CWEs

CWE-190

Verify integrity in audit chain (admin only). AS-IS.