High severity7.8NVD Advisory· Published Aug 23, 2022· Updated Jun 17, 2026
CVE-2021-31566
CVE-2021-31566
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.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Affected products
27cpe:2.3:a:libarchive:libarchive:*:*:*:*:*:*:*:*+ 1 more
- cpe:2.3:a:libarchive:libarchive:*:*:*:*:*:*:*:*range: <3.5.2
- (no CPE)
- cpe:2.3:a:redhat:codeready_linux_builder:-:*:*:*:*:*:*:*
cpe:2.3:a:splunk:universal_forwarder:*:*:*:*:*:*:*:*+ 1 more
- cpe:2.3:a:splunk:universal_forwarder:*:*:*:*:*:*:*:*range: >=8.2.0,<8.2.12
- cpe:2.3:a:splunk:universal_forwarder:9.1.0:*:*:*:*:*:*:*
- cpe:2.3:o:fedoraproject:fedora:35:*:*:*:*:*:*:*
- cpe:2.3:o:redhat:enterprise_linux:8.0:*:*:*:*:*:*:*
- cpe:2.3:o:redhat:enterprise_linux_eus:8.6:*:*:*:*:*:*:*
- cpe:2.3:o:redhat:enterprise_linux_for_ibm_z_systems:8.0:*:*:*:*:*:*:*
- cpe:2.3:o:redhat:enterprise_linux_for_ibm_z_systems_eus:8.6:*:*:*:*:*:*:*
- cpe:2.3:o:redhat:enterprise_linux_for_power_little_endian:8.0:*:*:*:*:*:*:*
- cpe:2.3:o:redhat:enterprise_linux_for_power_little_endian_eus:8.6:*:*:*:*:*:*:*
- cpe:2.3:o:redhat:enterprise_linux_server_aus:8.6:*:*:*:*:*:*:*
- cpe:2.3:o:redhat:enterprise_linux_server_for_power_little_endian_update_services_for_sap_solutions:8.6:*:*:*:*:*:*:*
- cpe:2.3:o:redhat:enterprise_linux_server_tus:8.6:*:*:*:*:*:*:*
- osv-coords11 versionspkg:rpm/almalinux/bsdtarpkg:rpm/almalinux/libarchivepkg:rpm/almalinux/libarchive-develpkg:rpm/opensuse/bsdtar&distro=openSUSE%20Tumbleweedpkg:rpm/opensuse/libarchive&distro=openSUSE%20Leap%2015.3pkg:rpm/opensuse/libarchive&distro=openSUSE%20Leap%2015.4pkg:rpm/suse/libarchive&distro=SUSE%20Linux%20Enterprise%20Micro%205.3pkg:rpm/suse/libarchive&distro=SUSE%20Linux%20Enterprise%20Module%20for%20Basesystem%2015%20SP3pkg:rpm/suse/libarchive&distro=SUSE%20Linux%20Enterprise%20Module%20for%20Basesystem%2015%20SP4pkg:rpm/suse/libarchive&distro=SUSE%20Linux%20Enterprise%20Module%20for%20Development%20Tools%2015%20SP3pkg:rpm/suse/libarchive&distro=SUSE%20Linux%20Enterprise%20Module%20for%20Development%20Tools%2015%20SP4
< 3.3.3-3.el8_5+ 10 more
- (no CPE)range: < 3.3.3-3.el8_5
- (no CPE)range: < 3.3.3-3.el8_5
- (no CPE)range: < 3.3.3-3.el8_5
- (no CPE)range: < 3.6.0-1.1
- (no CPE)range: < 3.4.2-150200.4.12.1
- (no CPE)range: < 3.5.1-150400.3.9.1
- (no CPE)range: < 3.5.1-150400.3.9.1
- (no CPE)range: < 3.4.2-150200.4.12.1
- (no CPE)range: < 3.5.1-150400.3.9.1
- (no CPE)range: < 3.4.2-150200.4.12.1
- (no CPE)range: < 3.5.1-150400.3.9.1
Patches
Vulnerability mechanics
References
5- bugzilla.redhat.com/show_bug.cginvdIssue TrackingPatchThird Party Advisory
- github.com/libarchive/libarchive/commit/b41daecb5ccb4c8e3b2c53fd6147109fc12c3043nvdPatchThird Party Advisory
- github.com/libarchive/libarchive/issues/1566nvdIssue TrackingPatchThird Party Advisory
- access.redhat.com/security/cve/CVE-2021-31566nvdThird Party Advisory
- lists.debian.org/debian-lts-announce/2022/11/msg00030.htmlnvdMailing ListThird Party Advisory
News mentions
0No linked articles in our index yet.