{"id":"CVE-2018-5268","aliases":["DEBIAN-CVE-2018-5268","DLA-1354-1","DLA-1438-1","DLA-2799-1","EUVD-2021-2185","GHSA-9g8h-pjm4-q92p","PYSEC-2026-2814","PYSEC-2026-705","UBUNTU-CVE-2018-5268"],"status":"published","title":"Out-of-bounds Write in OpenCV.","description":"In OpenCV 3.3.1, a heap-based buffer overflow happens in cv::Jpeg2KDecoder::readComponent8u in modules/imgcodecs/src/grfmt_jpeg2000.cpp when parsing a crafted image file.","severity":{"version":"3.1","score":5.5,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H","level":"medium","assessor":"primary","from":"nvd"},"epss":{"day":"2026-11-08","score":0.01519,"percentile":0.74745,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-787"],"published":"2018-01-08T05:00:00Z","modified":"2026-10-24T10:49:41Z","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":["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.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":"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+deb7u4"}]}],"versions":["2.3.1-11","2.3.1-11+deb7u1","2.3.1-11+deb7u2","2.3.1-11+deb7u3"],"bundled":2},{"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.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: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":"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/10541","tags":["x_refsource_MISC","x_transferred","Exploit","Issue Tracking","Mailing List","Third Party Advisory","report","web"]},{"url":"https://lists.debian.org/debian-lts-announce/2018/04/msg00019.html","tags":["mailing-list","x_refsource_MLIST","x_transferred","Mailing List","Third Party Advisory","advisory","web"]},{"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-2018-5268","tags":["advisory"]},{"url":"https://github.com/opencv/opencv/pull/10566/commits/435a3e337bd9d4e11af61cf8b8afca067bf1a8aa","tags":["web"]},{"url":"https://github.com/advisories/GHSA-9g8h-pjm4-q92p","tags":["advisory"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2018-5268","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-2018-5268","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2018-5268","tags":["report"]}],"sources":{"cve":[{"id":"CVE-2018-5268","description":"In OpenCV 3.3.1, a heap-based buffer overflow happens in cv::Jpeg2KDecoder::readComponent8u in modules/imgcodecs/src/grfmt_jpeg2000.cpp when parsing a crafted image file.","status":"published","published":"2018-01-08T05:00:00Z","modified":"2024-08-05T05:33:43.585Z","updated_at":"2026-11-02T14:35:01.28843Z"}],"euvd":[{"id":"EUVD-2021-2185","description":"In OpenCV 3.3.1, a heap-based buffer overflow happens in cv::Jpeg2KDecoder::readComponent8u in modules/imgcodecs/src/grfmt_jpeg2000.cpp when parsing a crafted image file.","status":"published","published":"2018-01-08T05:00:00Z","modified":"2024-08-05T05:33:43Z","updated_at":"2026-11-03T02:40:11.187677Z"}],"ghsa":[{"id":"GHSA-9g8h-pjm4-q92p","title":"Out-of-bounds Write in OpenCV.","description":"In OpenCV 3.3.1 (corresponding with OpenCV-Python 3.3.1.11), a heap-based buffer overflow happens in cv::Jpeg2KDecoder::readComponent8u in modules/imgcodecs/src/grfmt_jpeg2000.cpp when parsing a crafted image file.","status":"published","published":"2021-10-12T22:23:41Z","modified":"2023-02-01T05:06:11Z","cvss":[{"version":"3.0","score":5.5,"vector":"CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H","level":"medium"}],"cwes":["CWE-787"],"updated_at":"2026-11-02T14:36:37.441118Z"}],"nvd":[{"id":"CVE-2018-5268","description":"In OpenCV 3.3.1, a heap-based buffer overflow happens in cv::Jpeg2KDecoder::readComponent8u in modules/imgcodecs/src/grfmt_jpeg2000.cpp when parsing a crafted image file.","status":"published","published":"2018-01-08T05:29:00.32Z","modified":"2026-06-17T01:59:56.65Z","cvss":[{"version":"3.1","score":5.5,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H","level":"medium","assessor":"primary"},{"version":"2.0","score":4.3,"vector":"AV:N/AC:M/Au:N/C:N/I:N/A:P","level":"medium","assessor":"primary"}],"cwes":["CWE-787"],"updated_at":"2026-11-02T14:04:22.309028Z"}],"osv":[{"id":"CVE-2018-5268","description":"In OpenCV 3.3.1, a heap-based buffer overflow happens in cv::Jpeg2KDecoder::readComponent8u in modules/imgcodecs/src/grfmt_jpeg2000.cpp when parsing a crafted image file.","status":"published","published":"2018-01-08T05:29:00.32Z","modified":"2026-10-24T10:49:41.503361046Z","cvss":[{"version":"3.1","score":5.5,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H","level":"medium"}],"updated_at":"2026-11-02T15:44:09.442568Z"},{"id":"DEBIAN-CVE-2018-5268","description":"In OpenCV 3.3.1, a heap-based buffer overflow happens in cv::Jpeg2KDecoder::readComponent8u in modules/imgcodecs/src/grfmt_jpeg2000.cpp when parsing a crafted image file.","status":"published","published":"2018-01-08T05:29:00.32Z","modified":"2026-10-23T18:03:06.911025702Z","cvss":[{"version":"3.1","score":5.5,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H","level":"medium"}],"updated_at":"2026-11-02T15:45:30.867575Z"},{"id":"GHSA-9g8h-pjm4-q92p","title":"Out-of-bounds Write in OpenCV.","description":"In OpenCV 3.3.1 (corresponding with OpenCV-Python 3.3.1.11), a heap-based buffer overflow happens in cv::Jpeg2KDecoder::readComponent8u in modules/imgcodecs/src/grfmt_jpeg2000.cpp when parsing a crafted image file.","status":"published","published":"2021-10-12T22:23:41Z","modified":"2026-09-10T03:49:09.245218764Z","cvss":[{"version":"3.0","score":5.5,"vector":"CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H","level":"medium"}],"cwes":["CWE-787"],"updated_at":"2026-11-02T15:46:43.875515Z"},{"id":"PYSEC-2026-2814","title":"Out-of-bounds Write in OpenCV.","description":"In OpenCV 3.3.1 (corresponding with OpenCV-Python 3.3.1.11), a heap-based buffer overflow happens in cv::Jpeg2KDecoder::readComponent8u in modules/imgcodecs/src/grfmt_jpeg2000.cpp when parsing a crafted image file.","status":"published","published":"2026-07-09T16:49:38.523203Z","modified":"2026-07-13T16:43:19.819306466Z","cvss":[{"version":"3.0","score":5.5,"vector":"CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H","level":"medium"}],"updated_at":"2026-11-02T15:52:56.429374Z"},{"id":"PYSEC-2026-705","title":"Out-of-bounds Write in OpenCV.","description":"In OpenCV 3.3.1 (corresponding with OpenCV-Python 3.3.1.11), a heap-based buffer overflow happens in cv::Jpeg2KDecoder::readComponent8u in modules/imgcodecs/src/grfmt_jpeg2000.cpp when parsing a crafted image file.","status":"published","published":"2026-07-02T14:13:13.588245Z","modified":"2026-07-13T16:43:19.819306466Z","cvss":[{"version":"3.0","score":5.5,"vector":"CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H","level":"medium"}],"updated_at":"2026-11-02T15:52:58.117212Z"},{"id":"UBUNTU-CVE-2018-5268","description":"In OpenCV 3.3.1, a heap-based buffer overflow happens in cv::Jpeg2KDecoder::readComponent8u in modules/imgcodecs/src/grfmt_jpeg2000.cpp when parsing a crafted image file.","status":"published","published":"2018-01-08T05:29:00Z","modified":"2026-04-22T11:58:53.883864Z","cvss":[{"version":"3.1","score":5.5,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H","level":"medium"},{"version":"3.0","score":5.5,"vector":"CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H","level":"medium"}],"updated_at":"2026-11-02T15:54:18.33562Z"},{"id":"DLA-1354-1","title":"opencv - security update","status":"published","published":"2018-04-18T00:00:00Z","modified":"2026-03-09T01:01:09.047333Z","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"}]}}
