cve.bz

CVE-2021-31566 Link Following

7.8 highEPSS 0.4%Fix available

High (7.8). EPSS 0.4% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

CVSS 3.1

7.8 high
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
EPSS
0.4% (unchanged from 0.4% a week ago; 0.4% 30 days ago) estimated probability of exploitation activity in the next 30 days; 34th percentile. Scored 2026-11-21. A forecast for this CVE across the internet, not for your own systems.
CWE
CWE-59 Improper Link Resolution Before File Access (Link Following)
OWASP Top 10
A01:2025 Broken Access Control
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2021-31566 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2021-31566?via=ask-ai-copy and https://cve.bz/cve/CVE-2021-31566?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2021-31566 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
libarchive:libarchivebefore 3.5.2
fedoraproject:fedora35
redhat:enterprise_linux8.0
redhat:enterprise_linux_eus8.6
redhat:enterprise_linux_for_ibm_z_systems8.0
redhat:enterprise_linux_for_ibm_z_systems_eus8.6
redhat:enterprise_linux_for_power_little_endian8.0
redhat:enterprise_linux_for_power_little_endian_eus8.6
redhat:enterprise_linux_server_aus8.6
redhat:enterprise_linux_server_for_power_little_endian_update_services_for_sap_solutions8.6
redhat:enterprise_linux_server_tus8.6
debian:debian_linux10.0
splunk:universal_forwarderfrom 8.2.0 before 8.2.12
splunk:universal_forwarderfrom 9.0.0 before 9.0.6
splunk:universal_forwarder9.1.0

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian9libarchive3.2.2-2+deb9u3DLA-2987-1
Debian10libarchive3.3.3-4+deb10u2DLA-3202-1
Debian12, 13, 14libarchive3.5.2-1DEBIAN-CVE-2021-31566
Ubuntu20.04:LTSlibarchive3.4.0-2ubuntu1.1UBUNTU-CVE-2021-31566 USN-5291-1
UbuntuPro:14.04:LTS, Pro:16.04:LTS, Pro:18.04:LTSlibarchiveno fix listedUBUNTU-CVE-2021-31566
Red Hatenterprise_linux:8::baseosbsdtar, libarchive, bsdcat-debuginfo and 4 more0:3.3.3-3.el8_5RHSA-2022:0892
Red Hatenterprise_linux:8::crbbsdcat-debuginfo, bsdtar-debuginfo, libarchive-devel and 3 more0:3.3.3-3.el8_5RHSA-2022:0892
SUSELinux Enterprise Micro 5.3, Linux Enterprise Module for Basesystem 15 SP4, Linux Enterprise Module for Development Tools 15 SP4libarchive3.5.1-150400.3.9.1SUSE-SU-2022:3936-1
SUSELinux Enterprise Module for Basesystem 15 SP3, Linux Enterprise Module for Development Tools 15 SP3libarchive3.4.2-150200.4.12.1SUSE-SU-2022:3935-1
openSUSELeap 15.3libarchive3.4.2-150200.4.12.1SUSE-SU-2022:3935-1
openSUSELeap 15.4libarchive3.5.1-150400.3.9.1SUSE-SU-2022:3936-1
openSUSETumbleweedbsdtar3.6.0-1.1openSUSE-SU-2024:11894-1
AlmaLinux8bsdtar, libarchive, libarchive-devel3.3.3-3.el8_5ALSA-2022:0892
Rocky Linux8libarchive0:3.3.3-3.el8_5RLSA-2022:0892
Alpinev3.13, v3.14libarchive3.5.3-r0ALPINE-CVE-2021-31566

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; AlmaLinux's OSV database, MIT; Rocky Linux's errata, BSD-3-Clause; the Alpine secdb, CC BY-SA 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE · Alpine.

Red Hat

Red Hat rates this Moderate.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 8libarchive-0:3.3.3-3.el8_5Fixed 2022-03-15RHSA-2022:0892
Red Hat Enterprise Linux 6libarchiveOut of support scope
Red Hat Enterprise Linux 7libarchiveOut of support scope
Red Hat Enterprise Linux 9libarchiveNot affected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2021-31566.

Attack patterns (CAPEC)

  • CAPEC-17 Using Malicious Files Likelihood: High · Severity: Very High
  • CAPEC-35 Leverage Executable Code in Non-Executable Files Likelihood: High · Severity: Very High
  • CAPEC-76 Manipulating Web Input to File System Calls Likelihood: High · Severity: Very High
  • CAPEC-132 Symlink Attack Likelihood: Low · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON