CVE-2021-31566

HIGH

Libarchive < 3.5.2 - Symlink Following

Title source: rule
STIX 2.1

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.

References (5)

Core 5

Scores

CVSS v3 7.8
EPSS 0.0004
EPSS Percentile 11.3%
Attack Vector LOCAL
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

Details

CWE
CWE-59
Status published
Products (15)
debian/debian_linux 10.0
fedoraproject/fedora 35
libarchive/libarchive < 3.5.2
redhat/codeready_linux_builder
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
... and 5 more
Published Aug 23, 2022
Tracked Since Feb 18, 2026