{"id":"GHSA-c7gp-2pch-qh2v","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 out-of-bounds write error in the FillUniColor function in utils.cpp when reading an image file by using cv::imread.","aliases":["CVE-2017-12604","PYSEC-2026-2815","PYSEC-2026-706"],"modified":"2026-08-24T00:34:18.225519352Z","published":"2021-10-12T22:01:55Z","database_specific":{"github_reviewed_at":"2021-10-07T20:57:19Z","nvd_published_at":"2017-08-07T01:29:00Z","cwe_ids":["CWE-787"],"severity":"HIGH","github_reviewed":true},"references":[{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2017-12604"},{"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"}]}],"database_specific":{"last_known_affected_version_range":"\u003c= 3.3.0.9","source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2021/10/GHSA-c7gp-2pch-qh2v/GHSA-c7gp-2pch-qh2v.json"}},{"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":{"last_known_affected_version_range":"\u003c= 3.3.0.9","source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2021/10/GHSA-c7gp-2pch-qh2v/GHSA-c7gp-2pch-qh2v.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H"}]}