Independent & educational platform Not a government body. No link or affiliation with any government organisation. Made for learning only. Test only systems you own or are authorised to test. Become a Partner or Sponsor → Full disclaimer

CVE-2021-31566

high

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 t…

Vendor / product: Libarchive — libarchive

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
7.8
7.8 (CVSS v3.1)
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Severity source: NVD CVSS v3.1 (nvd@nist.gov)
Timeline (UTC)
Published: 2022-08-23 16:15
Modified: 2026-11-02 18:18
NVD status: Modified
Last synced 1 day ago
Verified against the source API 2026-11-03 07:33 UTC
Exploitation
Not listed in CISA KEV (as of last catalog sync)
Absence from KEV does not mean a CVE is not exploited. Exploitation status: unknown (no authoritative evidence in our sources).

Affected products

libarchive / libarchive <3.5.2
fedoraproject / fedora 35
redhat / 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
redhat / codeready_linux_builder all versions
debian / debian_linux 10.0
splunk / universal_forwarder ≥8.2.0 <8.2.12, ≥9.0.0 <9.0.6, 9.1.0

Weakness classification (CWE)

Source: NVD / CISA. “NVD-CWE-Other” and “NVD-CWE-noinfo” mean NVD could not assign a specific weakness.

Mitigation & advisories

Patch / mitigation: https://bugzilla.redhat.com/show_bug.cgi?id=2024237
Patch / mitigation: https://github.com/libarchive/libarchive/commit/b41daecb5ccb4c8e3b2c53fd6147109fc12c3043
Patch / mitigation: https://github.com/libarchive/libarchive/issues/1566
Patch / mitigation: https://bugzilla.redhat.com/show_bug.cgi?id=2024237
Patch / mitigation: https://github.com/libarchive/libarchive/commit/b41daecb5ccb4c8e3b2c53fd6147109fc12c3043
Patch / mitigation: https://github.com/libarchive/libarchive/issues/1566

References

Data sources

NVD CVE API 2.0 — fetched 2026-11-03 07:33 UTC · record ↗

Learn the basics

Understanding CVEs and CVSS Scores

Related CVEs