🛡️ CVE-2017-12598 — opencv-contrib-python
Description
Out-of-bounds Read in OpenCV
OpenCV (Open Source Computer Vision Library) through 3.3 (corresponding to OpenCV-Python 3.3.0.9) has an out-of-bounds read error in the cv::RBaseStream::readBlock function in modules/imgcodecs/src/bitstrm.cpp when reading an image file by using cv::imread, as demonstrated by the 8-opencv-invalid-read-fread test case.
How this vulnerability can be exploited
This issue can be reached over the network, attack complexity is low, an attacker needs no privileges on the target. A user must be tricked into taking some action. The scope is unchanged, so the impact stays within the vulnerable component. Rated impact: confidentiality high, integrity high, availability high.
Weakness class
CVE-2017-12598 is classified as CWE-125: Out-of-bounds Read. The code reads past the limits of a buffer, exposing adjacent memory contents or crashing the process.
Affected software
CVE-2017-12598 is recorded against 2 packages.
- opencv-contrib-python (fixed in 3.3.1.11)
- opencv-python (fixed in 3.3.1.11)
Timeline and source
Published on 12 October 2021 and last revised on 13 July 2026. No public exploit is currently recorded for this entry. Record sourced from OSV.
References
nvd.nist.gov (Advisory)
github.com (Web)
github.com (Web)
github.com (Package)
github.com (Web)
github.com (Web)
github.com (Web)
lists.debian.org (Web)
lists.debian.org (Web)
security.gentoo.org (Web)
Details
CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Affected Packages
| Software | From version | Fixed in |
|---|---|---|
| opencv-contrib-python | — | 3.3.1.11 |
| opencv-python | — | 3.3.1.11 |
References
Similar Threats
- High CVE-2016-1516
- Unknown CVE-2016-1517
- High CVE-2017-1000450
- High CVE-2017-12597
- High CVE-2017-12602
More CVE 2017 advisories
Browse all of CVE 2017 in the advisory index.
Site Security Check
Is opencv-contrib-python part of your stack?
CVE-2017-12598 is rated CVSS 8.0 High. BotEraser scans your installation against known CVE records and tells you whether this vulnerability applies to the versions you actually run.
Scan My Site Free →No credit card required · Results in minutes
ⓘ Data Notice: The information presented above has been compiled from publicly available internet sources. Boteraser aggregates this data solely for informational purposes and does not independently classify, evaluate, or endorse any findings about the vulnerabilities listed. The accuracy and completeness of this information is the sole responsibility of the original publishers. Boteraser and its operators accept no liability for any decisions made based on this data.