{"id":"CVE-2017-18009","aliases":["DEBIAN-CVE-2017-18009","EUVD-2021-2175","GHSA-83rh-hx5x-q9p5","PYSEC-2026-2810","PYSEC-2026-702","UBUNTU-CVE-2017-18009","USN-4818-1"],"status":"published","title":"Out-of-bounds Read in OpenCV","description":"In OpenCV 3.3.1, a heap-based buffer over-read exists in the function cv::HdrDecoder::checkSignature in modules/imgcodecs/src/grfmt_hdr.cpp.","severity":{"version":"3.0","score":7.5,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"high","assessor":"primary","from":"nvd"},"epss":{"day":"2026-11-09","score":0.02474,"percentile":0.84659,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-125"],"published":"2018-01-01T08:00:00Z","modified":"2026-10-24T10:47:29Z","fixes":[{"ecosystem":"PyPI","package":"opencv-python","fixed_in":["3.4.1.15"],"sources":["ghsa","osv"]},{"ecosystem":"PyPI","package":"opencv-contrib-python","fixed_in":["3.4.1.15"],"sources":["ghsa","osv"]},{"ecosystem":"Debian:12","package":"opencv","fixed_in":["4.1.2+dfsg-3"],"sources":["osv"]},{"ecosystem":"Debian:13","package":"opencv","fixed_in":["4.1.2+dfsg-3"],"sources":["osv"]},{"ecosystem":"Debian:14","package":"opencv","fixed_in":["4.1.2+dfsg-3"],"sources":["osv"]}],"affected":[{"source":"ghsa","ecosystem":"PyPI","package":"opencv-python","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"last_affected":"3.3.1.11"},{"fixed":"3.4.1.15"}]}]},{"source":"ghsa","ecosystem":"PyPI","package":"opencv-contrib-python","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"last_affected":"3.3.1.11"},{"fixed":"3.4.1.15"}]}]},{"source":"osv","ecosystem":"Debian:12","package":"opencv","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"4.1.2+dfsg-3"}]}]},{"source":"osv","ecosystem":"Debian:13","package":"opencv","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"4.1.2+dfsg-3"}]}]},{"source":"osv","ecosystem":"Debian:14","package":"opencv","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"4.1.2+dfsg-3"}]}]},{"source":"osv","ecosystem":"PyPI","package":"opencv-python","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.4.1.15"}]}],"versions":["3.4.0.14"]},{"source":"osv","ecosystem":"PyPI","package":"opencv-contrib-python","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.4.1.15"}]}]},{"source":"osv","ecosystem":"PyPI","package":"opencv-python","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.4.1.15"}]}],"versions":["3.4.0.14"]},{"source":"osv","ecosystem":"PyPI","package":"opencv-contrib-python","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.4.1.15"}]}]},{"source":"osv","ecosystem":"Ubuntu:Pro:14.04:LTS","package":"opencv","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.4.8+dfsg1-2ubuntu1.2+esm1"}]}],"versions":["2.4.5+dfsg-0ubuntu4","2.4.5+dfsg-0ubuntu5","2.4.6.1+dfsg-2ubuntu2","2.4.6.1+dfsg-2ubuntu3","2.4.6.1+dfsg-2ubuntu4","2.4.6.1+dfsg-2ubuntu5","2.4.8+dfsg-1ubuntu1","2.4.8+dfsg1-2ubuntu1","2.4.8+dfsg1-2ubuntu1.2"],"bundled":5},{"source":"osv","ecosystem":"Ubuntu:Pro:16.04:LTS","package":"opencv","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.4.9.1+dfsg-1.5ubuntu1.1+esm1"}]}],"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","2.4.9.1+dfsg-1.5ubuntu1.1"],"bundled":5},{"source":"osv","ecosystem":"Ubuntu:Pro:18.04:LTS","package":"opencv","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.2.0+dfsg-4ubuntu0.1+esm3"}]}],"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","3.2.0+dfsg-4ubuntu0.1","3.2.0+dfsg-4ubuntu0.1+esm2"],"bundled":5}],"products":[{"vendor":"opencv","product":"opencv"}],"references":[{"url":"http://www.securityfocus.com/bid/106945","tags":["vdb-entry","x_refsource_BID","x_transferred","Third Party Advisory","VDB Entry","advisory","web"]},{"url":"https://github.com/opencv/opencv/issues/10479","tags":["x_refsource_MISC","x_transferred","Issue Tracking","Third Party Advisory","report","web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2017-18009","tags":["advisory"]},{"url":"https://github.com/opencv/opencv/pull/10480/commits/4ca89db22dea962690f31c1781bce5937ee91837","tags":["web"]},{"url":"https://github.com/advisories/GHSA-83rh-hx5x-q9p5","tags":["advisory"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2017-18009","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-18009","tags":["report"]},{"url":"https://ubuntu.com/security/notices/USN-4818-1","tags":["advisory"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2017-18009","tags":["report"]},{"url":"https://ubuntu.com/security/CVE-2019-14491","tags":["report"]},{"url":"https://ubuntu.com/security/CVE-2019-14492","tags":["report"]},{"url":"https://ubuntu.com/security/CVE-2019-14493","tags":["report"]},{"url":"https://ubuntu.com/security/CVE-2019-15939","tags":["report"]}],"sources":{"cve":[{"id":"CVE-2017-18009","description":"In OpenCV 3.3.1, a heap-based buffer over-read exists in the function cv::HdrDecoder::checkSignature in modules/imgcodecs/src/grfmt_hdr.cpp.","status":"published","published":"2018-01-01T08:00:00Z","modified":"2024-08-05T21:06:49.826Z","updated_at":"2026-11-02T14:33:21.747294Z"}],"euvd":[{"id":"EUVD-2021-2175","description":"In OpenCV 3.3.1, a heap-based buffer over-read exists in the function cv::HdrDecoder::checkSignature in modules/imgcodecs/src/grfmt_hdr.cpp.","status":"published","published":"2018-01-01T08:00:00Z","modified":"2024-08-05T21:06:49Z","updated_at":"2026-11-03T02:23:08.049216Z"}],"ghsa":[{"id":"GHSA-83rh-hx5x-q9p5","title":"Out-of-bounds Read in OpenCV","description":"In OpenCV 3.3.1 (corresponding with OpenCV-Python 3.3.1.11), a heap-based buffer over-read exists in the function cv::HdrDecoder::checkSignature in modules/imgcodecs/src/grfmt_hdr.cpp.","status":"published","published":"2021-10-12T22:03:23Z","modified":"2023-01-09T05:05:27Z","cvss":[{"version":"3.0","score":7.5,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"high"}],"cwes":["CWE-125"],"updated_at":"2026-11-02T14:36:11.367194Z"}],"nvd":[{"id":"CVE-2017-18009","description":"In OpenCV 3.3.1, a heap-based buffer over-read exists in the function cv::HdrDecoder::checkSignature in modules/imgcodecs/src/grfmt_hdr.cpp.","status":"published","published":"2018-01-01T08:29:00.283Z","modified":"2026-06-17T01:12:01.69Z","cvss":[{"version":"3.0","score":7.5,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"high","assessor":"primary"},{"version":"2.0","score":5,"vector":"AV:N/AC:L/Au:N/C:N/I:N/A:P","level":"medium","assessor":"primary"}],"cwes":["CWE-125"],"updated_at":"2026-11-02T14:04:11.215487Z"}],"osv":[{"id":"CVE-2017-18009","description":"In OpenCV 3.3.1, a heap-based buffer over-read exists in the function cv::HdrDecoder::checkSignature in modules/imgcodecs/src/grfmt_hdr.cpp.","status":"published","published":"2018-01-01T08:29:00.283Z","modified":"2026-10-24T10:47:29.63568906Z","cvss":[{"version":"3.0","score":7.5,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"high"}],"updated_at":"2026-11-02T15:44:05.486486Z"},{"id":"DEBIAN-CVE-2017-18009","description":"In OpenCV 3.3.1, a heap-based buffer over-read exists in the function cv::HdrDecoder::checkSignature in modules/imgcodecs/src/grfmt_hdr.cpp.","status":"published","published":"2018-01-01T08:29:00.283Z","modified":"2026-09-01T20:03:46.979022014Z","cvss":[{"version":"3.0","score":7.5,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"high"}],"updated_at":"2026-11-02T15:45:29.100767Z"},{"id":"GHSA-83rh-hx5x-q9p5","title":"Out-of-bounds Read in OpenCV","description":"In OpenCV 3.3.1 (corresponding with OpenCV-Python 3.3.1.11), a heap-based buffer over-read exists in the function cv::HdrDecoder::checkSignature in modules/imgcodecs/src/grfmt_hdr.cpp.","status":"published","published":"2021-10-12T22:03:23Z","modified":"2026-09-10T03:49:09.188874406Z","cvss":[{"version":"3.0","score":7.5,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"high"}],"cwes":["CWE-125"],"updated_at":"2026-11-02T15:46:41.732368Z"},{"id":"PYSEC-2026-2810","title":"Out-of-bounds Read in OpenCV","description":"In OpenCV 3.3.1 (corresponding with OpenCV-Python 3.3.1.11), a heap-based buffer over-read exists in the function cv::HdrDecoder::checkSignature in modules/imgcodecs/src/grfmt_hdr.cpp.","status":"published","published":"2026-07-09T16:49:35.523177Z","modified":"2026-07-13T16:42:43.292205335Z","cvss":[{"version":"3.0","score":7.5,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"high"}],"updated_at":"2026-11-02T15:52:56.429374Z"},{"id":"PYSEC-2026-702","title":"Out-of-bounds Read in OpenCV","description":"In OpenCV 3.3.1 (corresponding with OpenCV-Python 3.3.1.11), a heap-based buffer over-read exists in the function cv::HdrDecoder::checkSignature in modules/imgcodecs/src/grfmt_hdr.cpp.","status":"published","published":"2026-07-02T14:13:12.36035Z","modified":"2026-07-13T16:42:43.292205335Z","cvss":[{"version":"3.0","score":7.5,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"high"}],"updated_at":"2026-11-02T15:52:58.117212Z"},{"id":"UBUNTU-CVE-2017-18009","description":"In OpenCV 3.3.1, a heap-based buffer over-read exists in the function cv::HdrDecoder::checkSignature in modules/imgcodecs/src/grfmt_hdr.cpp.","status":"withdrawn","published":"2018-01-01T08:29:00Z","modified":"2026-02-04T02:31:55.740479Z","cvss":[{"version":"3.0","score":7.5,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"high"}],"updated_at":"2026-11-02T15:54:14.977781Z"},{"id":"USN-4818-1","title":"opencv vulnerabilities","description":"It was discovered that OpenCV did not properly manage certain\nobjects, leading to a divide-by-zero. If a user were tricked into\nloading a specially crafted file, a remote attacker could potentially use\nthis issue to cause a denial of service or possibly execute arbitrary\ncode. (CVE-2019-15939)\n\nIt was discovered that OpenCV did not properly manage certain files,\nleading to an out of bounds read. If a user were tricked into loading\na specially crafted file, a remote attacker could potentially use this\nissue to make OpenCV crash, resulting in a denial of service. This issue\nwas only fixed in Ubuntu 18.04 ESM. (CVE-2019-14491, CVE-2019-14492)\n\nIt was discovered that OpenCV did not properly manage certain XML data,\nleading to a NULL pointer dereference. If a user were tricked into\nloading a specially crafted file, a remote attacker could potentially use\nthis issue to make OpenCV crash, resulting in a denial of service. This\nissue was only fixed in Ubuntu 14.04 ESM and Ubuntu 16.04 ESM.\n(CVE-2019-14493)\n\nIt was discovered that OpenCV did not properly manage certain files,\nleading to a heap-based buffer overflow. If a user were tricked into\nloading a specially crafted file, a remote attacker could potentially use\nthis issue to cause a denial of service or possibly execute arbitrary code.\nThis issue only affected Ubuntu 18.04 ESM. (CVE-2017-18009)\n","status":"published","published":"2022-09-28T14:52:46Z","modified":"2026-06-29T13:48:29.380560393Z","updated_at":"2026-11-02T16:58:15.159055Z"}]}}
