ALPINE-CVE-2021-31566
Record from OSV · 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 | Alpine:v3.13 | 3.5.3-r0 |
| libarchive | Alpine:v3.14 | 3.5.3-r0 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Alpine:v3.13 | libarchive | 3.4.3-r0, 2.8.4-r0, 2.8.4-r1 |
| Alpine:v3.14 | libarchive | 0, 2.8.4-r0, 2.8.4-r1 |
Timeline
- Aug 23, 2022 CVE Published
- Jun 15, 2026 CVE Updated
- Aug 8, 2026 Distribution Patch
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln ALPINE-CVE-2021-31566
vulnetix vdb fixes ALPINE-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/ALPINE-CVE-2021-31566/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart