CVE-2017-12603

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 v4 NEW
โ€”
not yet in upstream
VIR risk
8.8

Description

OpenCV (Open Source Computer Vision Library) through 3.3 has an invalid write in the cv::RLByteStream::getBytes function in modules/imgcodecs/src/bitstrm.cpp when reading an image file by using cv::imread, as demonstrated by the 2-opencv-heapoverflow-fseek test case.

Predictions

Exploit likelihood
92%
Patch ETA
โ€”

Heuristic predictions, AS-IS, for prioritization only.

Mitigations

No mitigations published for this CVE yet.

The vendor-content worker queues fetches as references arrive (check back in a few minutes). Or โ€” if you've already worked around this in production โ€” publish your fix to the community-verified tier.

โœš Propose a mitigation on Community โ†’ Mitigations published via the community go through AI scoring + 2 human reviewers + 7-day silent objection window before landing here with source_tier=community-verified.

OS impact

debian Debian Mixed 7 releases
VersionStatusFixed in
trixie Fixed 3.2.0+dfsg-6
sid Fixed 3.2.0+dfsg-6
forky Fixed 3.2.0+dfsg-6
bullseye Fixed 3.2.0+dfsg-6
bookworm Fixed 3.2.0+dfsg-6
9.0 Affected โ€”
8.0 Affected โ€”

Package impact

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

Application impact

VendorProductVersionsFixed
opencvopencv{"endIncluding":"3.3.0"}

References

CWEs

CWE-787

Community-verified mitigations for this CVE will appear above when contributors publish them.

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