CVE-2016-4302
libarchive: Heap buffer overflow in the Rar decompression functionality
Severity Score
Exploit Likelihood
Affected Versions
Public Exploits
2Exploited in Wild
-Decision
Descriptions
Heap-based buffer overflow in the parse_codes function in archive_read_support_format_rar.c in libarchive before 3.2.1 allows remote attackers to execute arbitrary code via a RAR file with a zero-sized dictionary.
Desbordamiento de búfer basado en memoria dinámica en la función parse_codes en archive_read_support_format_rar.c en libarchive en versiones anteriores a 3.2.1 permite a atacantes remotos ejecutar código arbitrario a través de un archivo RAR con un diccionario de tamaño cero.
A vulnerability was found in libarchive's handling of RAR archives. A specially crafted RAR file can cause a heap overflow, potentially leading to code execution in the context of the application.
An update that fixes 20 vulnerabilities is now available. Libarchive was updated to fix 20 security issues. These security issues were fixed. Overlapping memcpy in CAB parser. Heap out of bounds read in LHA/LZH parser. Stack out of bounds read in ar parser. Global out of bounds read in mtree parser. Null pointer access in 7z parser. Unclear crashes in ZIP parser. Heap buffer read overflow in tar. Unclear invalid memory read in mtree parser. NULL pointer access in RAR parser. Heap out of bounds read in mtree parser. Memory leak in tar parser. Endless loop in ISO parser. Undefined behavior / signed integer overflow in mtree parser. Compress handler left shifting larger than int size. Undefined behavior / signed integer overflow in TAR parser. Out of bounds read in RAR. Heap buffer overflow vulnerability in the 7zip read_SubStreamsInfo. Stack buffer overflow in the mtree parse_device. Heap buffer overflow in the Rar decompression functionality. Memory allocate error with symbolic links in cpio archives. This update was imported from the SUSE:SLE-12:Update update project.
CVSS Scores
SSVC
- Decision:-
Timeline
- 2016-04-27 CVE Reserved
- 2016-07-14 CVE Published
- 2024-08-06 CVE Updated
- 2024-08-06 First Exploit
- 2025-05-25 EPSS Updated
- ---------- Exploited in Wild
- ---------- KEV Due Date
CWE
- CWE-119: Improper Restriction of Operations within the Bounds of a Memory Buffer
- CWE-122: Heap-based Buffer Overflow
CAPEC
References (13)
URL | Tag | Source |
---|---|---|
http://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=1348444 | Issue Tracking | |
http://www.oracle.com/technetwork/topics/security/bulletinjul2016-3090568.html | X_refsource_confirm |
|
http://www.oracle.com/technetwork/topics/security/linuxbulletinjul2016-3090544.html | X_refsource_confirm |
|
http://www.securityfocus.com/bid/91331 | Third Party Advisory |
URL | Date | SRC |
---|---|---|
http://blog.talosintel.com/2016/06/the-poisoned-archives.html | 2024-08-06 | |
http://www.talosintel.com/reports/TALOS-2016-0154 | 2024-08-06 |
URL | Date | SRC |
---|---|---|
https://github.com/libarchive/libarchive/commit/05caadc7eedbef471ac9610809ba683f0c698700 | 2017-11-04 | |
https://github.com/libarchive/libarchive/issues/719 | 2017-11-04 |
URL | Date | SRC |
---|---|---|
http://rhn.redhat.com/errata/RHSA-2016-1844.html | 2017-11-04 | |
http://www.debian.org/security/2016/dsa-3657 | 2017-11-04 | |
https://security.gentoo.org/glsa/201701-03 | 2017-11-04 | |
https://access.redhat.com/security/cve/CVE-2016-4302 | 2016-09-12 | |
https://bugzilla.redhat.com/show_bug.cgi?id=1348444 | 2016-09-12 |
Affected Vendors, Products, and Versions
Vendor | Product | Version | Other | Status | ||||||
---|---|---|---|---|---|---|---|---|---|---|
Vendor | Product | Version | Other | Status | <-- --> | Vendor | Product | Version | Other | Status |
Redhat Search vendor "Redhat" | Enterprise Linux Desktop Search vendor "Redhat" for product "Enterprise Linux Desktop" | 7.0 Search vendor "Redhat" for product "Enterprise Linux Desktop" and version "7.0" | - |
Affected
| ||||||
Redhat Search vendor "Redhat" | Enterprise Linux Hpc Node Search vendor "Redhat" for product "Enterprise Linux Hpc Node" | 7.0 Search vendor "Redhat" for product "Enterprise Linux Hpc Node" and version "7.0" | - |
Affected
| ||||||
Redhat Search vendor "Redhat" | Enterprise Linux Hpc Node Eus Search vendor "Redhat" for product "Enterprise Linux Hpc Node Eus" | 7.2 Search vendor "Redhat" for product "Enterprise Linux Hpc Node Eus" and version "7.2" | - |
Affected
| ||||||
Redhat Search vendor "Redhat" | Enterprise Linux Server Search vendor "Redhat" for product "Enterprise Linux Server" | 7.0 Search vendor "Redhat" for product "Enterprise Linux Server" and version "7.0" | - |
Affected
| ||||||
Redhat Search vendor "Redhat" | Enterprise Linux Server Aus Search vendor "Redhat" for product "Enterprise Linux Server Aus" | 7.2 Search vendor "Redhat" for product "Enterprise Linux Server Aus" and version "7.2" | - |
Affected
| ||||||
Redhat Search vendor "Redhat" | Enterprise Linux Server Eus Search vendor "Redhat" for product "Enterprise Linux Server Eus" | 7.2 Search vendor "Redhat" for product "Enterprise Linux Server Eus" and version "7.2" | - |
Affected
| ||||||
Redhat Search vendor "Redhat" | Enterprise Linux Workstation Search vendor "Redhat" for product "Enterprise Linux Workstation" | 7.0 Search vendor "Redhat" for product "Enterprise Linux Workstation" and version "7.0" | - |
Affected
| ||||||
Libarchive Search vendor "Libarchive" | Libarchive Search vendor "Libarchive" for product "Libarchive" | <= 3.2.0 Search vendor "Libarchive" for product "Libarchive" and version " <= 3.2.0" | - |
Affected
|