7.8high
An improper link resolution flaw can occur while extracting an archive leading to changing modes, times, access control lists, and flags of…
- Severity
- 7.8high CVSS:3.1 by NVD
- Exploit likelihood
- 0.39% (higher than 35% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- 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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| libarchive | Fixed in libarchive 3.5.2 | CVE List |
| libarchive libarchive | before 3.5.2 | NVD |
| fedoraproject fedora | 35 | NVD |
| redhat enterprise_linux | 8.0 | NVD |
| redhat enterprise_linux_eus | 8.6 | NVD |
| redhat enterprise_linux_for_ibm_z_systems | 8.0 | NVD |
| redhat enterprise_linux_for_ibm_z_systems_eus | 8.6 | NVD |
| redhat enterprise_linux_for_power_little_endian | 8.0 | NVD |
| redhat enterprise_linux_for_power_little_endian_eus | 8.6 | NVD |
| redhat enterprise_linux_server_aus | 8.6 | NVD |
| redhat enterprise_linux_server_for_power_little_endian_update_services_for_sap_solutions | 8.6 | NVD |
| redhat enterprise_linux_server_tus | 8.6 | NVD |
| redhat codeready_linux_builder | Not specified | NVD |
| debian debian_linux | 10.0 | NVD |
| splunk universal_forwarder | from 8.2.0 before 8.2.12, from 9.0.0 before 9.0.6, 9.1.0 | NVD |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.
What each source says
CVE List
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.
NVD (es)
Un fallo de resolución de enlaces inapropiado puede ocurrir mientras es extraído un archivo que conlleva a un cambio de modos, tiempos, listas de control de acceso y flags de un archivo fuera del archivo. Un atacante puede proporcionar un archivo malicioso a un usuario víctima, que desencadenaría este fallo cuando intente extraer el archivo. Un atacante local puede usar este defecto para conseguir más privilegios en un sistema.
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
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2021-31566 changed 2026-11-02 | CVE Terms of Use |
| NVD | CVE-2021-31566 changed 2026-11-02 | Public domain |