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.
Details
CVE ID
CVE-2021-31566
Published / updated
23 Aug 2022, 16:15 UTC · last modified 02 Nov 2026, 18:18 UTC
Severity
HIGH
CVSS score
7.8 · v3.1 ·
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H · Attack vector: LocalAffected vendor
Affected products
Debian Linux, Fedora, Libarchive, Codeready Linux Builder, Enterprise Linux, Enterprise Linux Eus, Enterprise Linux For Ibm Z Systems, Enterprise Linux For Ibm Z Systems Eus, Enterprise Linux For Power Little Endian, Enterprise Linux For Power Little Endian Eus, Enterprise Linux Server Aus, Enterprise Linux Server For Power Little Endian Update Services For Sap Solutions, Enterprise Linux Server Tus, Universal Forwarder
Affected versions
Debian Linux: 10.0
Fedora: 35
Libarchive: < 3.5.2
Codeready Linux Builder: n/a
Enterprise Linux: 8.0
Enterprise Linux Eus: 8.6
Enterprise Linux For Ibm Z Systems: 8.0
Enterprise Linux For Ibm Z Systems Eus: 8.6
Enterprise Linux For Power Little Endian: 8.0
Enterprise Linux For Power Little Endian Eus: 8.6
Enterprise Linux Server Aus: 8.6
Enterprise Linux Server For Power Little Endian Update Services For Sap Solutions: 8.6
+4 more configurations
Fixed versions
libarchive 3.5.2, universal forwarder 8.2.12, universal forwarder 9.0.6
Exploitation status
Not in CISA KEV (no confirmed exploitation recorded)
EPSS
0.39% probability of exploitation in the next 30 days · 35% percentile (03 Dec 2026)
Weakness
Remediation
Upgrade to a fixed release (libarchive 3.5.2, universal forwarder 8.2.12, universal forwarder 9.0.6) per the vendor advisory.
Source (CNA)
secalert@redhat.com
References (5)
| https://bugzilla.redhat.com/show_bug.cgi?id=2024237 | Issue TrackingPatchThird Party Advisory |
| https://github.com/libarchive/libarchive/commit/b41daecb5ccb4c8e3b2c53fd6147109fc12c3043 | PatchThird Party Advisory |
| https://github.com/libarchive/libarchive/issues/1566 | Issue TrackingPatchThird Party Advisory |
| https://access.redhat.com/security/cve/CVE-2021-31566 | Third Party Advisory |
| https://lists.debian.org/debian-lts-announce/2022/11/msg00030.html | Mailing ListThird Party Advisory |
AI plain-English explainer
A short explanation of who is affected, the impact and what to do, written only from this record's data.
AI isn't configured on this server (set AI_PROVIDER and an API key).
Learn about this vulnerability
CVSS vs EPSS vs CISA KEV: Understanding the DifferencesThree signals, three different questions. CVSS measures how bad a flaw could be, EPSS estimates how likely exploitation is, and KEV confirms attackers are already using it.Intermediate · 4-minute readWhat Is a CVE? A Beginner's Guide to VulnerabilitiesCVE IDs are the common names for publicly known security flaws. Learn who assigns them, what a CVE record contains, and what a CVE does and doesn't tell you.Beginner · 4-minute readHow to Check Whether Your Software Version Is Affected by a CVEA version match is a starting point, not a verdict. A step-by-step method to confirm exposure using advisories, version ranges and backport notes.Intermediate · 4-minute readTrack this software
Add the affected products to your watchlist and get an e-mail when new CVEs list your versions.
+ Debian Debian Linux+ Fedoraproject Fedora+ Libarchive Libarchive+ Redhat Codeready Linux Builder