CVE-2021-31566
Reported by redhat · Published August 23, 2022
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| libarchive | conan.io | 3.5.2 |
| universal_forwarder | splunk | 9.0.6, 8.2.12 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| n/a | libarchive | Fixed in libarchive 3.5.2 |
| ConanCenter | libarchive | 0 |
| n/a | libarchive | 3.5.2 |
| amazon:2023 | libarchive-devel | 0 |
| amazon:2 | libarchive | 0 |
| amazon:2 | bsdtar | 0 |
| amazon:2023 | bsdtar | 0 |
| amazon:2023 | libarchive | 0 |
| alpine | libarchive | 0 |
| amazon:2023 | bsdcpio | 0 |
| amazon:2023 | bsdcat | 0 |
| amazon:2 | libarchive-devel | 0 |
| amazon:2 | bsdcpio | 0 |
Timeline
- Dec 24, 2021 CVE Published
- Aug 24, 2022 EPSS Score (30 in total, the first dated here)
- Sep 8, 2025 CVE Updated
- Mar 7, 2026 Distribution Patch (6 in total, the first dated here)
- Mar 7, 2026 Security Advisory (9 in total, the first dated here)
- Aug 2, 2026 Coalition ESS Score
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2021-31566
vulnetix vdb fixes CVE-2021-31566
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2021-31566/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart