libarchive up to 3.2.0 ISO9660 Archive iso9660.c isoent_gen_joliet_identifier integer overflow
CVSS Meta Temp Score | Current Exploit Price (≈) | CTI Interest Score |
---|---|---|
8.4 | $0-$5k | 0.00 |
A vulnerability has been found in libarchive up to 3.2.0 (File Compression Software) and classified as critical. Affected by this vulnerability is the function isoent_gen_joliet_identifier
of the file iso9660.c of the component ISO9660 Archive Handler. The manipulation with an unknown input leads to a integer overflow vulnerability. The CWE definition for the vulnerability is CWE-190. The product performs a calculation that can produce an integer overflow or wraparound, when the logic assumes that the resulting value will always be larger than the original value. This can introduce other weaknesses when the calculation is used for resource management or execution control. As an impact it is known to affect confidentiality, integrity, and availability.
The weakness was disclosed 07/22/2016 by Christian Wressnegger, Alwin Maier and Fabian Yamaguchi as libarchive 3.2.0: Buffer overflow when writing iso9660 containers as confirmed advisory (Website). It is possible to read the advisory at github.com. This vulnerability is known as CVE-2016-6250 since 07/20/2016. The exploitation appears to be easy. The attack can be launched remotely. The exploitation doesn't need any form of authentication. Technical details of the vulnerability are known, but there is no available exploit. Responsible for the vulnerability is the following code:
int ffmax, parent_len; (...) r = idr_start(a, idr, isoent->children.cnt, ffmax, 6, 2, &rb_ops);The advisory points out:
On `archive_close` the previously created records are written to disk and---as mentioned earlier---this happens based on the records' offsets.
The vulnerability scanner Nessus provides a plugin with the ID 95367 (SUSE SLED12 / SLES12 Security Update : libarchive (SUSE-SU-2016:2911-1)), which helps to determine the existence of the flaw in a target environment. It is assigned to the family SuSE Local Security Checks and running in the context l. The commercial vulnerability scanner Qualys is able to test this issue with plugin 175845 (Debian Security Update for libarchive (DSA 3677-1)).
Upgrading to version 3.2.1 eliminates this vulnerability. Applying a patch is able to eliminate this problem. The bugfix is ready for download at github.com. The best possible mitigation is suggested to be upgrading to the latest version. A possible mitigation has been published even before and not after the disclosure of the vulnerability. The vulnerability will be addressed with the following lines of code:
size_t ffmax, parent_len; (...) r = idr_start(a, idr, isoent->children.cnt, (int)ffmax, 6, 2, &rb_ops);
The vulnerability is also documented in the databases at Tenable (95367), SecurityFocus (BID 92036†) and SecurityTracker (ID 1036431†). The entries VDB-91826, VDB-91827, VDB-95952 and VDB-97005 are pretty similar.
Product
Type
Name
Version
License
CPE 2.3
CPE 2.2
CVSSv4
VulDB CVSS-B Score: 🔍VulDB CVSS-BT Score: 🔍
VulDB Vector: 🔍
VulDB Reliability: 🔍
CVSSv3
VulDB Meta Base Score: 8.6VulDB Meta Temp Score: 8.4
VulDB Base Score: 8.6
VulDB Temp Score: 8.2
VulDB Vector: 🔍
VulDB Reliability: 🔍
NVD Base Score: 8.6
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: Integer overflowCWE: CWE-190 / CWE-189
CAPEC: 🔍
ATT&CK: 🔍
Local: No
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: 95367
Nessus Name: SUSE SLED12 / SLES12 Security Update : libarchive (SUSE-SU-2016:2911-1)
Nessus File: 🔍
Nessus Risk: 🔍
Nessus Family: 🔍
Nessus Context: 🔍
OpenVAS ID: 15621
OpenVAS Name: Amazon Linux Local Check: alas-2016-743
OpenVAS File: 🔍
OpenVAS Family: 🔍
Qualys ID: 🔍
Qualys Name: 🔍
Threat Intelligence
Interest: 🔍Active Actors: 🔍
Active APT Groups: 🔍
Countermeasures
Recommended: UpgradeStatus: 🔍
Reaction Time: 🔍
0-Day Time: 🔍
Upgrade: libarchive 3.2.1
Patch: github.com
Timeline
05/28/2016 🔍05/28/2016 🔍
07/20/2016 🔍
07/20/2016 🔍
07/22/2016 🔍
07/22/2016 🔍
07/23/2016 🔍
09/21/2016 🔍
11/28/2016 🔍
09/09/2022 🔍
Sources
Advisory: libarchive 3.2.0: Buffer overflow when writing iso9660 containersResearcher: Christian Wressnegger, Alwin Maier, Fabian Yamaguchi
Status: Confirmed
Confirmation: 🔍
CVE: CVE-2016-6250 (🔍)
OVAL: 🔍
SecurityFocus: 92036 - libarchive 'archive_write_set_format_iso9660.c' Integer Overflow Vulnerability
SecurityTracker: 1036431
See also: 🔍
Entry
Created: 07/23/2016 12:18 PMUpdated: 09/09/2022 10:50 AM
Changes: 07/23/2016 12:18 PM (81), 03/07/2019 04:09 PM (11), 09/09/2022 10:50 AM (3)
Complete: 🔍
Cache ID: 18:083:40
No comments yet. Languages: en.
Please log in to comment.