CVE-2021-31566 in Debian Linux and 13 more products
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...
Affects 14 products from 5 vendors. Facts below cite their sources.
Requires local access, low complexity, no authentication required, requires user interaction, impact contained to the vulnerable component, full confidentiality impact, full integrity impact, full availability impact.
Affected products and versions
| Vendor | Product | Affected versions |
|---|---|---|
| Debian | Debian Linux | 10.0 |
| Fedoraproject | Fedora | 35 |
| Libarchive | Libarchive | < 3.5.2 |
| Redhat | Enterprise Linux | 8.0 |
| Redhat | Enterprise Linux Server Aus | 8.6 |
| Redhat | Enterprise Linux For Ibm Z Systems Eus | 8.6 |
| Redhat | Enterprise Linux Server Tus | 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 For Power Little Endian Update Services For Sap Solutions | 8.6 |
| Redhat | Codeready Linux Builder | No version listed by the source |
| Redhat | Enterprise Linux Eus | 8.6 |
| Redhat | Enterprise Linux For Ibm Z Systems | 8.0 |
| Splunk | Universal Forwarder | 9.1.0 ≥ 8.2.0, < 8.2.12 ≥ 9.0.0, < 9.0.6 |
A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.
Fix and vendor advisory
Exploitation
| CISA known-exploited | Not in the CISA KEV catalog |
|---|---|
| Public exploit | Not confirmed |
Official 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.
Source: NIST NVD / MITRE CVE.
Record details
| CVE ID | CVE-2021-31566 |
|---|---|
| BreachSpider ID | BS-2022-GLOBAL-066342-H |
| CVSS vector | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
| Published | 2022-08-23 |
| Last modified | 2026-11-02 |
| Weakness (CWE) | |
| Source | NVD |
Weakness definitions
CWE-59: Improper Link Resolution Before File Access
Software follows symbolic links without verifying the target, allowing read, write, or delete of unintended files.
Related attack patterns (CAPEC)
CAPEC-35 Leverage Executable Code in Non-Executable Files via CWE-59
CAPEC-76 Manipulating Web Input to File System Calls via CWE-59
CAPEC-132 Symlink Attack via CWE-59
CAPEC-17 Using Malicious Files via CWE-59
Mapping is CWE to CAPEC per MITRE CAPEC 3.9.
Analysis AI-written, not human-reviewed
A vulnerability in archive extraction allows an attacker to change file modes, times, access control lists, and flags outside of the archive, potentially leading to privilege escalation.
An attacker can craft a malicious archive that, when extracted by a victim, can modify file attributes outside the intended extraction directory, leading to unauthorized access or privilege escalation.
Questions
What is CVE-2021-31566?
A vulnerability in archive extraction allows an attacker to change file modes, times, access control lists, and flags outside of the archive, potentially leading to privilege escalation.
What is the CVSS score for CVE-2021-31566?
CVE-2021-31566 has CVSS 7.8 (High). Vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H. EPSS: 0.4%.
Is CVE-2021-31566 actively exploited?
No confirmed active exploitation of CVE-2021-31566 as of 2026-11-03.
How do I remediate CVE-2021-31566?
Priority: HIGH. Advisory: https://access.redhat.com/security/cve/CVE-2021-31566
What systems are affected by CVE-2021-31566?
CVE-2021-31566 affects Debian Debian Linux; Fedoraproject Fedora; Libarchive Libarchive; Redhat Enterprise Linux, Enterprise Linux Server Aus, Enterprise Linux For Ibm Z Systems Eus, Enterprise Linux Server Tus, Enterprise Linux For Power Little Endian, Enterprise Linux For Power Little Endian Eus, Enterprise Linux Server For Power Little Endian Update Services For Sap Solutions (plus 4 more products across 1 more vendor).
For developers and AI agents
Run this check from your own code or agent
REST API
curl -s https://breachspider.com/api/v1/assets/correlate-cves \
-H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
-H "Content-Type: application/json" \
-d '{"assets":[{"asset_id":"dev-1","vendor":"Debian","product":"Debian Linux","version":"1.0"}]}'
MCP for AI agents
# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp
Free trial: 14 days, 750 device checks, no card.
Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-11-02.