{"id":"CVE-2017-12601","published":"2017-08-07T01:00:00Z","modified":"2024-08-05T18:43:56Z","title":"OpenCV (Open Source Computer Vision Library) through 3.3 has a buffer overflow in the cv::BmpDecoder::readData…","vendor":null,"product":null,"tier":"tail","description":{"text":"OpenCV (Open Source Computer Vision Library) through 3.3 has a buffer overflow in the cv::BmpDecoder::readData function in modules/imgcodecs/src/grfmt_bmp.cpp when reading an image file by using cv::imread, as demonstrated by the 4-buf-overflow-readData-memcpy test case.","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.02088,"percentile":0.82052,"provenance":"source"},"cwes":[],"references":[{"url":"https://lists.debian.org/debian-lts-announce/2018/07/msg00030.html","tags":["mailing-list","x_refsource_MLIST"]},{"url":"https://security.gentoo.org/glsa/201712-02","tags":["vendor-advisory","x_refsource_GENTOO"]},{"url":"https://github.com/xiaoqx/pocs/blob/master/opencv.md","tags":["x_refsource_MISC"]},{"url":"https://github.com/opencv/opencv/issues/9309","tags":["x_refsource_MISC"]},{"url":"https://lists.debian.org/debian-lts-announce/2021/10/msg00028.html","tags":["mailing-list","x_refsource_MLIST"]}],"priority":{"score":21.4,"factors":[{"name":"EPSS percentile","points":16.41},{"name":"Public exploit code","points":5.0}]},"affected":[{"ecosystem":"PyPI","package":"opencv-python","vulnerableRanges":["<3.3.1.11"],"patched":["3.3.1.11"],"from":["GHSA-w96g-3p64-63wr","PYSEC-2026-2831"],"provenance":"source"},{"ecosystem":"PyPI","package":"opencv-contrib-python","vulnerableRanges":["<3.3.1.11"],"patched":["3.3.1.11"],"from":["GHSA-w96g-3p64-63wr","PYSEC-2026-716"],"provenance":"source"}],"summary":{"text":"The flaw is a buffer overflow in the cv::BmpDecoder::readData function, located in modules/imgcodecs/src/grfmt_bmp.cpp of OpenCV (Open Source Computer Vision Library) through version 3.3. An attacker can trigger it by supplying a crafted BMP image that is read via cv::imread, so the conditions are that the application must load an attacker-influenced image file.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T07:17:20Z"},"euvd":{"id":"EUVD-2021-2264","exploited":false,"provenance":"source"},"exploitRefs":["https://github.com/xiaoqx/pocs/blob/master/opencv.md"]}