{"id":"CVE-2017-12982","aliases":["ALPINE-CVE-2017-12982","BELL-CVE-2017-12982","DEBIAN-CVE-2017-12982","EUVD-2017-4500","GHSA-4v94-xg8j-pp22","UBUNTU-CVE-2017-12982","USN-4782-1","openSUSE-SU-2024:11120-1"],"status":"published","title":"The bmp_read_info_header function in bin/jp2/convertbmp.c in OpenJPEG 2.2.0 does not reject...","description":"The bmp_read_info_header function in bin/jp2/convertbmp.c in OpenJPEG 2.2.0 does not reject headers with a zero biBitCount, which allows remote attackers to cause a denial of service (memory allocation failure) in the opj_image_create function in lib/openjp2/image.c, related to the opj_aligned_alloc_n function in opj_malloc.c.","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-07","score":0.02772,"percentile":0.86416,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-119"],"published":"2017-08-21T07:00:00Z","modified":"2026-10-20T13:22:13Z","fixes":[{"ecosystem":"Alpine:v3.10","package":"openjpeg","fixed_in":["2.2.0-r1"],"sources":["osv"]},{"ecosystem":"Alpine:v3.11","package":"openjpeg","fixed_in":["2.2.0-r1"],"sources":["osv"]},{"ecosystem":"Alpine:v3.12","package":"openjpeg","fixed_in":["2.2.0-r1"],"sources":["osv"]},{"ecosystem":"Alpine:v3.13","package":"openjpeg","fixed_in":["2.2.0-r1"],"sources":["osv"]},{"ecosystem":"Alpine:v3.14","package":"openjpeg","fixed_in":["2.2.0-r1"],"sources":["osv"]},{"ecosystem":"Alpine:v3.15","package":"openjpeg","fixed_in":["2.2.0-r1"],"sources":["osv"]},{"ecosystem":"Alpine:v3.16","package":"openjpeg","fixed_in":["2.2.0-r1"],"sources":["osv"]},{"ecosystem":"Alpine:v3.17","package":"openjpeg","fixed_in":["2.2.0-r1"],"sources":["osv"]},{"ecosystem":"Alpine:v3.18","package":"openjpeg","fixed_in":["2.2.0-r1"],"sources":["osv"]},{"ecosystem":"Alpine:v3.19","package":"openjpeg","fixed_in":["2.2.0-r1"],"sources":["osv"]},{"ecosystem":"Alpine:v3.20","package":"openjpeg","fixed_in":["2.2.0-r1"],"sources":["osv"]},{"ecosystem":"Alpine:v3.21","package":"openjpeg","fixed_in":["2.2.0-r1"],"sources":["osv"]},{"ecosystem":"Alpine:v3.22","package":"openjpeg","fixed_in":["2.2.0-r1"],"sources":["osv"]},{"ecosystem":"Alpine:v3.23","package":"openjpeg","fixed_in":["2.2.0-r1"],"sources":["osv"]},{"ecosystem":"Alpine:v3.24","package":"openjpeg","fixed_in":["2.2.0-r1"],"sources":["osv"]},{"ecosystem":"Alpine:v3.3","package":"openjpeg","fixed_in":["2.1.2-r2"],"sources":["osv"]},{"ecosystem":"Alpine:v3.4","package":"openjpeg","fixed_in":["2.1.2-r2"],"sources":["osv"]},{"ecosystem":"Alpine:v3.5","package":"openjpeg","fixed_in":["2.1.2-r2"],"sources":["osv"]},{"ecosystem":"Alpine:v3.6","package":"openjpeg","fixed_in":["2.1.2-r2"],"sources":["osv"]},{"ecosystem":"Alpine:v3.7","package":"openjpeg","fixed_in":["2.2.0-r1"],"sources":["osv"]},{"ecosystem":"Alpine:v3.8","package":"openjpeg","fixed_in":["2.2.0-r1"],"sources":["osv"]},{"ecosystem":"Alpine:v3.9","package":"openjpeg","fixed_in":["2.2.0-r1"],"sources":["osv"]},{"ecosystem":"Debian:12","package":"openjpeg2","fixed_in":["2.3.0-1"],"sources":["osv"]},{"ecosystem":"Debian:13","package":"openjpeg2","fixed_in":["2.3.0-1"],"sources":["osv"]},{"ecosystem":"Debian:14","package":"openjpeg2","fixed_in":["2.3.0-1"],"sources":["osv"]},{"ecosystem":"Ubuntu:Pro:16.04:LTS","package":"openjpeg2","fixed_in":["2.1.2-1.1+deb9u6ubuntu0.1~esm1"],"sources":["osv"]},{"ecosystem":"Ubuntu:18.04:LTS","package":"openjpeg2","fixed_in":["2.3.0-1"],"sources":["osv"]}],"affected":[{"source":"osv","ecosystem":"Alpine:v3.10","package":"openjpeg","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.2.0-r1"}]}]},{"source":"osv","ecosystem":"Alpine:v3.11","package":"openjpeg","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.2.0-r1"}]}]},{"source":"osv","ecosystem":"Alpine:v3.12","package":"openjpeg","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.2.0-r1"}]}]},{"source":"osv","ecosystem":"Alpine:v3.13","package":"openjpeg","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.2.0-r1"}]}]},{"source":"osv","ecosystem":"Alpine:v3.14","package":"openjpeg","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.2.0-r1"}]}]},{"source":"osv","ecosystem":"Alpine:v3.15","package":"openjpeg","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.2.0-r1"}]}]},{"source":"osv","ecosystem":"Alpine:v3.16","package":"openjpeg","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.2.0-r1"}]}]},{"source":"osv","ecosystem":"Alpine:v3.17","package":"openjpeg","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.2.0-r1"}]}]},{"source":"osv","ecosystem":"Alpine:v3.18","package":"openjpeg","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.2.0-r1"}]}]},{"source":"osv","ecosystem":"Alpine:v3.19","package":"openjpeg","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.2.0-r1"}]}]},{"source":"osv","ecosystem":"Alpine:v3.20","package":"openjpeg","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.2.0-r1"}]}]},{"source":"osv","ecosystem":"Alpine:v3.21","package":"openjpeg","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.2.0-r1"}]}]},{"source":"osv","ecosystem":"Alpine:v3.22","package":"openjpeg","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.2.0-r1"}]}]},{"source":"osv","ecosystem":"Alpine:v3.23","package":"openjpeg","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.2.0-r1"}]}]},{"source":"osv","ecosystem":"Alpine:v3.24","package":"openjpeg","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.2.0-r1"}]}]},{"source":"osv","ecosystem":"Alpine:v3.3","package":"openjpeg","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.1.2-r2"}]}]},{"source":"osv","ecosystem":"Alpine:v3.4","package":"openjpeg","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.1.2-r2"}]}]},{"source":"osv","ecosystem":"Alpine:v3.5","package":"openjpeg","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.1.2-r2"}]}]},{"source":"osv","ecosystem":"Alpine:v3.6","package":"openjpeg","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.1.2-r2"}]}]},{"source":"osv","ecosystem":"Alpine:v3.7","package":"openjpeg","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.2.0-r1"}]}]},{"source":"osv","ecosystem":"Alpine:v3.8","package":"openjpeg","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.2.0-r1"}]}]},{"source":"osv","ecosystem":"Alpine:v3.9","package":"openjpeg","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.2.0-r1"}]}]},{"source":"osv","ecosystem":"Debian:12","package":"openjpeg2","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.3.0-1"}]}]},{"source":"osv","ecosystem":"Debian:13","package":"openjpeg2","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.3.0-1"}]}]},{"source":"osv","ecosystem":"Debian:14","package":"openjpeg2","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.3.0-1"}]}]},{"source":"osv","ecosystem":"Ubuntu:Pro:16.04:LTS","package":"openjpeg2","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.1.2-1.1+deb9u6ubuntu0.1~esm1"}]}],"versions":["2.1.0-2.1","2.1.0-2.1ubuntu0.1","2.1.2-1.1+deb9u2build0.1","2.1.2-1.1+deb9u3build0.16.04.1","2.1.2-1.1+deb9u3ubuntu0.1~esm1","2.1.2-1.1+deb9u5build0.16.04.1","2.1.2-1.1+deb9u5ubuntu0.1~esm1","2.1.2-1.1+deb9u6build0.16.04.1"]},{"source":"osv","ecosystem":"Ubuntu:18.04:LTS","package":"openjpeg2","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.3.0-1"}]}],"versions":["2.2.0-1"]},{"source":"osv","ecosystem":"Ubuntu:Pro:16.04:LTS","package":"openjpeg2","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.1.2-1.1+deb9u6ubuntu0.1~esm1"}]}],"versions":["2.1.0-2.1","2.1.0-2.1ubuntu0.1","2.1.2-1.1+deb9u2build0.1","2.1.2-1.1+deb9u3build0.16.04.1","2.1.2-1.1+deb9u3ubuntu0.1~esm1","2.1.2-1.1+deb9u5build0.16.04.1","2.1.2-1.1+deb9u5ubuntu0.1~esm1","2.1.2-1.1+deb9u6build0.16.04.1"],"bundled":6},{"source":"osv","ecosystem":"Ubuntu:Pro:18.04:LTS","package":"openjpeg2","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.3.0-2ubuntu0.1~esm1"}]}],"versions":["2.2.0-1","2.3.0-1","2.3.0-2build0.18.04.1"],"bundled":6}],"products":[{"vendor":"uclouvain","product":"openjpeg"}],"references":[{"url":"https://github.com/uclouvain/openjpeg/commit/baf0c1ad4572daa89caa3b12985bdd93530f0dd7","tags":["x_refsource_MISC","x_transferred","Issue Tracking","Patch","Third Party Advisory","fix"]},{"url":"https://security.gentoo.org/glsa/201710-26","tags":["vendor-advisory","x_refsource_GENTOO","x_transferred","Third Party Advisory","advisory"]},{"url":"https://blogs.gentoo.org/ago/2017/08/14/openjpeg-memory-allocation-failure-in-opj_aligned_alloc_n-opj_malloc-c/","tags":["x_refsource_MISC","x_transferred","Patch","Third Party Advisory","VDB Entry","fix","report"]},{"url":"https://github.com/uclouvain/openjpeg/issues/983","tags":["x_refsource_MISC","x_transferred","Issue Tracking","Patch","Third Party Advisory","fix"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2017-12982"},{"url":"https://blogs.gentoo.org/ago/2017/08/14/openjpeg-memory-allocation-failure-in-opj_aligned_alloc_n-opj_malloc-c"},{"url":"https://github.com/advisories/GHSA-4v94-xg8j-pp22"},{"url":"https://security.alpinelinux.org/vuln/CVE-2017-12982","tags":["advisory"]},{"url":"https://docs.bell-sw.com/security/cves/CVE-2017-12982","tags":["advisory"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2017-12982","tags":["advisory"]},{"url":"https://ubuntu.com/security/CVE-2017-12982","tags":["report"]},{"url":"https://ubuntu.com/security/notices/USN-4782-1","tags":["advisory"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2017-12982","tags":["report"]},{"url":"https://ubuntu.com/security/CVE-2016-10506","tags":["report"]},{"url":"https://ubuntu.com/security/CVE-2018-5727","tags":["report"]},{"url":"https://ubuntu.com/security/CVE-2018-16375","tags":["report"]},{"url":"https://ubuntu.com/security/CVE-2018-20845","tags":["report"]},{"url":"https://ubuntu.com/security/CVE-2019-12973","tags":["report"]},{"url":"","tags":["advisory"]},{"url":"https://www.suse.com/security/cve/CVE-2016-10504","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2016-10505","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2016-10506","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2016-5139","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2016-5152","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2016-5158","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2016-8332","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2017-12982","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2017-14039","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2017-14040","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2017-14041","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2017-14151","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2017-14152","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2018-14423","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2018-16375","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2018-18088","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2018-5727","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2018-5785","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2018-6616","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2018-7648","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2019-12973","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2020-6851","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2020-8112","tags":["web"]}],"sources":{"cve":[{"id":"CVE-2017-12982","description":"The bmp_read_info_header function in bin/jp2/convertbmp.c in OpenJPEG 2.2.0 does not reject headers with a zero biBitCount, which allows remote attackers to cause a denial of service (memory allocation failure) in the opj_image_create function in lib/openjp2/image.c, related to the opj_aligned_alloc_n function in opj_malloc.c.","status":"published","published":"2017-08-21T07:00:00Z","modified":"2024-08-05T18:51:07.37Z","updated_at":"2026-11-02T14:33:17.59533Z"}],"euvd":[{"id":"EUVD-2017-4500","description":"The bmp_read_info_header function in bin/jp2/convertbmp.c in OpenJPEG 2.2.0 does not reject headers with a zero biBitCount, which allows remote attackers to cause a denial of service (memory allocation failure) in the opj_image_create function in lib/openjp2/image.c, related to the opj_aligned_alloc_n function in opj_malloc.c.","status":"published","published":"2017-08-21T07:00:00Z","modified":"2024-08-05T18:51:07Z","updated_at":"2026-11-03T02:23:19.724201Z"}],"ghsa":[{"id":"GHSA-4v94-xg8j-pp22","title":"The bmp_read_info_header function in bin/jp2/convertbmp.c in OpenJPEG 2.2.0 does not reject...","description":"The bmp_read_info_header function in bin/jp2/convertbmp.c in OpenJPEG 2.2.0 does not reject headers with a zero biBitCount, which allows remote attackers to cause a denial of service (memory allocation failure) in the opj_image_create function in lib/openjp2/image.c, related to the opj_aligned_alloc_n function in opj_malloc.c.","status":"published","published":"2022-05-13T01:11:48Z","modified":"2025-04-20T03:43:42Z","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"}],"cwes":["CWE-119"],"updated_at":"2026-11-02T15:01:50.574323Z"}],"nvd":[{"id":"CVE-2017-12982","description":"The bmp_read_info_header function in bin/jp2/convertbmp.c in OpenJPEG 2.2.0 does not reject headers with a zero biBitCount, which allows remote attackers to cause a denial of service (memory allocation failure) in the opj_image_create function in lib/openjp2/image.c, related to the opj_aligned_alloc_n function in opj_malloc.c.","status":"published","published":"2017-08-21T07:29:00.373Z","modified":"2026-06-17T01:04:15.547Z","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-119"],"updated_at":"2026-11-02T14:03:57.82609Z"}],"osv":[{"id":"ALPINE-CVE-2017-12982","description":"The bmp_read_info_header function in bin/jp2/convertbmp.c in OpenJPEG 2.2.0 does not reject headers with a zero biBitCount, which allows remote attackers to cause a denial of service (memory allocation failure) in the opj_image_create function in lib/openjp2/image.c, related to the opj_aligned_alloc_n function in opj_malloc.c.","status":"published","published":"2017-08-21T07:29:00.373Z","modified":"2026-06-15T18:18:06.766430971Z","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:27:46.716249Z"},{"id":"BELL-CVE-2017-12982","title":"CVE-2017-12982 does not affect BellSoft software","status":"withdrawn","published":"2023-08-31T12:15:32.26997Z","modified":"2026-01-26T09:47:33.426454Z","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:28:14.137943Z"},{"id":"CVE-2017-12982","description":"The bmp_read_info_header function in bin/jp2/convertbmp.c in OpenJPEG 2.2.0 does not reject headers with a zero biBitCount, which allows remote attackers to cause a denial of service (memory allocation failure) in the opj_image_create function in lib/openjp2/image.c, related to the opj_aligned_alloc_n function in opj_malloc.c.","status":"published","published":"2017-08-21T07:29:00.373Z","modified":"2026-10-20T13:22:13.890823767Z","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:04.159616Z"},{"id":"DEBIAN-CVE-2017-12982","description":"The bmp_read_info_header function in bin/jp2/convertbmp.c in OpenJPEG 2.2.0 does not reject headers with a zero biBitCount, which allows remote attackers to cause a denial of service (memory allocation failure) in the opj_image_create function in lib/openjp2/image.c, related to the opj_aligned_alloc_n function in opj_malloc.c.","status":"published","published":"2017-08-21T07:29:00.373Z","modified":"2026-09-01T20:03:42.716858932Z","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:28.50097Z"},{"id":"UBUNTU-CVE-2017-12982","description":"The bmp_read_info_header function in bin/jp2/convertbmp.c in OpenJPEG 2.2.0 does not reject headers with a zero biBitCount, which allows remote attackers to cause a denial of service (memory allocation failure) in the opj_image_create function in lib/openjp2/image.c, related to the opj_aligned_alloc_n function in opj_malloc.c.","status":"published","published":"2017-08-21T07:29:00Z","modified":"2026-04-22T11:13:24.899865Z","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:14.122973Z"},{"id":"openSUSE-SU-2024:11120-1","title":"libopenjp2-7-2.4.0-1.4 on GA media","description":"These are all security issues fixed in the libopenjp2-7-2.4.0-1.4 package on the GA media of openSUSE Tumbleweed.","status":"published","published":"2024-06-15T00:00:00Z","modified":"2026-02-04T03:39:34.719167Z","updated_at":"2026-11-02T16:58:34.894275Z"},{"id":"USN-4782-1","title":"openjpeg2 vulnerabilities","description":"It was discovered that OpenJPEG incorrectly handled certain image files. A\nremote attacker could possibly use this issue to cause a denial of service.\nCVE-2016-10506 and CVE-2017-12982 affected only Ubuntu 16.04 ESM.\nCVE-2018-16375, CVE-2018-20845 and CVE-2019-12973 affected only\nUbuntu 18.04 ESM.\n","status":"published","published":"2021-03-17T17:24:23Z","modified":"2026-06-25T13:30:25.010561132Z","updated_at":"2026-11-02T16:58:15.159055Z"}]}}
