
CVE catalog
CVE-2021-31566
libarchive: CVE-2021-31566
- Severity
- High · CVSS 7.1
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:H - Published
- Source
- [NVD] · [CVE record]
- EPSS
- 0.39% · Oct 25, 2026
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.
Vulnerable and fixed packages
Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.
| Distribution | Package | Release | Version | Status |
|---|---|---|---|---|
| Debian | libarchive | sid | 3.8.10-2 | fixed |
| Debian | libarchive | forky | 3.8.9-1 | fixed |
| Debian | libarchive | trixie | 3.7.4-4+deb13u1 | fixed |
| Debian | libarchive | bookworm | 3.6.2-1+deb12u4 | fixed |
| Debian | libarchive | bookworm-security | 3.6.2-1+deb12u5 | fixed |
| Alpine | libarchive | 3.13 | 3.5.3-r0 | fixed |
| Alpine | libarchive | 3.14 | 3.5.3-r0 | fixed |
| Ubuntu | libarchive | pro | 3.2.2-3.1 | vulnerable |
| Ubuntu | libarchive | pro | 3.2.2-3.1ubuntu0.1 | vulnerable |
| Ubuntu | libarchive | pro | 3.2.2-3.1ubuntu0.2 | vulnerable |
| Ubuntu | libarchive | pro | 3.2.2-3.1ubuntu0.3 | vulnerable |
| Ubuntu | libarchive | pro | 3.2.2-3.1ubuntu0.4 | vulnerable |
| Ubuntu | libarchive | pro | 3.2.2-3.1ubuntu0.5 | vulnerable |
| Ubuntu | libarchive | pro | 3.2.2-3.1ubuntu0.6 | vulnerable |
| Ubuntu | libarchive | pro | 3.2.2-3.1ubuntu0.7 | vulnerable |
| Ubuntu | libarchive | pro | 3.2.2-3.1ubuntu0.7+esm1 | vulnerable |
| Ubuntu | libarchive | pro | 3.2.2-3.1ubuntu0.7+esm2 | vulnerable |
| Ubuntu | libarchive | pro | 3.2.2-3.1ubuntu0.7+esm3 | vulnerable |
| Ubuntu | libarchive | 20.04 | 3.4.0-1 | vulnerable |
| Ubuntu | libarchive | 20.04 | 3.4.0-1build1 | vulnerable |
| Ubuntu | libarchive | 20.04 | 3.4.0-1ubuntu2 | vulnerable |
| Ubuntu | libarchive | 20.04 | 3.4.0-2ubuntu1 | vulnerable |
| Ubuntu | libarchive | 20.04 | 3.4.0-2ubuntu1.1 | fixed |
| Suse | libarchive | linux enterprise module for basesystem 15 sp3 | 3.4.2-150200.4.12.1 | fixed |
| Suse | libarchive | linux enterprise module for development tools 15 sp3 | 3.4.2-150200.4.12.1 | fixed |
| Opensuse | libarchive | leap 15.3 | 3.4.2-150200.4.12.1 | fixed |
| Opensuse | bsdtar | tumbleweed | 3.6.0-1.1 | fixed |
| Suse | libarchive | linux enterprise micro 5.3 | 3.5.1-150400.3.9.1 | fixed |
| Suse | libarchive | linux enterprise module for basesystem 15 sp4 | 3.5.1-150400.3.9.1 | fixed |
| Suse | libarchive | linux enterprise module for development tools 15 sp4 | 3.5.1-150400.3.9.1 | fixed |
| Opensuse | libarchive | leap 15.4 | 3.5.1-150400.3.9.1 | fixed |
Fixed-version evidence
| Distribution | Package | Type | Release | Fixed version | Urgency | Origin | Bugs |
|---|---|---|---|---|---|---|---|
| Debian | libarchive | source | sid | 3.5.2-1 | not yet assigned | Not reported | [1001990] |
| Debian | libarchive | source | forky | 3.5.2-1 | not yet assigned | Not reported | [1001990] |
| Debian | libarchive | source | trixie | 3.5.2-1 | not yet assigned | Not reported | [1001990] |
| Debian | libarchive | source | bookworm | 3.5.2-1 | not yet assigned | Not reported | [1001990] |
| Alpine | libarchive | apk | 3.13 | 3.5.3-r0 | Not reported | ALPINE-CVE-2021-31566 | Not reported |
| Alpine | libarchive | apk | 3.14 | 3.5.3-r0 | Not reported | ALPINE-CVE-2021-31566 | Not reported |
| Ubuntu | libarchive | deb | 20.04 | 3.4.0-2ubuntu1.1 | Not reported | UBUNTU-CVE-2021-31566 | Not reported |
| Suse | libarchive | rpm | linux enterprise module for basesystem 15 sp3 | 3.4.2-150200.4.12.1 | Not reported | SUSE-SU-2022:3935-1 | Not reported |
| Suse | libarchive | rpm | linux enterprise module for development tools 15 sp3 | 3.4.2-150200.4.12.1 | Not reported | SUSE-SU-2022:3935-1 | Not reported |
| Opensuse | libarchive | rpm | leap 15.3 | 3.4.2-150200.4.12.1 | Not reported | SUSE-SU-2022:3935-1 | Not reported |
| Opensuse | bsdtar | rpm | tumbleweed | 3.6.0-1.1 | Not reported | OPENSUSE-SU-2024:11894-1 | Not reported |
| Suse | libarchive | rpm | linux enterprise micro 5.3 | 3.5.1-150400.3.9.1 | Not reported | SUSE-SU-2022:3936-1 | Not reported |
| Suse | libarchive | rpm | linux enterprise module for basesystem 15 sp4 | 3.5.1-150400.3.9.1 | Not reported | SUSE-SU-2022:3936-1 | Not reported |
| Suse | libarchive | rpm | linux enterprise module for development tools 15 sp4 | 3.5.1-150400.3.9.1 | Not reported | SUSE-SU-2022:3936-1 | Not reported |
| Opensuse | libarchive | rpm | leap 15.4 | 3.5.1-150400.3.9.1 | Not reported | SUSE-SU-2022:3936-1 | Not reported |
OpenFactory catalog packages
[Debian 12 (Bookworm)]
- [libarchive13]Fixed
Source package: [libarchive]
Details (4)
3.6.2-1+deb12u4· amd64 · bookwormFixed · Fixed:
3.5.2-1dsa · libarchive · debian · bookworm; dsa · libarchive · debian · 12
3.6.2-1+deb12u4· arm64 · bookwormFixed · Fixed:
3.5.2-1dsa · libarchive · debian · bookworm; dsa · libarchive · debian · 12
3.6.2-1+deb12u5· amd64 · bookworm-securityFixed · Fixed:
3.5.2-1dsa · libarchive · debian · bookworm; dsa · libarchive · debian · 12
3.6.2-1+deb12u5· arm64 · bookworm-securityFixed · Fixed:
3.5.2-1dsa · libarchive · debian · bookworm; dsa · libarchive · debian · 12
- [libarchive-dev]Fixed
Source package: [libarchive]
Details (4)
3.6.2-1+deb12u4· amd64 · bookwormFixed · Fixed:
3.5.2-1dsa · libarchive · debian · bookworm; dsa · libarchive · debian · 12
3.6.2-1+deb12u4· arm64 · bookwormFixed · Fixed:
3.5.2-1dsa · libarchive · debian · bookworm; dsa · libarchive · debian · 12
3.6.2-1+deb12u5· amd64 · bookworm-securityFixed · Fixed:
3.5.2-1dsa · libarchive · debian · bookworm; dsa · libarchive · debian · 12
3.6.2-1+deb12u5· arm64 · bookworm-securityFixed · Fixed:
3.5.2-1dsa · libarchive · debian · bookworm; dsa · libarchive · debian · 12
- [libarchive-tools]Fixed
Source package: [libarchive]
Details (4)
3.6.2-1+deb12u4· amd64 · bookwormFixed · Fixed:
3.5.2-1dsa · libarchive · debian · bookworm; dsa · libarchive · debian · 12
3.6.2-1+deb12u4· arm64 · bookwormFixed · Fixed:
3.5.2-1dsa · libarchive · debian · bookworm; dsa · libarchive · debian · 12
3.6.2-1+deb12u5· amd64 · bookworm-securityFixed · Fixed:
3.5.2-1dsa · libarchive · debian · bookworm; dsa · libarchive · debian · 12
3.6.2-1+deb12u5· arm64 · bookworm-securityFixed · Fixed:
3.5.2-1dsa · libarchive · debian · bookworm; dsa · libarchive · debian · 12
[Debian 13 (Trixie)]
- [libarchive13t64]Fixed
Source package: [libarchive]
Details (2)
3.7.4-4+deb13u1· amd64 · trixieFixed · Fixed:
3.5.2-1dsa · libarchive · debian · 13
3.7.4-4+deb13u1· arm64 · trixieFixed · Fixed:
3.5.2-1dsa · libarchive · debian · 13
- [libarchive-dev]Fixed
Source package: [libarchive]
Details (2)
3.7.4-4+deb13u1· amd64 · trixieFixed · Fixed:
3.5.2-1dsa · libarchive · debian · 13
3.7.4-4+deb13u1· arm64 · trixieFixed · Fixed:
3.5.2-1dsa · libarchive · debian · 13
- [libarchive-tools]Fixed
Source package: [libarchive]
Details (2)
3.7.4-4+deb13u1· amd64 · trixieFixed · Fixed:
3.5.2-1dsa · libarchive · debian · 13
3.7.4-4+deb13u1· arm64 · trixieFixed · Fixed:
3.5.2-1dsa · libarchive · debian · 13
[openSUSE Tumbleweed]
- [bsdtar]Fixed
Source package: [libarchive]
Details (1)
3.8.7-1.4· x86_64 · tumbleweedFixed · Fixed:
3.6.0-1.1dsa · bsdtar · opensuse · tumbleweed
Observed:
References
- [https://access.redhat.com/errata/RHSA-2022:0892]
- [https://ftp.suse.com/pub/projects/security/csaf/rhsa-2022_0892.json]
- [https://osv.dev/vulnerability/ALPINE-CVE-2021-31566]
- [https://osv.dev/vulnerability/DEBIAN-CVE-2021-31566]
- [https://osv.dev/vulnerability/SUSE-SU-2022:3935-1]
- [https://osv.dev/vulnerability/SUSE-SU-2022:3936-1]
- [https://osv.dev/vulnerability/UBUNTU-CVE-2021-31566]
- [https://osv.dev/vulnerability/openSUSE-SU-2024:11894-1]
- [https://security-tracker.debian.org/tracker/CVE-2021-31566]
- [https://wid.cert-bund.de/.well-known/csaf/white/2023/wid-sec-w-2023-1350.json]
[CERT-Bund public advisories] · [Debian Security Tracker] · [FIRST EPSS] · [OSV Package Vulnerability Database] · [Red Hat security advisories and VEX] · [SUSE security advisories and VEX]