{"id":"CVE-2017-12603","published":"2017-08-07T01:00:00Z","modified":"2024-08-05T18:43:56Z","title":"OpenCV (Open Source Computer Vision Library) through 3.3 has an invalid write in the cv::RLByteStream::getBytes…","vendor":null,"product":null,"tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.01986,"percentile":0.81096,"provenance":"source"},"cwes":[],"references":[{"url":"https://lists.debian.org/debian-lts-announce/2018/07/msg00030.html","tags":["mailing-list","x_refsource_MLIST"]},{"url":"https://security.gentoo.org/glsa/201712-02","tags":["vendor-advisory","x_refsource_GENTOO"]},{"url":"https://github.com/xiaoqx/pocs/blob/master/opencv.md","tags":["x_refsource_MISC"]},{"url":"https://github.com/opencv/opencv/issues/9309","tags":["x_refsource_MISC"]},{"url":"https://lists.debian.org/debian-lts-announce/2021/10/msg00028.html","tags":["mailing-list","x_refsource_MLIST"]}],"priority":{"score":21.2,"factors":[{"name":"EPSS percentile","points":16.22},{"name":"Public exploit code","points":5.0}]},"affected":[{"ecosystem":"PyPI","package":"opencv-python","vulnerableRanges":["<3.3.1.11"],"patched":["3.3.1.11"],"from":["GHSA-6v6p-p97v-g2p7","PYSEC-2026-2809"],"provenance":"source"},{"ecosystem":"PyPI","package":"opencv-contrib-python","vulnerableRanges":["<3.3.1.11"],"patched":["3.3.1.11"],"from":["GHSA-6v6p-p97v-g2p7","PYSEC-2026-701"],"provenance":"source"}],"summary":{"text":"The flaw is an invalid write in the cv::RLByteStream::getBytes function in modules/imgcodecs/src/bitstrm.cpp of OpenCV (Open Source Computer Vision Library), through version 3.3. It is triggered when reading an image file with cv::imread. It is demonstrated by a crafted image input to cv::imread, which suggests an attacker would need to get a malicious image file processed by an application using that function.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T07:17:56Z"},"euvd":{"id":"EUVD-2021-2171","exploited":false,"provenance":"source"},"exploitRefs":["https://github.com/xiaoqx/pocs/blob/master/opencv.md"]}