{"id":"CVE-2017-12864","aliases":["DEBIAN-CVE-2017-12864","DLA-1117-1","DLA-1438-1","DLA-2799-1","EUVD-2021-2138","GHSA-267x-w5hx-8hjr","PYSEC-2026-2804","PYSEC-2026-697","UBUNTU-CVE-2017-12864"],"status":"published","title":"Integer Overflow or Wraparound in OpenCV","description":"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.","severity":{"version":"3.1","score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","level":"high","assessor":"primary","from":"nvd"},"epss":{"day":"2026-11-07","score":0.02722,"percentile":0.86126,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-190"],"published":"2017-08-15T16:00:00Z","modified":"2026-10-24T10:47:28Z","fixes":[{"ecosystem":"PyPI","package":"opencv-python","fixed_in":["3.3.1.11"],"sources":["ghsa","osv"]},{"ecosystem":"PyPI","package":"opencv-contrib-python","fixed_in":["3.3.1.11"],"sources":["ghsa","osv"]},{"ecosystem":"Debian:12","package":"opencv","fixed_in":["3.2.0+dfsg-6"],"sources":["osv"]},{"ecosystem":"Debian:13","package":"opencv","fixed_in":["3.2.0+dfsg-6"],"sources":["osv"]},{"ecosystem":"Debian:14","package":"opencv","fixed_in":["3.2.0+dfsg-6"],"sources":["osv"]},{"ecosystem":"Ubuntu:16.04:LTS","package":"opencv","fixed_in":["2.4.9.1+dfsg-1.5ubuntu1.1"],"sources":["osv"]},{"ecosystem":"Ubuntu:18.04:LTS","package":"opencv","fixed_in":["3.2.0+dfsg-4ubuntu0.1"],"sources":["osv"]}],"affected":[{"source":"ghsa","ecosystem":"PyPI","package":"opencv-python","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"last_affected":"3.3.0.9"},{"fixed":"3.3.1.11"}]}]},{"source":"ghsa","ecosystem":"PyPI","package":"opencv-contrib-python","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"last_affected":"3.3.0.9"},{"fixed":"3.3.1.11"}]}]},{"source":"osv","ecosystem":"Debian:12","package":"opencv","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.2.0+dfsg-6"}]}]},{"source":"osv","ecosystem":"Debian:13","package":"opencv","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.2.0+dfsg-6"}]}]},{"source":"osv","ecosystem":"Debian:14","package":"opencv","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.2.0+dfsg-6"}]}]},{"source":"osv","ecosystem":"Debian:7","package":"opencv","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.3.1-11+deb7u2"}]}],"versions":["2.3.1-11","2.3.1-11+deb7u1"],"bundled":12},{"source":"osv","ecosystem":"Debian:8","package":"opencv","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.4.9.1+dfsg-1+deb8u2"}]}],"versions":["2.4.9.1+dfsg-1","2.4.9.1+dfsg-1+deb8u1"],"bundled":16},{"source":"osv","ecosystem":"Debian:9","package":"opencv","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.4.9.1+dfsg1-2+deb9u1"}]}],"versions":["2.4.9.1+dfsg1-2"],"bundled":18},{"source":"osv","ecosystem":"PyPI","package":"opencv-python","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.3.1.11"}]}]},{"source":"osv","ecosystem":"PyPI","package":"opencv-contrib-python","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.3.1.11"}]}]},{"source":"osv","ecosystem":"PyPI","package":"opencv-python","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.3.1.11"}]}]},{"source":"osv","ecosystem":"PyPI","package":"opencv-contrib-python","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.3.1.11"}]}]},{"source":"osv","ecosystem":"Ubuntu:16.04:LTS","package":"opencv","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.4.9.1+dfsg-1.5ubuntu1.1"}]}],"versions":["2.4.9+dfsg-1ubuntu6","2.4.9.1+dfsg-1.2ubuntu1","2.4.9.1+dfsg-1.3ubuntu1","2.4.9.1+dfsg-1.5ubuntu1"]},{"source":"osv","ecosystem":"Ubuntu:18.04:LTS","package":"opencv","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.2.0+dfsg-4ubuntu0.1"}]}],"versions":["3.1.0+dfsg1-1~exp1ubuntu3","3.2.0+dfsg-3","3.2.0+dfsg-4","3.2.0+dfsg-4build1","3.2.0+dfsg-4build2"]}],"products":[{"vendor":"debian","product":"debian_linux"},{"vendor":"opencv","product":"opencv"}],"references":[{"url":"https://lists.debian.org/debian-lts-announce/2018/07/msg00030.html","tags":["mailing-list","x_refsource_MLIST","x_transferred","Mailing List","Third Party Advisory","advisory","web"]},{"url":"https://security.gentoo.org/glsa/201712-02","tags":["vendor-advisory","x_refsource_GENTOO","x_transferred","Third Party Advisory","advisory","web"]},{"url":"https://github.com/opencv/opencv/issues/9372","tags":["x_refsource_MISC","x_transferred","Issue Tracking","Patch","Third Party Advisory","fix","web","report"]},{"url":"https://lists.debian.org/debian-lts-announce/2021/10/msg00028.html","tags":["mailing-list","x_refsource_MLIST","x_transferred","Mailing List","Third Party Advisory","advisory","web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2017-12864","tags":["advisory"]},{"url":"https://github.com/opencv/opencv/pull/9376","tags":["web"]},{"url":"https://github.com/advisories/GHSA-267x-w5hx-8hjr","tags":["advisory"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2017-12864","tags":["advisory"]},{"url":"https://github.com/opencv/opencv-python","tags":["package"]},{"url":"https://pypi.org/project/opencv-python","tags":["package"]},{"url":"https://pypi.org/project/opencv-contrib-python","tags":["package"]},{"url":"https://ubuntu.com/security/CVE-2017-12864","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2017-12864","tags":["report"]}],"sources":{"cve":[{"id":"CVE-2017-12864","description":"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.","status":"published","published":"2017-08-15T16:00:00Z","modified":"2024-08-05T18:51:06.781Z","updated_at":"2026-11-02T14:33:17.264801Z"}],"euvd":[{"id":"EUVD-2021-2138","description":"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.","status":"published","published":"2017-08-15T16:00:00Z","modified":"2024-08-05T18:51:06Z","updated_at":"2026-11-03T02:23:20.155596Z"}],"ghsa":[{"id":"GHSA-267x-w5hx-8hjr","title":"Integer Overflow or Wraparound in OpenCV","description":"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 (corresponding with OpenCV-Python version 3.3.0.9) and earlier.","status":"published","published":"2021-10-12T22:02:45Z","modified":"2023-02-01T05:06:28Z","cvss":[{"version":"3.0","score":8.8,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","level":"high"}],"cwes":["CWE-190"],"updated_at":"2026-11-02T14:36:39.086869Z"}],"nvd":[{"id":"CVE-2017-12864","description":"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.","status":"published","published":"2017-08-15T16:29:00.34Z","modified":"2026-06-17T01:04:03.013Z","cvss":[{"version":"3.1","score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","level":"high","assessor":"primary"},{"version":"2.0","score":6.8,"vector":"AV:N/AC:M/Au:N/C:P/I:P/A:P","level":"medium","assessor":"primary"}],"cwes":["CWE-190"],"updated_at":"2026-11-02T14:03:57.82609Z"}],"osv":[{"id":"CVE-2017-12864","description":"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.","status":"published","published":"2017-08-15T16:29:00.34Z","modified":"2026-10-24T10:47:28.622301028Z","cvss":[{"version":"3.1","score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","level":"high"}],"updated_at":"2026-11-02T15:44:04.159616Z"},{"id":"DEBIAN-CVE-2017-12864","description":"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.","status":"published","published":"2017-08-15T16:29:00.34Z","modified":"2026-09-01T20:03:42.61160166Z","cvss":[{"version":"3.1","score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","level":"high"}],"updated_at":"2026-11-02T15:45:28.50097Z"},{"id":"GHSA-267x-w5hx-8hjr","title":"Integer Overflow or Wraparound in OpenCV","description":"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 (corresponding with OpenCV-Python version 3.3.0.9) and earlier.","status":"published","published":"2021-10-12T22:02:45Z","modified":"2026-09-10T03:49:08.939282654Z","cvss":[{"version":"3.0","score":8.8,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","level":"high"}],"cwes":["CWE-190"],"updated_at":"2026-11-02T15:46:33.956911Z"},{"id":"PYSEC-2026-2804","title":"Integer Overflow or Wraparound in OpenCV","description":"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 (corresponding with OpenCV-Python version 3.3.0.9) and earlier.","status":"published","published":"2026-07-09T16:49:35.231496Z","modified":"2026-07-13T16:42:40.77230693Z","cvss":[{"version":"3.0","score":8.8,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","level":"high"}],"updated_at":"2026-11-02T15:52:56.429374Z"},{"id":"PYSEC-2026-697","title":"Integer Overflow or Wraparound in OpenCV","description":"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 (corresponding with OpenCV-Python version 3.3.0.9) and earlier.","status":"published","published":"2026-07-02T14:13:12.041837Z","modified":"2026-07-13T16:42:40.77230693Z","cvss":[{"version":"3.0","score":8.8,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","level":"high"}],"updated_at":"2026-11-02T15:52:58.117212Z"},{"id":"UBUNTU-CVE-2017-12864","description":"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.","status":"published","published":"2017-08-15T16:29:00Z","modified":"2026-04-22T11:13:58.012764Z","cvss":[{"version":"3.1","score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","level":"high"},{"version":"3.0","score":8.8,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","level":"high"}],"updated_at":"2026-11-02T15:54:14.122973Z"},{"id":"DLA-1117-1","title":"opencv - security update","status":"published","published":"2017-09-29T00:00:00Z","modified":"2026-03-09T01:00:47.922957Z","updated_at":"2026-11-02T15:46:09.336894Z"},{"id":"DLA-1438-1","title":"opencv - security update","status":"published","published":"2018-07-22T00:00:00Z","modified":"2026-03-09T01:01:38.807352Z","updated_at":"2026-11-02T15:46:09.336894Z"},{"id":"DLA-2799-1","title":"opencv - security update","status":"published","published":"2021-10-29T00:00:00Z","modified":"2026-03-09T01:22:59.211489Z","updated_at":"2026-11-02T15:46:11.189256Z"}]}}
