CVE-2017-12603
mediumpriority · track · 36EPSS 0.020 · 80 %ileEURUUSEPSS · scored 2026-10-27
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.
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-6v6p-p97v-g2p7Out-of-bounds Write in OpenCV2021-10-12ghsa · osvUS
OpenCV (Open Source Computer Vision Library) through 3.3 (corresponding to OpenCV-Python and OpenCV-Contrib-Python 3.3.0.9) 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.
- PYSEC-2026-2809Out-of-bounds Write in OpenCV2026-07-09vendor · osvUS
OpenCV (Open Source Computer Vision Library) through 3.3 (corresponding to OpenCV-Python and OpenCV-Contrib-Python 3.3.0.9) 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.
- PYSEC-2026-701Out-of-bounds Write in OpenCV2026-07-02vendor · osvUS
OpenCV (Open Source Computer Vision Library) through 3.3 (corresponding to OpenCV-Python and OpenCV-Contrib-Python 3.3.0.9) 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.
also known as (9)
Other names and identifiers for this entity.
sources
Which sources assert this record, and when.
references (16)
External citations — patches, advisories, analysis.
- https://github.com/opencv/opencv/issues/9309cnnvd
- https://github.com/xiaoqx/pocs/blob/master/opencv.mdcnnvd
- 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/9309enisa_euvd
- https://github.com/xiaoqx/pocs/blob/master/opencv.mdenisa_euvd
Attackers weaponise vulnerabilities like this against internet-exposed services. See what is exposed on your perimeter with a free passive scan.
Free scan