OpenJPEG 2.2.0 biBitCount bin/jp2/convertbmp.c opj_aligned_alloc_n memory corruption

CVSS Meta Temp Score
CVSS is a standardized scoring system to determine possibilities of attacks. The Temp Score considers temporal factors like disclosure, exploit and countermeasures. The unique Meta Score calculates the average score of different sources to provide a normalized scoring system.
Current Exploit Price (≈)
Our analysts are monitoring exploit markets and are in contact with vulnerability brokers. The range indicates the observed or calculated exploit price to be seen on exploit markets. A good indicator to understand the monetary effort required for and the popularity of an attack.
CTI Interest Score
Our Cyber Threat Intelligence team is monitoring different web sites, mailing lists, exploit markets and social media networks. The CTI Interest Score identifies the interest of attackers and the security community for this specific vulnerability in real-time. A high score indicates an elevated risk to be targeted for this vulnerability.
4.3$0-$5k0.00

Summaryinfo

A vulnerability identified as problematic has been detected in OpenJPEG 2.2.0. This vulnerability affects the function opj_aligned_alloc_n in the library lib/openjp2/image.c of the file bin/jp2/convertbmp.c of the component biBitCount. This manipulation causes memory corruption. This vulnerability is registered as CVE-2017-12982. The attack needs to be launched locally. No exploit is available. You should upgrade the affected component.

Detailsinfo

A vulnerability classified as problematic was found in OpenJPEG 2.2.0 (Image Processing Software). Affected by this vulnerability is the function opj_aligned_alloc_n in the library lib/openjp2/image.c of the file bin/jp2/convertbmp.c of the component biBitCount. The manipulation with an unknown input leads to a memory corruption vulnerability. The CWE definition for the vulnerability is CWE-119. The product performs operations on a memory buffer, but it can read from or write to a memory location that is outside of the intended boundary of the buffer. As an impact it is known to affect availability. The summary by CVE is:

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.

The bug was discovered 08/14/2017. The weakness was published 08/21/2017 by Agostino Sarubbo with Gentoo (Website). The advisory is shared at blogs.gentoo.org. This vulnerability is known as CVE-2017-12982 since 08/21/2017. The attack can be launched remotely. The exploitation doesn't need any form of authentication. It demands that the victim is doing some kind of user interaction. Technical details are known, but no exploit is available.

The vulnerability was handled as a non-public zero-day exploit for at least 7 days. During that time the estimated underground price was around $0-$5k. The vulnerability scanner Nessus provides a plugin with the ID 102932 (Fedora 26 : mingw-openjpeg2 / openjpeg2 (2017-06cace06ce)), which helps to determine the existence of the flaw in a target environment. It is assigned to the family Fedora Local Security Checks and running in the context l. The commercial vulnerability scanner Qualys is able to test this issue with plugin 277692 (Fedora Security Update for openjpeg2 (FEDORA-2017-a5bb95b447)).

Upgrading eliminates this vulnerability. A possible mitigation has been published 2 weeks after the disclosure of the vulnerability.

The vulnerability is also documented in the databases at Tenable (102932) and SecurityFocus (BID 100553†). Similar entries are available at VDB-106003, VDB-106004, VDB-106125 and VDB-106126. Several companies clearly confirm that VulDB is the primary source for best vulnerability data.

Productinfo

Type

Name

Version

License

CPE 2.3info

CPE 2.2info

CVSSv4info

VulDB Vector: 🔍
VulDB Reliability: 🔍

CVSSv3info

VulDB Meta Base Score: 4.4
VulDB Meta Temp Score: 4.3

VulDB Base Score: 3.3
VulDB Temp Score: 3.2
VulDB Vector: 🔍
VulDB Reliability: 🔍

NVD Base Score: 5.5
NVD Vector: 🔍

CVSSv2info

AVACAuCIA
💳💳💳💳💳💳
💳💳💳💳💳💳
💳💳💳💳💳💳
VectorComplexityAuthenticationConfidentialityIntegrityAvailability
UnlockUnlockUnlockUnlockUnlockUnlock
UnlockUnlockUnlockUnlockUnlockUnlock
UnlockUnlockUnlockUnlockUnlockUnlock

VulDB Base Score: 🔍
VulDB Temp Score: 🔍
VulDB Reliability: 🔍

NVD Base Score: 🔍

Exploitinginfo

Class: Memory corruption
CWE: CWE-119
CAPEC: 🔍
ATT&CK: 🔍

Physical: Partially
Local: Yes
Remote: Yes

Availability: 🔍
Status: Not defined

EPSS Score: 🔍
EPSS Percentile: 🔍

Price Prediction: 🔍
Current Price Estimation: 🔍

0-DayUnlockUnlockUnlockUnlock
TodayUnlockUnlockUnlockUnlock

Nessus ID: 102932
Nessus Name: Fedora 26 : mingw-openjpeg2 / openjpeg2 (2017-06cace06ce)
Nessus File: 🔍
Nessus Risk: 🔍
Nessus Family: 🔍
Nessus Context: 🔍

OpenVAS ID: 867773
OpenVAS Name: Fedora Update for openjpeg2 FEDORA-2017-deefb26e8b
OpenVAS File: 🔍
OpenVAS Family: 🔍

Qualys ID: 🔍
Qualys Name: 🔍

Threat Intelligenceinfo

Interest: 🔍
Active Actors: 🔍
Active APT Groups: 🔍

Countermeasuresinfo

Recommended: Upgrade
Status: 🔍

Reaction Time: 🔍
0-Day Time: 🔍
Exposure Time: 🔍

Patch: github.com

Timelineinfo

08/14/2017 🔍
08/21/2017 +7 days 🔍
08/21/2017 +0 days 🔍
08/21/2017 +0 days 🔍
08/21/2017 +0 days 🔍
08/30/2017 +9 days 🔍
09/03/2017 +4 days 🔍
09/05/2017 +2 days 🔍
12/16/2022 +1928 days 🔍

Sourcesinfo

Advisory: FEDORA-2017-06cace06ce
Researcher: Agostino Sarubbo
Organization: Gentoo
Status: Confirmed

CVE: CVE-2017-12982 (🔍)
GCVE (CVE): GCVE-0-2017-12982
GCVE (VulDB): GCVE-100-105625
SecurityFocus: 100553 - OpenJPEG CVE-2017-14040 Memory Corruption Vulnerability

See also: 🔍

Entryinfo

Created: 08/21/2017 17:26
Updated: 12/16/2022 09:30
Changes: 08/21/2017 17:26 (71), 11/09/2019 15:07 (13), 12/16/2022 09:29 (5), 12/16/2022 09:30 (1)
Complete: 🔍
Cache ID: 216::103

Several companies clearly confirm that VulDB is the primary source for best vulnerability data.

Discussion

No comments yet. Languages: en.

Please log in to comment.

Want to stay up to date on a daily basis?

Enable the mail alert feature now!