{"id":"CVE-2021-31566","aliases":["CVE-2021-31566"],"related":[],"kind":"vulnerability","state":"published","title":"An improper link resolution flaw can occur while extracting an archive leading to changing modes, times, access control lists, and flags of…","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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":"cvelist"},{"lang":"es","text":"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.","source":"nvd"}],"published":"2022-08-23T00:00:00.000Z","modified":"2026-11-02T18:18:33.520Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},"severities":[{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"}],"cwes":["CWE-59"],"affected":[{"ranges":[{"version":"Fixed in libarchive 3.5.2","status":"affected"}],"product":"libarchive","source":"cvelist"},{"ranges":[{"status":"affected","fixed":"3.5.2"}],"vendor":"libarchive","product":"libarchive","cpe":"cpe:2.3:a:libarchive:libarchive:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","version":"35"}],"vendor":"fedoraproject","product":"fedora","cpe":"cpe:2.3:o:fedoraproject:fedora:35:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","version":"8.0"}],"vendor":"redhat","product":"enterprise_linux","cpe":"cpe:2.3:o:redhat:enterprise_linux:8.0:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","version":"8.6"}],"vendor":"redhat","product":"enterprise_linux_eus","cpe":"cpe:2.3:o:redhat:enterprise_linux_eus:8.6:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","version":"8.0"}],"vendor":"redhat","product":"enterprise_linux_for_ibm_z_systems","cpe":"cpe:2.3:o:redhat:enterprise_linux_for_ibm_z_systems:8.0:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","version":"8.6"}],"vendor":"redhat","product":"enterprise_linux_for_ibm_z_systems_eus","cpe":"cpe:2.3:o:redhat:enterprise_linux_for_ibm_z_systems_eus:8.6:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","version":"8.0"}],"vendor":"redhat","product":"enterprise_linux_for_power_little_endian","cpe":"cpe:2.3:o:redhat:enterprise_linux_for_power_little_endian:8.0:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","version":"8.6"}],"vendor":"redhat","product":"enterprise_linux_for_power_little_endian_eus","cpe":"cpe:2.3:o:redhat:enterprise_linux_for_power_little_endian_eus:8.6:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","version":"8.6"}],"vendor":"redhat","product":"enterprise_linux_server_aus","cpe":"cpe:2.3:o:redhat:enterprise_linux_server_aus:8.6:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","version":"8.6"}],"vendor":"redhat","product":"enterprise_linux_server_for_power_little_endian_update_services_for_sap_solutions","cpe":"cpe:2.3:o:redhat:enterprise_linux_server_for_power_little_endian_update_services_for_sap_solutions:8.6:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","version":"8.6"}],"vendor":"redhat","product":"enterprise_linux_server_tus","cpe":"cpe:2.3:o:redhat:enterprise_linux_server_tus:8.6:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[],"vendor":"redhat","product":"codeready_linux_builder","cpe":"cpe:2.3:a:redhat:codeready_linux_builder:-:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","version":"10.0"}],"vendor":"debian","product":"debian_linux","cpe":"cpe:2.3:o:debian:debian_linux:10.0:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","introduced":"8.2.0","fixed":"8.2.12"},{"status":"affected","introduced":"9.0.0","fixed":"9.0.6"},{"status":"affected","version":"9.1.0"}],"vendor":"splunk","product":"universal_forwarder","cpe":"cpe:2.3:a:splunk:universal_forwarder:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/libarchive/libarchive/issues/1566","tags":["issue-tracking","patch","third-party-advisory","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://github.com/libarchive/libarchive/commit/b41daecb5ccb4c8e3b2c53fd6147109fc12c3043","tags":["patch","third-party-advisory","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2024237","tags":["issue-tracking","patch","third-party-advisory","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://access.redhat.com/security/cve/CVE-2021-31566","tags":["third-party-advisory","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://lists.debian.org/debian-lts-announce/2022/11/msg00030.html","tags":["mailing-list","third-party-advisory","x-transferred"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"redhat","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-11-02T18:01:56.778Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2021-31566","url":"https://www.cve.org/CVERecord?id=CVE-2021-31566","licence":"CVE Terms of Use","modified":"2026-11-02T18:02:14.581Z"},{"source":"nvd","name":"NVD","id":"CVE-2021-31566","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-31566","licence":"Public domain","modified":"2026-11-02T18:18:33.520Z"}],"updatedAt":"2026-11-25T22:58:07.769Z","epss":{"score":0.00392,"percentile":0.35403,"date":"2026-12-01T12:00:22.000Z"}}