Description
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.
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | libarchive | 3.2.1-1 | — |
| Debian 13 | libarchive | 3.2.1-1 | — |
| Debian 12 | libarchive | 3.2.1-1 | — |
| Debian 8 | libarchive | 3.1.2-11+deb8u2 | DSA-3657-1 |
| Debian 7 | libarchive | 3.0.4-3+wheezy2 | DLA-554-1 |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 16.04 LTS | libarchive | 3.1.2-11ubuntu0.16.04.2 | USN-3033-1 |
| Ubuntu 14.04 LTS | libarchive | 3.1.2-7ubuntu2.3 | USN-3033-1 |
Red Hat
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| RHEL 7 | bsdtar +3 | 3.1.2-10.el7_2 | RHSA-2016:1844 |
SUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLES 12 SP1 | libarchive | 3.1.2-22.1 | SUSE-SU-2016:1909-1 |
Show 1 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLES for SAP 12 SP1 | libarchive | 3.1.2-22.1 | SUSE-SU-2016:1909-1 |
Alpine
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine v3.4 | libarchive | 3.2.1-r0 | — |
Oracle Linux
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Oracle Linux 7 | bsdtar +3 | 3.1.2-10.el7_2 | ELSA-2016-1844 |
Advisories 6
- RHSA-2016:1844 Red Hat Security Advisory: libarchive security update Red Hat Security Advisories (RHSA) · Jun 27, 2026
- USN-3033-1 libarchive vulnerabilities Ubuntu Security Notices (USN) · Apr 22, 2026
- DLA-554-1 libarchive - security update Debian Security (DSA / DLA) · Mar 9, 2026
- DSA-3657-1 libarchive - security update Debian Security (DSA / DLA) · Mar 9, 2026
- SUSE-SU-2016:1909-1 Security update for libarchive SUSE / openSUSE Security Updates · Feb 4, 2026
- ELSA-2016-1844 Important: libarchive security update (Oracle Linux 7) Oracle Linux Security Advisories (ELSA) · Sep 12, 2016
References
- RHSA-2016:1844 vendor-advisory
- http://www.oracle.com/technetwork/topics/security/linuxbulletinjul2016-3090544.html
- http://blog.talosintel.com/2016/06/the-poisoned-archives.html
- http://www.talosintel.com/reports/TALOS-2016-0154/
- https://github.com/libarchive/libarchive/issues/719
- http://www.oracle.com/technetwork/topics/security/bulletinjul2016-3090568.html
- 91331 vdb-entry
- http://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=1348444
- GLSA-201701-03 vendor-advisory
- DSA-3657 vendor-advisory
- https://github.com/libarchive/libarchive/commit/05caadc7eedbef471ac9610809ba683f0c698700