{"id":"PYSEC-2026-701","summary":"Out-of-bounds Write in OpenCV","details":"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.","aliases":["CVE-2017-12603","GHSA-6v6p-p97v-g2p7"],"modified":"2026-07-06T08:00:48.536522811Z","published":"2026-07-02T14:13:11.333773Z","references":[{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2017-12603"},{"type":"WEB","url":"https://github.com/opencv/opencv/issues/9309"},{"type":"WEB","url":"https://github.com/opencv/opencv/pull/9376"},{"type":"PACKAGE","url":"https://github.com/opencv/opencv-python"},{"type":"WEB","url":"https://github.com/xiaoqx/pocs/blob/master/opencv.md"},{"type":"WEB","url":"https://lists.debian.org/debian-lts-announce/2018/07/msg00030.html"},{"type":"WEB","url":"https://lists.debian.org/debian-lts-announce/2021/10/msg00028.html"},{"type":"WEB","url":"https://security.gentoo.org/glsa/201712-02"},{"type":"PACKAGE","url":"https://pypi.org/project/opencv-contrib-python"},{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-6v6p-p97v-g2p7"}],"affected":[{"package":{"name":"opencv-contrib-python","ecosystem":"PyPI","purl":"pkg:pypi/opencv-contrib-python"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.3.1.11"}]}],"database_specific":{"source":"https://github.com/pypa/advisory-database/blob/main/vulns/opencv-contrib-python/PYSEC-2026-701.yaml"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H"}]}