Description
An improper link resolution flaw can occur while extracting an archive leading to changing modes, times, access control lists, and flags of a file outside of the archive. An attacker may provide a malicious archive to a victim user, who would trigger this flaw when trying to extract the archive. A local attacker may use this flaw to gain more privileges in a system.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| — | libarchive | Fixed in libarchive 3.5.2 | — |
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.5.2-1 | — |
| Debian 13 | libarchive | 3.5.2-1 | — |
| Debian 12 | libarchive | 3.5.2-1 | — |
| Debian 10 | libarchive | 3.3.3-4+deb10u2 | DLA-3202-1 |
| Debian 9 | libarchive | 3.2.2-2+deb9u3 | DLA-2987-1 |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 20.04 LTS | libarchive | 3.4.0-2ubuntu1.1 | USN-5291-1 |
Show 3 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu Pro 18.04 LTS | libarchive | No fix yet | — |
| Ubuntu Pro 16.04 LTS | libarchive | No fix yet | — |
| Ubuntu Pro 14.04 LTS | libarchive | No fix yet | — |
Red Hat
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| RHEL 8 | bsdtar +2 | 3.3.3-3.el8_5 | RHSA-2022:0892 |
AlmaLinux
Errata ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| AlmaLinux 8 | bsdtar +2 | 3.3.3-3.el8_5 | ALSA-2022:0892 |
Rocky Linux
Errata ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Rocky Linux 8 | libarchive | 3.3.3-3.el8_5 | RLSA-2022:0892 |
SUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLES 15 SP4 | libarchive | 3.5.1-150400.3.9.1 | SUSE-SU-2022:3936-1 |
| SLES 15 SP3 | libarchive | 3.4.2-150200.4.12.1 | SUSE-SU-2022:3935-1 |
Show 1 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLE Micro 5.3 | libarchive | 3.5.1-150400.3.9.1 | SUSE-SU-2022:3936-1 |
openSUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| openSUSE Tumbleweed | bsdtar | 3.6.0-1.1 | openSUSE-SU-2024:11894-1 |
| openSUSE Leap 15.4 | libarchive | 3.5.1-150400.3.9.1 | SUSE-SU-2022:3936-1 |
| openSUSE Leap 15.3 | libarchive | 3.4.2-150200.4.12.1 | SUSE-SU-2022:3935-1 |
Alpine
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine v3.14 | libarchive | 3.5.3-r0 | — |
| Alpine v3.13 | libarchive | 3.5.3-r0 | — |
Amazon Linux
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Amazon Linux 2023 | bsdcat +4 | 3.5.3-2.amzn2023.0.2 | ALAS2023-2023-071 |
| Amazon Linux 2 | bsdtar +3 | 3.1.2-14.amzn2.0.3 | ALAS2-2023-2374 |
Oracle Linux
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Oracle Linux 8 | bsdtar +2 | 3.3.3-3.el8_5 | ELSA-2022-0892 |
Advisories 15
- ALSA-2022:0892 Moderate: libarchive security update AlmaLinux Security Advisories · Oct 29, 2026
- WID-SEC-2023-1350 Splunk Splunk Enterprise: Mehrere Schwachstellen in Komponenten von Drittanbietern BSI CERT-Bund (WID) · Jul 1, 2026
- RHSA-2022:0892 Red Hat Security Advisory: libarchive security update Red Hat Security Advisories (RHSA) · Jun 26, 2026
- USN-5291-1 libarchive vulnerabilities Ubuntu Security Notices (USN) · Apr 22, 2026
- DLA-3202-1 libarchive - security update Debian Security (DSA / DLA) · Mar 9, 2026
- DLA-2987-1 libarchive - security update Debian Security (DSA / DLA) · Mar 9, 2026
- RLSA-2022:0892 Moderate: libarchive security update Rocky Linux Security Advisories · Feb 5, 2026
- SUSE-SU-2022:3935-1 Security update for libarchive SUSE / openSUSE Security Updates · Feb 4, 2026
- openSUSE-SU-2024:11894-1 bsdtar-3.6.0-1.1 on GA media SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2022:3936-1 Security update for libarchive SUSE / openSUSE Security Updates · Feb 4, 2026
- WID-SEC-2023-2229 Splunk Splunk Enterprise: Mehrere Schwachstellen BSI CERT-Bund (WID) · Nov 18, 2025
- WID-SEC-2022-1130 Red Hat Enterprise Linux: Mehrere Schwachstellen ermöglichen Umgehen von Sicherheitsvorkehrungen BSI CERT-Bund (WID) · Sep 5, 2024
- ALAS2-2023-2374 Moderate: libarchive security update (Amazon Linux 2) Amazon Linux Security Center (ALAS) · Dec 4, 2023
- ALAS2023-2023-071 Moderate: libarchive security update (Amazon Linux 2023) Amazon Linux Security Center (ALAS) · Feb 22, 2023
- ELSA-2022-0892 Moderate: libarchive security update (Oracle Linux 8) Oracle Linux Security Advisories (ELSA) · Mar 16, 2022
References
- https://github.com/libarchive/libarchive/issues/1566
- https://github.com/libarchive/libarchive/commit/b41daecb5ccb4c8e3b2c53fd6147109fc12c3043
- https://bugzilla.redhat.com/show_bug.cgi?id=2024237
- https://access.redhat.com/security/cve/CVE-2021-31566
- [debian-lts-announce] 20221122 [SECURITY] [DLA 3202-1] libarchive security update mailing-list