{"id":"CVE-2017-12864","published":"2017-08-15T16:00:00Z","modified":"2024-08-05T18:51:06Z","title":"In opencv/modules/imgcodecs/src/grfmt_pxm.cpp, function ReadNumber did not checkout the input length, which lead to…","vendor":null,"product":null,"tier":"tail","description":{"text":"In opencv/modules/imgcodecs/src/grfmt_pxm.cpp, function ReadNumber did not checkout the input length, which lead to integer overflow. If the image is from remote, may lead to remote code execution or denial of service. This affects Opencv 3.3 and earlier.","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.02722,"percentile":0.86392,"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/opencv/opencv/issues/9372","tags":["x_refsource_MISC"]},{"url":"https://lists.debian.org/debian-lts-announce/2021/10/msg00028.html","tags":["mailing-list","x_refsource_MLIST"]}],"priority":{"score":17.3,"factors":[{"name":"EPSS percentile","points":17.28}]},"affected":[{"ecosystem":"PyPI","package":"opencv-python","vulnerableRanges":["<3.3.1.11"],"patched":["3.3.1.11"],"from":["GHSA-267x-w5hx-8hjr","PYSEC-2026-2804"],"provenance":"source"},{"ecosystem":"PyPI","package":"opencv-contrib-python","vulnerableRanges":["<3.3.1.11"],"patched":["3.3.1.11"],"from":["GHSA-267x-w5hx-8hjr","PYSEC-2026-697"],"provenance":"source"}],"summary":{"text":"The flaw lies in the ReadNumber function of the PXM image decoder (opencv/modules/imgcodecs/src/grfmt_pxm.cpp) in OpenCV's imgcodecs module, which fails to check input length and so allows integer overflow. An attacker who can supply a crafted image file, including one fetched from a remote source, could trigger this to cause denial of service or possibly remote code execution, affecting OpenCV 3.3 and earlier.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:30:18Z"},"euvd":{"id":"EUVD-2021-2138","exploited":false,"provenance":"source"}}