{"id":"CVE-2017-12603","details":"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.","aliases":["GHSA-6v6p-p97v-g2p7"],"modified":"2026-04-11T12:04:50.097040Z","published":"2017-08-07T01:29:00.577Z","database_specific":{"unresolved_ranges":[{"cpe":"cpe:2.3:o:debian:debian_linux:8.0:*:*:*:*:*:*:*","source":"CPE_FIELD","extracted_events":[{"last_affected":"8.0"}]},{"cpe":"cpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:*","source":"CPE_FIELD","extracted_events":[{"last_affected":"9.0"}]}]},"references":[{"type":"ADVISORY","url":"https://github.com/xiaoqx/pocs/blob/master/opencv.md"},{"type":"ADVISORY","url":"https://lists.debian.org/debian-lts-announce/2018/07/msg00030.html"},{"type":"ADVISORY","url":"https://lists.debian.org/debian-lts-announce/2021/10/msg00028.html"},{"type":"ADVISORY","url":"https://security.gentoo.org/glsa/201712-02"},{"type":"FIX","url":"https://github.com/opencv/opencv/issues/9309"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/opencv/opencv","events":[{"introduced":"0"},{"last_affected":"e8357c0544c82beda237defc0abc90ee28992ee7"}],"database_specific":{"cpe":"cpe:2.3:a:opencv:opencv:*:*:*:*:*:*:*:*","source":"CPE_FIELD","extracted_events":[{"introduced":"0"},{"last_affected":"3.3.0"}]}}],"versions":["2.2","3.2.0-rc","3.3.0-cvsdk","3.3.0-rc"],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2017-12603.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H"}]}