What’s Vulnerable › Vulnerabilities
CVE-2021-23177
- Severity: high (CVSS 7.8 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.4% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2022-08-23 · updated 2026-06-17
- Weakness: CWE-59
Description
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.
Affected products
- Debian Linux: 10.0
- Fedoraproject Fedora: 35
- libarchive: before 3.5.2 — fixed in 3.5.2
- RedHat Codeready Linux Builder: all versions
- Red Hat Enterprise Linux: 8.0
- RedHat Enterprise Linux Eus: 8.6
- RedHat Enterprise Linux For Ibm Z Systems: 8.0
- RedHat Enterprise Linux For Ibm Z Systems Eus: 8.6
- RedHat Enterprise Linux For Power Little Endian: 8.0
- RedHat Enterprise Linux For Power Little Endian Eus: 8.6
- RedHat Enterprise Linux Server Aus: 8.6
- RedHat Enterprise Linux Server For Power Little Endian Update Services For Sap Solutions: 8.6
- RedHat Enterprise Linux Server Tus: 8.6
How to fix
Upgrade to a fixed version: libarchive 3.5.2. Check the vendor advisory for mitigations.
References
- https://access.redhat.com/security/cve/CVE-2021-23177
- https://bugzilla.redhat.com/show_bug.cgi?id=2024245
- https://github.com/libarchive/libarchive/commit/fba4f123cc456d2b2538f811bb831483bf336bad
- https://github.com/libarchive/libarchive/issues/1565
- https://lists.debian.org/debian-lts-announce/2022/11/msg00030.html
- https://access.redhat.com/security/cve/CVE-2021-23177
- https://bugzilla.redhat.com/show_bug.cgi?id=2024245
- https://github.com/libarchive/libarchive/commit/fba4f123cc456d2b2538f811bb831483bf336bad
- https://github.com/libarchive/libarchive/issues/1565
- https://lists.debian.org/debian-lts-announce/2022/11/msg00030.html
Get alerted when CVE-2021-23177 or the next vulnerability affects your stack