CVE-2017-12982
The bmp_read_info_header function in bin/jp2/convertbmp.c in OpenJPEG 2.2.0 does not reject...
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.
Attack profile
How easy it is to exploit
- Attack vector
- Local
- Complexity
- Low
- Privileges needed
- None
- User interaction
- Required
What an attacker can affect
- Confidentiality
- None
- Integrity
- None
- Availability
- High
Exploit likelihood
What each source reports
NVD Score used
5.5
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.
- Record
CVE-2017-12982- CVSS 3.1
- 5.5 Medium
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H - CVSS 2.0
- 4.3 Medium
AV:N/AC:M/Au:N/C:N/I:N/A:P - Weakness
- CWE-119
- Updated
- 2026-11-02
CVE List No score
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.
- Record
CVE-2017-12982- Updated
- 2026-11-02
EUVDEUVD-2017-4500 No score
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.
- Record
EUVD-2017-4500- Updated
- 2026-11-03
GitHub AdvisoriesGHSA-4v94-xg8j-pp22
5.5
The bmp_read_info_header function in bin/jp2/convertbmp.c in OpenJPEG 2.2.0 does not reject...
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.
- Record
GHSA-4v94-xg8j-pp22- CVSS 3.1
- 5.5 Medium
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H - Weakness
- CWE-119
- Updated
- 2026-11-02
OSVALPINE-CVE-2017-12982
5.5
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.
- Record
ALPINE-CVE-2017-12982- CVSS 3.1
- 5.5 Medium
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H - Updated
- 2026-11-02
OSVBELL-CVE-2017-12982
5.5
CVE-2017-12982 does not affect BellSoft software
- Record
BELL-CVE-2017-12982- CVSS 3.1
- 5.5 Medium
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H - Updated
- 2026-11-02
Show 5 moreShow less
OSV
5.5
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.
- Record
CVE-2017-12982- CVSS 3.1
- 5.5 Medium
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H - Updated
- 2026-11-02
OSVDEBIAN-CVE-2017-12982
5.5
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.
- Record
DEBIAN-CVE-2017-12982- CVSS 3.1
- 5.5 Medium
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H - Updated
- 2026-11-02
OSVUBUNTU-CVE-2017-12982
5.5
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.
- Record
UBUNTU-CVE-2017-12982- CVSS 3.1
- 5.5 Medium
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H - CVSS 3.0
- 5.5 Medium
CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H - Updated
- 2026-11-02
OSVopenSUSE-SU-2024:11120-1 No score
libopenjp2-7-2.4.0-1.4 on GA media
These are all security issues fixed in the libopenjp2-7-2.4.0-1.4 package on the GA media of openSUSE Tumbleweed.
- Record
openSUSE-SU-2024:11120-1- Updated
- 2026-11-02
OSVUSN-4782-1 No score
openjpeg2 vulnerabilities
It was discovered that OpenJPEG incorrectly handled certain image files. A remote attacker could possibly use this issue to cause a denial of service. CVE-2016-10506 and CVE-2017-12982 affected only Ubuntu 16.04 ESM. CVE-2018-16375, CVE-2018-20845 and CVE-2019-12973 affected only Ubuntu 18.04 ESM.
- Record
USN-4782-1- Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
openjpegAlpine:v3.10 |
before 2.2.0-r1 | 2.2.0-r1 |
openjpegAlpine:v3.11 |
before 2.2.0-r1 | 2.2.0-r1 |
openjpegAlpine:v3.12 |
before 2.2.0-r1 | 2.2.0-r1 |
openjpegAlpine:v3.13 |
before 2.2.0-r1 | 2.2.0-r1 |
openjpegAlpine:v3.14 |
before 2.2.0-r1 | 2.2.0-r1 |
openjpegAlpine:v3.15 |
before 2.2.0-r1 | 2.2.0-r1 |
openjpegAlpine:v3.16 |
before 2.2.0-r1 | 2.2.0-r1 |
openjpegAlpine:v3.17 |
before 2.2.0-r1 | 2.2.0-r1 |
openjpegAlpine:v3.18 |
before 2.2.0-r1 | 2.2.0-r1 |
openjpegAlpine:v3.19 |
before 2.2.0-r1 | 2.2.0-r1 |
Show 19 moreShow less
| Package | Affected | Fixed |
|---|---|---|
openjpegAlpine:v3.20 |
before 2.2.0-r1 | 2.2.0-r1 |
openjpegAlpine:v3.21 |
before 2.2.0-r1 | 2.2.0-r1 |
openjpegAlpine:v3.22 |
before 2.2.0-r1 | 2.2.0-r1 |
openjpegAlpine:v3.23 |
before 2.2.0-r1 | 2.2.0-r1 |
openjpegAlpine:v3.24 |
before 2.2.0-r1 | 2.2.0-r1 |
openjpegAlpine:v3.3 |
before 2.1.2-r2 | 2.1.2-r2 |
openjpegAlpine:v3.4 |
before 2.1.2-r2 | 2.1.2-r2 |
openjpegAlpine:v3.5 |
before 2.1.2-r2 | 2.1.2-r2 |
openjpegAlpine:v3.6 |
before 2.1.2-r2 | 2.1.2-r2 |
openjpegAlpine:v3.7 |
before 2.2.0-r1 | 2.2.0-r1 |
openjpegAlpine:v3.8 |
before 2.2.0-r1 | 2.2.0-r1 |
openjpegAlpine:v3.9 |
before 2.2.0-r1 | 2.2.0-r1 |
openjpeg2Debian:12 |
before 2.3.0-1 | 2.3.0-1 |
openjpeg2Debian:13 |
before 2.3.0-1 | 2.3.0-1 |
openjpeg2Debian:14 |
before 2.3.0-1 | 2.3.0-1 |
openjpeg2Ubuntu:Pro:16.04:LTS |
before 2.1.2-1.1+deb9u6ubuntu0.1~esm1, plus listed versions 2.1.0-2.12.1.0-2.1ubuntu0.12.1.2-1.1+deb9u2build0.12.1.2-1.1+deb9u3build0.16.04.12.1.2-1.1+deb9u3ubuntu0.1~esm12.1.2-1.1+deb9u5build0.16.04.12.1.2-1.1+deb9u5ubuntu0.1~esm12.1.2-1.1+deb9u6build0.16.04.1 |
2.1.2-1.1+deb9u6ubuntu0.1~esm1 |
openjpeg2Ubuntu:18.04:LTS |
before 2.3.0-1, plus listed versions 2.2.0-1 |
2.3.0-1 |
openjpeg2Ubuntu:Pro:16.04:LTS From an advisory covering 6 CVEs |
before 2.1.2-1.1+deb9u6ubuntu0.1~esm1, plus listed versions 2.1.0-2.12.1.0-2.1ubuntu0.12.1.2-1.1+deb9u2build0.12.1.2-1.1+deb9u3build0.16.04.12.1.2-1.1+deb9u3ubuntu0.1~esm12.1.2-1.1+deb9u5build0.16.04.12.1.2-1.1+deb9u5ubuntu0.1~esm12.1.2-1.1+deb9u6build0.16.04.1 |
2.1.2-1.1+deb9u6ubuntu0.1~esm1 |
openjpeg2Ubuntu:Pro:18.04:LTS From an advisory covering 6 CVEs |
before 2.3.0-2ubuntu0.1~esm1, plus listed versions 2.2.0-12.3.0-12.3.0-2build0.18.04.1 |
2.3.0-2ubuntu0.1~esm1 |
History
| Recorded | Changed | Sources |
|---|---|---|
| affected, facts | ||
| aliases | EUVD | |
| first indexed | CVE List, GitHub Advisories, NVD, OSV |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2017-12982 is a medium vulnerability (CVSS 5.5) in Uclouvain Openjpeg, published August 21, 2017. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 2.77%, the 86th percentile. Fixed in openjpeg 2.2.0-r1.
References
github.com/uclouvain/openjpeg/commit/baf0c1ad4572daa89caa3b12985bdd93530f0dd7
security.gentoo.org/glsa/201710-26
blogs.gentoo.org/ago/2017/08/14/openjpeg-memory-allocation-failure-in-opj_aligned_alloc_n-opj_malloc-c
github.com/uclouvain/openjpeg/issues/983
nvd.nist.gov/vuln/detail/CVE-2017-12982
github.com/advisories/GHSA-4v94-xg8j-pp22
Show 34 moreShow less
security.alpinelinux.org/vuln/CVE-2017-12982
docs.bell-sw.com/security/cves/CVE-2017-12982
security-tracker.debian.org/tracker/CVE-2017-12982
ubuntu.com/security/CVE-2017-12982
ubuntu.com/security/notices/USN-4782-1
cve.org/CVERecord?id=CVE-2017-12982
ubuntu.com/security/CVE-2016-10506
ubuntu.com/security/CVE-2018-5727
ubuntu.com/security/CVE-2018-16375
ubuntu.com/security/CVE-2018-20845
ubuntu.com/security/CVE-2019-12973
suse.com/security/cve/CVE-2016-10504
suse.com/security/cve/CVE-2016-10505
suse.com/security/cve/CVE-2016-10506
suse.com/security/cve/CVE-2016-5139
suse.com/security/cve/CVE-2016-5152
suse.com/security/cve/CVE-2016-5158
suse.com/security/cve/CVE-2016-8332
suse.com/security/cve/CVE-2017-12982
suse.com/security/cve/CVE-2017-14039
suse.com/security/cve/CVE-2017-14040
suse.com/security/cve/CVE-2017-14041
suse.com/security/cve/CVE-2017-14151
suse.com/security/cve/CVE-2017-14152
suse.com/security/cve/CVE-2018-14423
suse.com/security/cve/CVE-2018-16375
suse.com/security/cve/CVE-2018-18088
suse.com/security/cve/CVE-2018-5727
suse.com/security/cve/CVE-2018-5785
suse.com/security/cve/CVE-2018-6616
suse.com/security/cve/CVE-2018-7648
suse.com/security/cve/CVE-2019-12973
suse.com/security/cve/CVE-2020-6851
suse.com/security/cve/CVE-2020-8112