High severity · published Aug 23, 2022
CVE-2021-31566
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
7.8
CVSS
0.4%
EPSS
No
On KEV
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.
CVSS vector
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Attack vector
Local
Complexity
Low
Privileges
None
User interaction
Required
Confidentiality
High
Integrity
High
Availability
High
Scope
Unchanged
Exploitation
Is it being used?
Exploit prediction (EPSS)0.4% · higher than 33% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
CL
Codeready Linux Builder · Redhat
All versions, or not specified · source: NVD
DL
Debian Linux · Debian
10.0 · source: NVD
EL
Enterprise Linux · Redhat
8.0 · source: NVD
EL
Enterprise Linux Eus · Redhat
8.6 · source: NVD
EL
Enterprise Linux For Ibm Z Systems · Redhat
8.0 · source: NVD
EL
Enterprise Linux For Ibm Z Systems Eus · Redhat
8.6 · source: NVD
EL
Enterprise Linux For Power Little Endian · Redhat
8.0 · source: NVD
EL
Enterprise Linux For Power Little Endian Eus · Redhat
8.6 · source: NVD
EL
Enterprise Linux Server Aus · Redhat
8.6 · source: NVD
EL
EL
Enterprise Linux Server Tus · Redhat
8.6 · source: NVD
FE
Fedora · Fedoraproject
35 · source: NVD
References
NVD
https://nvd.nist.gov/vuln/detail/CVE-2021-31566
CVE.org
https://www.cve.org/CVERecord?id=CVE-2021-31566
Third Party Advisory
https://access.redhat.com/security/cve/CVE-2021-31566
Issue Tracking
https://bugzilla.redhat.com/show_bug.cgi?id=2024237
Patch
https://github.com/libarchive/libarchive/commit/b41daecb5ccb4c8e3b2c53fd6147109fc12c3043
Issue Tracking
https://github.com/libarchive/libarchive/issues/1566
Mailing List
https://lists.debian.org/debian-lts-announce/2022/11/msg00030.html
More from Debian Linux
10.0
CVE-2025-32433
Erlang/OTP SSH Vulnerable to Pre-Authentication RCE
10.0
CVE-2025-24201
Apple Multiple Products WebKit Out-of-Bounds Write Vulnerability
10.0
CVE-2021-44228
Apache Log4j2 JNDI features do not protect against attacker controlled LDAP and other JNDI related endpoints
10.0
CVE-2015-3306
ProFTPD Improper Access Control Vulnerability
9.8
CVE-2026-24061
GNU InetUtils Argument Injection Vulnerability
