{"id":"GHSA-6v6p-p97v-g2p7","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"],"modified":"2023-11-08T03:58:52.578451Z","published":"2021-10-12T22:01:44Z","database_specific":{"severity":"HIGH","github_reviewed_at":"2021-10-07T21:00:22Z","nvd_published_at":"2017-08-07T01:29:00Z","github_reviewed":true,"cwe_ids":["CWE-787"]},"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"}],"affected":[{"package":{"name":"opencv-python","ecosystem":"PyPI","purl":"pkg:pypi/opencv-python"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.3.1.11"}]}],"versions":["3.1.0","3.1.0.0","3.1.0.1","3.1.0.2","3.1.0.3","3.1.0.4","3.1.0.5","3.2.0.6","3.2.0.7","3.2.0.8","3.3.0.10","3.3.0.9"],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2021/10/GHSA-6v6p-p97v-g2p7/GHSA-6v6p-p97v-g2p7.json","last_known_affected_version_range":"\u003c= 3.3.0.9"}},{"package":{"name":"opencv-contrib-python","ecosystem":"PyPI","purl":"pkg:pypi/opencv-contrib-python"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.3.1.11"}]}],"versions":["3.1.0.0","3.2.0.7","3.2.0.8","3.3.0.10","3.3.0.9"],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2021/10/GHSA-6v6p-p97v-g2p7/GHSA-6v6p-p97v-g2p7.json","last_known_affected_version_range":"\u003c= 3.3.0.9"}}],"schema_version":"1.7.3","severity":[{"type":"CVSS_V3","score":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H"}]}