Vulnerability · Published Aug 23, 2022 · Assigned by redhat

CVE-2021-31566

High 7.8

In plain English

A high-severity security flaw in libarchive. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.4% (higher than 33% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS NVD)7.8High
Exploit odds (30 days)0.4%top 66.7% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

Official 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 packages & fixed versions

EcosystemPackageFixed inAdvisory
AlmaLinux:8bsdtar3.3.3-3.el8_5ALSA-2022:0892
AlmaLinux:8libarchive3.3.3-3.el8_5ALSA-2022:0892
AlmaLinux:8libarchive-devel3.3.3-3.el8_5ALSA-2022:0892
Debian:12libarchive3.5.2-1DEBIAN-CVE-2021-31566
Debian:13libarchive3.5.2-1DEBIAN-CVE-2021-31566
Debian:14libarchive3.5.2-1DEBIAN-CVE-2021-31566
Rocky Linux:8libarchive0:3.3.3-3.el8_5RLSA-2022:0892

Affected products (as reported)

VendorProductVersions
n/a libarchive Fixed in libarchive 3.5.2

Weakness: CWE-59

References