Every CVE Search/ Get API key

CVE-2017-12982

The bmp_read_info_header function in bin/jp2/convertbmp.c in OpenJPEG 2.2.0 does not reject...

5.5 MediumFix available

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

2.77%Up 1.1 points since Apr 14, 2021
90%50%10%1%

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 MediumCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
CVSS 2.0
4.3 MediumAV: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 MediumCVSS: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 MediumCVSS: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 MediumCVSS: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 MediumCVSS: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 MediumCVSS: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 MediumCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
CVSS 3.0
5.5 MediumCVSS: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

Affected packages
PackageAffectedFixed
openjpeg
Alpine:v3.10
before 2.2.0-r1
2.2.0-r1
openjpeg
Alpine:v3.11
before 2.2.0-r1
2.2.0-r1
openjpeg
Alpine:v3.12
before 2.2.0-r1
2.2.0-r1
openjpeg
Alpine:v3.13
before 2.2.0-r1
2.2.0-r1
openjpeg
Alpine:v3.14
before 2.2.0-r1
2.2.0-r1
openjpeg
Alpine:v3.15
before 2.2.0-r1
2.2.0-r1
openjpeg
Alpine:v3.16
before 2.2.0-r1
2.2.0-r1
openjpeg
Alpine:v3.17
before 2.2.0-r1
2.2.0-r1
openjpeg
Alpine:v3.18
before 2.2.0-r1
2.2.0-r1
openjpeg
Alpine:v3.19
before 2.2.0-r1
2.2.0-r1
Show 19 moreShow less
Affected packages
PackageAffectedFixed
openjpeg
Alpine:v3.20
before 2.2.0-r1
2.2.0-r1
openjpeg
Alpine:v3.21
before 2.2.0-r1
2.2.0-r1
openjpeg
Alpine:v3.22
before 2.2.0-r1
2.2.0-r1
openjpeg
Alpine:v3.23
before 2.2.0-r1
2.2.0-r1
openjpeg
Alpine:v3.24
before 2.2.0-r1
2.2.0-r1
openjpeg
Alpine:v3.3
before 2.1.2-r2
2.1.2-r2
openjpeg
Alpine:v3.4
before 2.1.2-r2
2.1.2-r2
openjpeg
Alpine:v3.5
before 2.1.2-r2
2.1.2-r2
openjpeg
Alpine:v3.6
before 2.1.2-r2
2.1.2-r2
openjpeg
Alpine:v3.7
before 2.2.0-r1
2.2.0-r1
openjpeg
Alpine:v3.8
before 2.2.0-r1
2.2.0-r1
openjpeg
Alpine:v3.9
before 2.2.0-r1
2.2.0-r1
openjpeg2
Debian:12
before 2.3.0-1
2.3.0-1
openjpeg2
Debian:13
before 2.3.0-1
2.3.0-1
openjpeg2
Debian:14
before 2.3.0-1
2.3.0-1
openjpeg2
Ubuntu: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
openjpeg2
Ubuntu:18.04:LTS
before 2.3.0-1, plus listed versions
2.2.0-1
2.3.0-1
openjpeg2
Ubuntu: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
openjpeg2
Ubuntu: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

History
RecordedChangedSources
affected, facts
aliasesEUVD
first indexedCVE 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

Show 34 moreShow less
MoveEnter Open