Vulnerability record · CVE-2017-12598 · published 7 August 2017
CVE-2017-12598: Opencv out-of-bounds read vulnerability
Opencv · Opencv
OpenCV (Open Source Computer Vision Library) through 3.3 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.
Description
OpenCV (Open Source Computer Vision Library) through 3.3 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.
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Affected products
2 vulnerable configurations from NVD's CPE data, grouped by vendor and product.
References
| Link | Tags |
|---|---|
| https://github.com/opencv/opencv/issues/9309 | Issue TrackingPatchThird Party Advisory |
| https://github.com/xiaoqx/pocs/blob/master/opencv.md | Broken LinkThird Party Advisory |
| https://lists.debian.org/debian-lts-announce/2018/07/msg00030.html | Mailing ListThird Party Advisory |
| https://lists.debian.org/debian-lts-announce/2021/10/msg00028.html | Mailing ListThird Party Advisory |
| https://security.gentoo.org/glsa/201712-02 | Third Party Advisory |
| https://github.com/opencv/opencv/issues/9309 | Issue TrackingPatchThird Party Advisory |
| https://github.com/xiaoqx/pocs/blob/master/opencv.md | Broken LinkThird Party Advisory |
| https://lists.debian.org/debian-lts-announce/2018/07/msg00030.html | Mailing ListThird Party Advisory |
| https://lists.debian.org/debian-lts-announce/2021/10/msg00028.html | Mailing ListThird Party Advisory |
| https://security.gentoo.org/glsa/201712-02 | Third Party Advisory |
Track CVE-2017-12598 inside VULONE
Watch it alongside the ransomware crews, C2 infrastructure and forum chatter that reference it, query it through the API and pull it into your SIEM over TAXII.
Related vulnerabilities
Same products first, then exploited flaws of the same weakness class.
Source: NIST National Vulnerability Database (record CVE-2017-12598), CISA KEV, FIRST EPSS (scores of 2026-10-01). This page is refreshed as NVD updates the record.