5.5
MEDIUM CVSS 3.1
CVE-2017-12982
OpenJPEG BMP Information Header Bit Count Zero Dos
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.

INFO

Published Date :

Aug. 21, 2017, 7:29 a.m.

Last Modified :

April 20, 2025, 1:37 a.m.

Remotely Exploit :

No
Affected Products

The following products are affected by CVE-2017-12982 vulnerability. Even if cvefeed.io is aware of the exact versions of the products that are affected, the information is not represented in the table below.

ID Vendor Product Action
1 Uclouvain openjpeg
CVSS Scores
The Common Vulnerability Scoring System is a standardized framework for assessing the severity of vulnerabilities in software and systems. We collect and displays CVSS scores from various sources for each CVE.
Score Version Severity Vector Exploitability Score Impact Score Source
CVSS 2.0 MEDIUM [email protected]
CVSS 3.1 MEDIUM [email protected]
Solution
The OpenJPEG library has a denial of service vulnerability that should be remediated by updating.
  • Update the openjpeg package to the latest version.
  • Upgrade to OpenJPEG version 2.3.0 or later.
Public PoC/Exploit Available at Github

CVE-2017-12982 has a 5 public PoC/Exploit available at Github. Go to the Public Exploits tab to see the list.

References to Advisories, Solutions, and Tools

Here, you will find a curated list of external links that provide in-depth information, practical solutions, and valuable tools related to CVE-2017-12982.

URL Resource
https://blogs.gentoo.org/ago/2017/08/14/openjpeg-memory-allocation-failure-in-opj_aligned_alloc_n-opj_malloc-c/ Patch Third Party Advisory VDB Entry
https://github.com/uclouvain/openjpeg/commit/baf0c1ad4572daa89caa3b12985bdd93530f0dd7 Issue Tracking Patch Third Party Advisory
https://github.com/uclouvain/openjpeg/issues/983 Issue Tracking Patch Third Party Advisory
https://security.gentoo.org/glsa/201710-26 Third Party Advisory
https://blogs.gentoo.org/ago/2017/08/14/openjpeg-memory-allocation-failure-in-opj_aligned_alloc_n-opj_malloc-c/ Patch Third Party Advisory VDB Entry
https://github.com/uclouvain/openjpeg/commit/baf0c1ad4572daa89caa3b12985bdd93530f0dd7 Issue Tracking Patch Third Party Advisory
https://github.com/uclouvain/openjpeg/issues/983 Issue Tracking Patch Third Party Advisory
https://security.gentoo.org/glsa/201710-26 Third Party Advisory
CWE - Common Weakness Enumeration

While CVE identifies specific instances of vulnerabilities, CWE categorizes the common flaws or weaknesses that can lead to vulnerabilities. CVE-2017-12982 is associated with the following CWEs:

We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).

[ICSE2020] MemLock DataSet

fuzzing

Makefile Python Shell CMake JavaScript HTML CSS C++ C Java

Updated: 3 years, 10 months ago
1 stars 1 fork 1 watcher
Born at : Oct. 10, 2020, 2:29 a.m. This repo has been linked 18 different CVEs too.

None

Makefile Python Shell CMake JavaScript HTML CSS C++ C Java

Updated: 2 years, 9 months ago
1 stars 1 fork 1 watcher
Born at : Oct. 10, 2020, 2:23 a.m. This repo has been linked 40 different CVEs too.

[ICSE2020] MemLock DataSet

fuzzing

Makefile Python Shell CMake JavaScript HTML CSS C++ C Java

Updated: 3 years, 10 months ago
0 stars 1 fork 1 watcher
Born at : Oct. 10, 2020, 2:19 a.m. This repo has been linked 40 different CVEs too.

MemLock_Benchmark: The vulnerability related to Excessive Memory Consumption, which can test the ability of fuzzer for generating inputs that consume lost of memory.

Makefile Python Shell CMake JavaScript HTML CSS C++ C Java

Updated: 4 months, 1 week ago
6 stars 0 fork 0 watcher
Born at : Dec. 30, 2019, 9:16 a.m. This repo has been linked 40 different CVEs too.

ExMem_Benchmark: The vulnerability related to Excessive Memory Consumption, which can test the ability of fuzzer for generating inputs that consume lost of memory.

Makefile Python Shell CMake JavaScript HTML CSS C++ C Java

Updated: 5 years, 8 months ago
0 stars 0 fork 0 watcher
Born at : Dec. 30, 2019, 2:15 a.m. This repo has been linked 40 different CVEs too.

Results are limited to the first 15 repositories due to potential performance issues.

The following list is the news that have been mention CVE-2017-12982 vulnerability anywhere in the article.

The following table lists the changes that have been made to the CVE-2017-12982 vulnerability over time.

Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.

  • CVE Modified by af854a3a-2127-422b-91ae-364da2661108

    Nov. 21, 2024

    Action Type Old Value New Value
    Added Reference https://blogs.gentoo.org/ago/2017/08/14/openjpeg-memory-allocation-failure-in-opj_aligned_alloc_n-opj_malloc-c/
    Added Reference https://github.com/uclouvain/openjpeg/commit/baf0c1ad4572daa89caa3b12985bdd93530f0dd7
    Added Reference https://github.com/uclouvain/openjpeg/issues/983
    Added Reference https://security.gentoo.org/glsa/201710-26
  • CVE Modified by [email protected]

    May. 14, 2024

    Action Type Old Value New Value
  • Modified Analysis by [email protected]

    Feb. 02, 2021

    Action Type Old Value New Value
    Removed CVSS V3 NIST AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
    Added CVSS V3.1 NIST AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
    Changed Reference Type https://security.gentoo.org/glsa/201710-26 No Types Assigned https://security.gentoo.org/glsa/201710-26 Third Party Advisory
    Changed CPE Configuration OR *cpe:2.3:a:uclouvain:openjpeg:2.2.0:*:*:*:*:*:*:* OR *cpe:2.3:a:uclouvain:openjpeg:*:*:*:*:*:*:*:* versions up to (excluding) 2.3.0
  • CPE Deprecation Remap by [email protected]

    Jan. 26, 2021

    Action Type Old Value New Value
    Changed CPE Configuration OR *cpe:2.3:a:openjpeg:openjpeg:2.2.0:*:*:*:*:*:*:* OR *cpe:2.3:a:uclouvain:openjpeg:2.2.0:*:*:*:*:*:*:*
  • CVE Modified by [email protected]

    Oct. 24, 2017

    Action Type Old Value New Value
    Added Reference https://security.gentoo.org/glsa/201710-26 [No Types Assigned]
  • Initial Analysis by [email protected]

    Aug. 29, 2017

    Action Type Old Value New Value
    Added CVSS V2 (AV:N/AC:M/Au:N/C:N/I:N/A:P)
    Added CVSS V3 AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
    Changed Reference Type https://github.com/uclouvain/openjpeg/issues/983 No Types Assigned https://github.com/uclouvain/openjpeg/issues/983 Issue Tracking, Patch, Third Party Advisory
    Changed Reference Type https://github.com/uclouvain/openjpeg/commit/baf0c1ad4572daa89caa3b12985bdd93530f0dd7 No Types Assigned https://github.com/uclouvain/openjpeg/commit/baf0c1ad4572daa89caa3b12985bdd93530f0dd7 Issue Tracking, Patch, Third Party Advisory
    Changed Reference Type https://blogs.gentoo.org/ago/2017/08/14/openjpeg-memory-allocation-failure-in-opj_aligned_alloc_n-opj_malloc-c/ No Types Assigned https://blogs.gentoo.org/ago/2017/08/14/openjpeg-memory-allocation-failure-in-opj_aligned_alloc_n-opj_malloc-c/ Patch, Third Party Advisory, VDB Entry
    Added CWE CWE-119
    Added CPE Configuration OR *cpe:2.3:a:openjpeg:openjpeg:2.2.0:*:*:*:*:*:*:*
EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days. Following chart shows the EPSS score history of the vulnerability.
Vulnerability Scoring Details
Base CVSS Score: 5.5
Attack Vector
Attack Complexity
Privileges Required
User Interaction
Scope
Confidentiality Impact
Integrity Impact
Availability Impact
Base CVSS Score: 4.3
Access Vector
Access Complexity
Authentication
Confidentiality Impact
Integrity Impact
Availability Impact
Exploit Prediction

EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days.

0.27 }} -0.08%

score

0.49852

percentile