Vulnerability record · CVE-2021-31566 · published 23 August 2022
CVE-2021-31566: Libarchive link following vulnerability
Libarchive · Libarchive
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.
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.
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Affected products
14 vulnerable configurations from NVD's CPE data, grouped by vendor and product.
References
| Link | Tags |
|---|---|
| https://access.redhat.com/security/cve/CVE-2021-31566 | Third Party Advisory |
| https://bugzilla.redhat.com/show_bug.cgi?id=2024237 | Issue TrackingPatchThird Party Advisory |
| https://github.com/libarchive/libarchive/commit/b41daecb5ccb4c8e3b2c53fd6147109fc12c3043 | PatchThird Party Advisory |
| https://github.com/libarchive/libarchive/issues/1566 | Issue TrackingPatchThird Party Advisory |
| https://lists.debian.org/debian-lts-announce/2022/11/msg00030.html | Mailing ListThird Party Advisory |
| https://access.redhat.com/security/cve/CVE-2021-31566 | Third Party Advisory |
| https://bugzilla.redhat.com/show_bug.cgi?id=2024237 | Issue TrackingPatchThird Party Advisory |
| https://github.com/libarchive/libarchive/commit/b41daecb5ccb4c8e3b2c53fd6147109fc12c3043 | PatchThird Party Advisory |
| https://github.com/libarchive/libarchive/issues/1566 | Issue TrackingPatchThird Party Advisory |
| https://lists.debian.org/debian-lts-announce/2022/11/msg00030.html | Mailing ListThird Party Advisory |
Track CVE-2021-31566 inside VULONE
Watch it alongside the ransomware crews, C2 infrastructure and forum chatter that reference it, query it through the API and pull it into your SIEM over TAXII.
Related vulnerabilities
Same products first, then exploited flaws of the same weakness class.
Source: NIST National Vulnerability Database (record CVE-2021-31566), CISA KEV, FIRST EPSS (scores of 2026-09-28). This page is refreshed as NVD updates the record.