{"id":"CVE-2017-12598","details":"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.","aliases":["GHSA-33h2-69j3-r336"],"modified":"2026-04-02T00:00:33.198561Z","published":"2017-08-07T01:29:00.420Z","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":{"versions":[{"introduced":"0"},{"last_affected":"3.3.0"}]}}],"versions":["2.2","2.3.0","2.3.1","2.4.0","2.4.1","2.4.10","2.4.10.1","2.4.10.2","2.4.10.3","2.4.10.4","2.4.11","2.4.12","2.4.12.1","2.4.12.2","2.4.12.3","2.4.13","2.4.13.1","2.4.13.2","2.4.13.3","2.4.13.4","2.4.13.5","2.4.13.6","2.4.13.7","2.4.2","2.4.3","2.4.3-rc","2.4.3.1","2.4.3.2","2.4.4","2.4.4-beta","2.4.5","2.4.6","2.4.6.1","2.4.6.2","2.4.6.2-rc1","2.4.6.2r2","2.4.6.2r3","2.4.7","2.4.7-rc1","2.4.7.1","2.4.7.2","2.4.8","2.4.8.1","2.4.8.2","2.4.8.3","2.4.9","2.4.9.1","3.0-ocl-tech-preview","3.0-ocl-tp2","3.0.0","3.0.0-alpha","3.0.0-beta","3.0.0-rc1","3.1.0","3.2.0","3.2.0-rc","3.3.0-cvsdk","3.3.0-rc"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2017-12598.json","unresolved_ranges":[{"events":[{"introduced":"0"},{"last_affected":"8.0"}]},{"events":[{"introduced":"0"},{"last_affected":"9.0"}]}]}}],"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"}]}