{"id":"CVE-2017-12863","published":"2017-08-15T16:00:00Z","modified":"2024-08-05T18:51:06Z","title":"In opencv/modules/imgcodecs/src/grfmt_pxm.cpp, function PxMDecoder::readData has an integer overflow when calculate…","vendor":null,"product":null,"tier":"tail","description":{"text":"In opencv/modules/imgcodecs/src/grfmt_pxm.cpp, function PxMDecoder::readData has an integer overflow when calculate src_pitch. 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.86393,"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/9371","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-wq8f-wvqp-xvvm","PYSEC-2026-2832"],"provenance":"source"},{"ecosystem":"PyPI","package":"opencv-contrib-python","vulnerableRanges":["<3.3.1.11"],"patched":["3.3.1.11"],"from":["GHSA-wq8f-wvqp-xvvm","PYSEC-2026-717"],"provenance":"source"}],"summary":{"text":"The flaw is an integer overflow in the PxMDecoder::readData function, located in the grfmt_pxm.cpp source file of the OpenCV imgcodecs module, where the src_pitch value is calculated. An attacker who can supply a crafted image from a remote source can trigger this overflow, which may lead to remote code execution or denial of service; the affected versions are OpenCV 3.3 and earlier.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:30:18Z"},"euvd":{"id":"EUVD-2021-2268","exploited":false,"provenance":"source"}}