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

- Severity: High 7.8 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.39%, higher than 35% of CVEs (2026-12-01)
- Published: 2022-08-23T00:00:00.000Z
- Modified: 2026-11-02T18:18:33.520Z
- Weaknesses: CWE-59
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: redhat

## 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.

(As written by CVE List.)

## Affected

- libarchive: Fixed in libarchive 3.5.2
- libarchive libarchive: before 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: no versions given
- debian debian_linux: 10.0
- splunk universal_forwarder: from 8.2.0 before 8.2.12; from 9.0.0 before 9.0.6; 9.1.0

## References

- <https://github.com/libarchive/libarchive/issues/1566> (issue-tracking, patch, third-party-advisory)
- <https://github.com/libarchive/libarchive/commit/b41daecb5ccb4c8e3b2c53fd6147109fc12c3043> (patch, third-party-advisory)
- <https://bugzilla.redhat.com/show_bug.cgi?id=2024237> (issue-tracking, patch, third-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-list, third-party-advisory)

## Sources

- CVE List: [CVE-2021-31566](https://www.cve.org/CVERecord?id=CVE-2021-31566), CVE Terms of Use, modified 2026-11-02
- NVD: [CVE-2021-31566](https://nvd.nist.gov/vuln/detail/CVE-2021-31566), Public domain, modified 2026-11-02

---

Page: https://cve.day/CVE-2021-31566 · Whole record: https://cve.day/CVE-2021-31566.json · Rebuilt by cve.day 2026-11-25T22:58:07.769Z
