OpenJPEG 2.2.0 biBitCount bin/jp2/convertbmp.c opj_aligned_alloc_n memory corruption
| CVSS Meta Temp Score | Current Exploit Price (≈) | CTI Interest Score |
|---|---|---|
| 4.3 | $0-$5k | 0.00 |
Summary
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.
Details
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.
Product
Type
Name
Version
License
CPE 2.3
CPE 2.2
CVSSv4
VulDB Vector: 🔍VulDB Reliability: 🔍
CVSSv3
VulDB Meta Base Score: 4.4VulDB 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: 🔍
CVSSv2
| AV | AC | Au | C | I | A |
|---|---|---|---|---|---|
| 💳 | 💳 | 💳 | 💳 | 💳 | 💳 |
| 💳 | 💳 | 💳 | 💳 | 💳 | 💳 |
| 💳 | 💳 | 💳 | 💳 | 💳 | 💳 |
| Vector | Complexity | Authentication | Confidentiality | Integrity | Availability |
|---|---|---|---|---|---|
| Unlock | Unlock | Unlock | Unlock | Unlock | Unlock |
| Unlock | Unlock | Unlock | Unlock | Unlock | Unlock |
| Unlock | Unlock | Unlock | Unlock | Unlock | Unlock |
VulDB Base Score: 🔍
VulDB Temp Score: 🔍
VulDB Reliability: 🔍
NVD Base Score: 🔍
Exploiting
Class: Memory corruptionCWE: 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-Day | Unlock | Unlock | Unlock | Unlock |
|---|---|---|---|---|
| Today | Unlock | Unlock | Unlock | Unlock |
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 Intelligence
Interest: 🔍Active Actors: 🔍
Active APT Groups: 🔍
Countermeasures
Recommended: UpgradeStatus: 🔍
Reaction Time: 🔍
0-Day Time: 🔍
Exposure Time: 🔍
Patch: github.com
Timeline
08/14/2017 🔍08/21/2017 🔍
08/21/2017 🔍
08/21/2017 🔍
08/21/2017 🔍
08/30/2017 🔍
09/03/2017 🔍
09/05/2017 🔍
12/16/2022 🔍
Sources
Advisory: FEDORA-2017-06cace06ceResearcher: 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: 🔍
Entry
Created: 08/21/2017 17:26Updated: 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.
No comments yet. Languages: en.
Please log in to comment.