CVE-2021-23177
An improper link resolution flaw while extracting an archive can lead to changing the access control list (ACL) of the target of the link. 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 change the ACL of a file on the system and gain more privileges.
What to do
Fixed builds are available from AlmaLinux, Debian, Red Hat, Rocky Linux, Ubuntu: see the table below for the fixed version per release.
Ubuntu has not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 25.10 | libarchive | Not affected vulnerable_code_not_present | ||
| Ubuntu 24.04 | libarchive | Not affected vulnerable_code_not_present | ||
| Ubuntu 22.04 | libarchive | Not affected vulnerable_code_not_present | ||
| Ubuntu 20.04 | libarchive | Fixed | 3.4.0-2ubuntu1.1 | UBUNTU-CVE-2021-23177 |
| Ubuntu 18.04 | libarchive | Fix pending | UBUNTU-CVE-2021-23177 | |
| Ubuntu 16.04 | libarchive | Will not fix intrusive backport to bionic On Bionic and below, the changes are too intrusive and may introduce regressions. | UBUNTU-CVE-2021-23177 | |
| Ubuntu 14.04 | libarchive | Fix pending | UBUNTU-CVE-2021-23177 | |
| Debian 14 | libarchive | Fixed | 3.5.2-1 | DEBIAN-CVE-2021-23177 |
| Debian 13 | libarchive | Fixed | 3.5.2-1 | DEBIAN-CVE-2021-23177 |
| Debian 12 | libarchive | Fixed | 3.5.2-1 | DEBIAN-CVE-2021-23177 |
| Red Hat Enterprise Linux 9 | bsdtar | Not affected | ||
| Red Hat Enterprise Linux 9 | libarchive | Not affected | ||
| Red Hat Enterprise Linux 9 | libarchive-devel | Not affected | ||
| Red Hat Enterprise Linux 8 | bsdtar | Fixed | 0:3.3.3-3.el8_5 | RHSA-2022:0892 |
| Red Hat Enterprise Linux 8 | libarchive | Fixed | 0:3.3.3-3.el8_5 | RHSA-2022:0892 |
| Red Hat Enterprise Linux 8 | libarchive-devel | Fixed | 0:3.3.3-3.el8_5 | RHSA-2022:0892 |
| Red Hat Enterprise Linux 7 | bsdcpio | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | bsdtar | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | libarchive | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | libarchive-devel | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | libarchive | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | libarchive-devel | Will not fix Out of support scope | ||
| AlmaLinux 8 | bsdtar | Fixed | 3.3.3-3.el8_5 | ALSA-2022:0892 |
| AlmaLinux 8 | libarchive | Fixed | 3.3.3-3.el8_5 | ALSA-2022:0892 |
| AlmaLinux 8 | libarchive-devel | Fixed | 3.3.3-3.el8_5 | ALSA-2022:0892 |
| Rocky Linux 8 | libarchive | Fixed | 0:3.3.3-3.el8_5 | RLSA-2022:0892 |
What the vendor says
As published in the CVE record by redhat, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- libarchive: affected: Fixed in libarchive 3.5.2
References
- https://github.com/libarchive/libarchive/issues/1565
- https://github.com/libarchive/libarchive/commit/fba4f123cc456d2b2538f811bb831483bf336bad
- https://bugzilla.redhat.com/show_bug.cgi?id=2024245
- https://access.redhat.com/security/cve/CVE-2021-23177
- https://lists.debian.org/debian-lts-announce/2022/11/msg00030.html
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.