CVE-2021-31566
publishedlibarchive: symbolic links incorrectly followed when changing modes, times, ACL and flags of a file while extracting an archive
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| n/a | — | libarchiveFixed in libarchive 3.5.2 | Affected | Not stated | redhat |
| Amazon Linux | AL2 | Release evaluationALAS2-2023-2374 | Fixed | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluationALAS2023-2023-071 | Fixed | Not stated | Amazon Linux assessment |
| AlmaLinux | 8 | libarchive | Advisory build | 3.3.3-3.el8_5 | ALSA-2022:0892 |
| Alpine Linux | v3.13 | libarchive | Fixed | 3.5.3-r0 | Package fix record |
| Debian | buster | libarchive | Advisory build | 3.3.3-4+deb10u2 | DLA-3202-1 |
| Oracle Linux | 8 | libarchiveaarch64 | Advisory build | 0:3.3.3-3.el8_5 | ELSA-2022-0892 |
| Red Hat Enterprise Linux | RHEL-8 | libarchiveaarch64 | Advisory build | 3.3.3-3.el8_5 | RHSA-2022:0892 |
Show 95 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Ubuntu | focal | libarchive | Advisory build | 3.4.0-2ubuntu1.1 | USN-5291-1 |
| SUSE / openSUSE | SLE-15-SP3 | bsdtaraarch64 | Advisory build | 3.4.2-150200.4.12.1 | SUSE-SU-2022:3935-1 |
| Alpine Linux | v3.14 | libarchive | Fixed | 3.5.3-r0 | Package fix record |
| Debian | stretch | libarchive | Advisory build | 3.2.2-2+deb9u3 | DLA-2987-1 |
| Oracle Linux | 8 | libarchivex86_64 | Advisory build | 0:3.3.3-3.el8_5 | ELSA-2022-0892 |
| Red Hat Enterprise Linux | RHEL-8 | libarchivei686 | Advisory build | 3.3.3-3.el8_5 | RHSA-2022:0892 |
| Red Hat Enterprise Linux | RHEL-8 | libarchiveppc64le | Advisory build | 3.3.3-3.el8_5 | RHSA-2022:0892 |
| Red Hat Enterprise Linux | RHEL-8 | libarchives390x | Advisory build | 3.3.3-3.el8_5 | RHSA-2022:0892 |
| Red Hat Enterprise Linux | RHEL-8 | libarchivesrc | Advisory build | 3.3.3-3.el8_5 | RHSA-2022:0892 |
| Red Hat Enterprise Linux | RHEL-8 | libarchivex86_64 | Advisory build | 3.3.3-3.el8_5 | RHSA-2022:0892 |
| AlmaLinux | 8 | bsdtar | Advisory build | 3.3.3-3.el8_5 | ALSA-2022:0892 |
| AlmaLinux | 8 | libarchive-devel | Advisory build | 3.3.3-3.el8_5 | ALSA-2022:0892 |
| Oracle Linux | 8 | bsdtaraarch64 | Advisory build | 0:3.3.3-3.el8_5 | ELSA-2022-0892 |
| Oracle Linux | 8 | bsdtarx86_64 | Advisory build | 0:3.3.3-3.el8_5 | ELSA-2022-0892 |
| Oracle Linux | 8 | libarchive-develaarch64 | Advisory build | 0:3.3.3-3.el8_5 | ELSA-2022-0892 |
| Oracle Linux | 8 | libarchive-develx86_64 | Advisory build | 0:3.3.3-3.el8_5 | ELSA-2022-0892 |
| Red Hat Enterprise Linux | RHEL-8 | bsdcat-debuginfoaarch64 | Advisory build | 3.3.3-3.el8_5 | RHSA-2022:0892 |
| Red Hat Enterprise Linux | RHEL-8 | bsdcat-debuginfoi686 | Advisory build | 3.3.3-3.el8_5 | RHSA-2022:0892 |
| Red Hat Enterprise Linux | RHEL-8 | bsdcat-debuginfoppc64le | Advisory build | 3.3.3-3.el8_5 | RHSA-2022:0892 |
| Red Hat Enterprise Linux | RHEL-8 | bsdcat-debuginfos390x | Advisory build | 3.3.3-3.el8_5 | RHSA-2022:0892 |
| Red Hat Enterprise Linux | RHEL-8 | bsdcat-debuginfox86_64 | Advisory build | 3.3.3-3.el8_5 | RHSA-2022:0892 |
| Red Hat Enterprise Linux | RHEL-8 | bsdcpio-debuginfoaarch64 | Advisory build | 3.3.3-3.el8_5 | RHSA-2022:0892 |
| Red Hat Enterprise Linux | RHEL-8 | bsdcpio-debuginfoi686 | Advisory build | 3.3.3-3.el8_5 | RHSA-2022:0892 |
| Red Hat Enterprise Linux | RHEL-8 | bsdcpio-debuginfoppc64le | Advisory build | 3.3.3-3.el8_5 | RHSA-2022:0892 |
| Red Hat Enterprise Linux | RHEL-8 | bsdcpio-debuginfos390x | Advisory build | 3.3.3-3.el8_5 | RHSA-2022:0892 |
| Red Hat Enterprise Linux | RHEL-8 | bsdcpio-debuginfox86_64 | Advisory build | 3.3.3-3.el8_5 | RHSA-2022:0892 |
| Red Hat Enterprise Linux | RHEL-8 | bsdtaraarch64 | Advisory build | 3.3.3-3.el8_5 | RHSA-2022:0892 |
| Red Hat Enterprise Linux | RHEL-8 | bsdtarppc64le | Advisory build | 3.3.3-3.el8_5 | RHSA-2022:0892 |
| Red Hat Enterprise Linux | RHEL-8 | bsdtars390x | Advisory build | 3.3.3-3.el8_5 | RHSA-2022:0892 |
| Red Hat Enterprise Linux | RHEL-8 | bsdtarx86_64 | Advisory build | 3.3.3-3.el8_5 | RHSA-2022:0892 |
| Red Hat Enterprise Linux | RHEL-8 | bsdtar-debuginfoaarch64 | Advisory build | 3.3.3-3.el8_5 | RHSA-2022:0892 |
| Red Hat Enterprise Linux | RHEL-8 | bsdtar-debuginfoi686 | Advisory build | 3.3.3-3.el8_5 | RHSA-2022:0892 |
| Red Hat Enterprise Linux | RHEL-8 | bsdtar-debuginfoppc64le | Advisory build | 3.3.3-3.el8_5 | RHSA-2022:0892 |
| Red Hat Enterprise Linux | RHEL-8 | bsdtar-debuginfos390x | Advisory build | 3.3.3-3.el8_5 | RHSA-2022:0892 |
| Red Hat Enterprise Linux | RHEL-8 | bsdtar-debuginfox86_64 | Advisory build | 3.3.3-3.el8_5 | RHSA-2022:0892 |
| Red Hat Enterprise Linux | RHEL-8 | libarchive-debuginfoaarch64 | Advisory build | 3.3.3-3.el8_5 | RHSA-2022:0892 |
| Red Hat Enterprise Linux | RHEL-8 | libarchive-debuginfoi686 | Advisory build | 3.3.3-3.el8_5 | RHSA-2022:0892 |
| Red Hat Enterprise Linux | RHEL-8 | libarchive-debuginfoppc64le | Advisory build | 3.3.3-3.el8_5 | RHSA-2022:0892 |
| Red Hat Enterprise Linux | RHEL-8 | libarchive-debuginfos390x | Advisory build | 3.3.3-3.el8_5 | RHSA-2022:0892 |
| Red Hat Enterprise Linux | RHEL-8 | libarchive-debuginfox86_64 | Advisory build | 3.3.3-3.el8_5 | RHSA-2022:0892 |
| Red Hat Enterprise Linux | RHEL-8 | libarchive-debugsourceaarch64 | Advisory build | 3.3.3-3.el8_5 | RHSA-2022:0892 |
| Red Hat Enterprise Linux | RHEL-8 | libarchive-debugsourcei686 | Advisory build | 3.3.3-3.el8_5 | RHSA-2022:0892 |
| Red Hat Enterprise Linux | RHEL-8 | libarchive-debugsourceppc64le | Advisory build | 3.3.3-3.el8_5 | RHSA-2022:0892 |
| Red Hat Enterprise Linux | RHEL-8 | libarchive-debugsources390x | Advisory build | 3.3.3-3.el8_5 | RHSA-2022:0892 |
| Red Hat Enterprise Linux | RHEL-8 | libarchive-debugsourcex86_64 | Advisory build | 3.3.3-3.el8_5 | RHSA-2022:0892 |
| SUSE / openSUSE | SLE-15-SP3 | bsdtarppc64le | Advisory build | 3.4.2-150200.4.12.1 | SUSE-SU-2022:3935-1 |
| SUSE / openSUSE | SLE-15-SP3 | bsdtars390x | Advisory build | 3.4.2-150200.4.12.1 | SUSE-SU-2022:3935-1 |
| SUSE / openSUSE | SLE-15-SP3 | bsdtarx86_64 | Advisory build | 3.4.2-150200.4.12.1 | SUSE-SU-2022:3935-1 |
| SUSE / openSUSE | SLE-15-SP3 | libarchive-develaarch64 | Advisory build | 3.4.2-150200.4.12.1 | SUSE-SU-2022:3935-1 |
| SUSE / openSUSE | SLE-15-SP3 | libarchive-develppc64le | Advisory build | 3.4.2-150200.4.12.1 | SUSE-SU-2022:3935-1 |
| SUSE / openSUSE | SLE-15-SP3 | libarchive-devels390x | Advisory build | 3.4.2-150200.4.12.1 | SUSE-SU-2022:3935-1 |
| SUSE / openSUSE | SLE-15-SP3 | libarchive-develx86_64 | Advisory build | 3.4.2-150200.4.12.1 | SUSE-SU-2022:3935-1 |
| SUSE / openSUSE | SLE-15-SP3 | libarchive13aarch64 | Advisory build | 3.4.2-150200.4.12.1 | SUSE-SU-2022:3935-1 |
| SUSE / openSUSE | SLE-15-SP3 | libarchive13ppc64le | Advisory build | 3.4.2-150200.4.12.1 | SUSE-SU-2022:3935-1 |
| SUSE / openSUSE | SLE-15-SP3 | libarchive13s390x | Advisory build | 3.4.2-150200.4.12.1 | SUSE-SU-2022:3935-1 |
| SUSE / openSUSE | SLE-15-SP3 | libarchive13x86_64 | Advisory build | 3.4.2-150200.4.12.1 | SUSE-SU-2022:3935-1 |
| SUSE / openSUSE | SLE-15-SP4 | bsdtaraarch64 | Advisory build | 3.5.1-150400.3.9.1 | SUSE-SU-2022:3936-1 |
| SUSE / openSUSE | SLE-15-SP4 | bsdtarppc64le | Advisory build | 3.5.1-150400.3.9.1 | SUSE-SU-2022:3936-1 |
| SUSE / openSUSE | SLE-15-SP4 | bsdtars390x | Advisory build | 3.5.1-150400.3.9.1 | SUSE-SU-2022:3936-1 |
| SUSE / openSUSE | SLE-15-SP4 | bsdtarx86_64 | Advisory build | 3.5.1-150400.3.9.1 | SUSE-SU-2022:3936-1 |
| SUSE / openSUSE | SLE-15-SP4 | libarchive-develaarch64 | Advisory build | 3.5.1-150400.3.9.1 | SUSE-SU-2022:3936-1 |
| SUSE / openSUSE | SLE-15-SP4 | libarchive-develppc64le | Advisory build | 3.5.1-150400.3.9.1 | SUSE-SU-2022:3936-1 |
| SUSE / openSUSE | SLE-15-SP4 | libarchive-devels390x | Advisory build | 3.5.1-150400.3.9.1 | SUSE-SU-2022:3936-1 |
| SUSE / openSUSE | SLE-15-SP4 | libarchive-develx86_64 | Advisory build | 3.5.1-150400.3.9.1 | SUSE-SU-2022:3936-1 |
| SUSE / openSUSE | SLE-15-SP4 | libarchive13aarch64 | Advisory build | 3.5.1-150400.3.9.1 | SUSE-SU-2022:3936-1 |
| SUSE / openSUSE | SLE-15-SP4 | libarchive13ppc64le | Advisory build | 3.5.1-150400.3.9.1 | SUSE-SU-2022:3936-1 |
| SUSE / openSUSE | SLE-15-SP4 | libarchive13s390x | Advisory build | 3.5.1-150400.3.9.1 | SUSE-SU-2022:3936-1 |
| SUSE / openSUSE | SLE-15-SP4 | libarchive13x86_64 | Advisory build | 3.5.1-150400.3.9.1 | SUSE-SU-2022:3936-1 |
| SUSE / openSUSE | SLE-5 | libarchive13aarch64 | Advisory build | 3.5.1-150400.3.9.1 | SUSE-SU-2022:3936-1 |
| SUSE / openSUSE | SLE-5 | libarchive13s390x | Advisory build | 3.5.1-150400.3.9.1 | SUSE-SU-2022:3936-1 |
| SUSE / openSUSE | SLE-5 | libarchive13x86_64 | Advisory build | 3.5.1-150400.3.9.1 | SUSE-SU-2022:3936-1 |
| SUSE / openSUSE | openSUSE-Leap-15.3 | bsdtaraarch64 | Advisory build | 3.4.2-150200.4.12.1 | SUSE-SU-2022:3935-1 |
| SUSE / openSUSE | openSUSE-Leap-15.3 | bsdtarppc64le | Advisory build | 3.4.2-150200.4.12.1 | SUSE-SU-2022:3935-1 |
| SUSE / openSUSE | openSUSE-Leap-15.3 | bsdtars390x | Advisory build | 3.4.2-150200.4.12.1 | SUSE-SU-2022:3935-1 |
| SUSE / openSUSE | openSUSE-Leap-15.3 | bsdtarx86_64 | Advisory build | 3.4.2-150200.4.12.1 | SUSE-SU-2022:3935-1 |
| SUSE / openSUSE | openSUSE-Leap-15.3 | libarchive-develaarch64 | Advisory build | 3.4.2-150200.4.12.1 | SUSE-SU-2022:3935-1 |
| SUSE / openSUSE | openSUSE-Leap-15.3 | libarchive-develppc64le | Advisory build | 3.4.2-150200.4.12.1 | SUSE-SU-2022:3935-1 |
| SUSE / openSUSE | openSUSE-Leap-15.3 | libarchive-devels390x | Advisory build | 3.4.2-150200.4.12.1 | SUSE-SU-2022:3935-1 |
| SUSE / openSUSE | openSUSE-Leap-15.3 | libarchive-develx86_64 | Advisory build | 3.4.2-150200.4.12.1 | SUSE-SU-2022:3935-1 |
| SUSE / openSUSE | openSUSE-Leap-15.3 | libarchive13aarch64 | Advisory build | 3.4.2-150200.4.12.1 | SUSE-SU-2022:3935-1 |
| SUSE / openSUSE | openSUSE-Leap-15.3 | libarchive13ppc64le | Advisory build | 3.4.2-150200.4.12.1 | SUSE-SU-2022:3935-1 |
| SUSE / openSUSE | openSUSE-Leap-15.3 | libarchive13s390x | Advisory build | 3.4.2-150200.4.12.1 | SUSE-SU-2022:3935-1 |
| SUSE / openSUSE | openSUSE-Leap-15.3 | libarchive13x86_64 | Advisory build | 3.4.2-150200.4.12.1 | SUSE-SU-2022:3935-1 |
| SUSE / openSUSE | openSUSE-Leap-15.3 | libarchive13-32bitx86_64 | Advisory build | 3.4.2-150200.4.12.1 | SUSE-SU-2022:3935-1 |
| SUSE / openSUSE | openSUSE-Leap-15.4 | bsdtaraarch64 | Advisory build | 3.5.1-150400.3.9.1 | SUSE-SU-2022:3936-1 |
| SUSE / openSUSE | openSUSE-Leap-15.4 | bsdtarppc64le | Advisory build | 3.5.1-150400.3.9.1 | SUSE-SU-2022:3936-1 |
| SUSE / openSUSE | openSUSE-Leap-15.4 | bsdtars390x | Advisory build | 3.5.1-150400.3.9.1 | SUSE-SU-2022:3936-1 |
| SUSE / openSUSE | openSUSE-Leap-15.4 | bsdtarx86_64 | Advisory build | 3.5.1-150400.3.9.1 | SUSE-SU-2022:3936-1 |
| SUSE / openSUSE | openSUSE-Leap-15.4 | libarchive-develaarch64 | Advisory build | 3.5.1-150400.3.9.1 | SUSE-SU-2022:3936-1 |
| SUSE / openSUSE | openSUSE-Leap-15.4 | libarchive-develppc64le | Advisory build | 3.5.1-150400.3.9.1 | SUSE-SU-2022:3936-1 |
| SUSE / openSUSE | openSUSE-Leap-15.4 | libarchive-devels390x | Advisory build | 3.5.1-150400.3.9.1 | SUSE-SU-2022:3936-1 |
| SUSE / openSUSE | openSUSE-Leap-15.4 | libarchive-develx86_64 | Advisory build | 3.5.1-150400.3.9.1 | SUSE-SU-2022:3936-1 |
| SUSE / openSUSE | openSUSE-Leap-15.4 | libarchive13aarch64 | Advisory build | 3.5.1-150400.3.9.1 | SUSE-SU-2022:3936-1 |
| SUSE / openSUSE | openSUSE-Leap-15.4 | libarchive13ppc64le | Advisory build | 3.5.1-150400.3.9.1 | SUSE-SU-2022:3936-1 |
| SUSE / openSUSE | openSUSE-Leap-15.4 | libarchive13s390x | Advisory build | 3.5.1-150400.3.9.1 | SUSE-SU-2022:3936-1 |
Package entries are limited to the first 100 builds and 100 linked advisories.
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
No normalized assessments.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| n/a | libarchive | Fixed in libarchive 3.5.2 (affected) | redhat · cna |
Weaknesses
1- CWE-59 CWE-59 - Improper Link Resolution Before File Access ('Link Following')
References
5- https://access.redhat.com/security/cve/CVE-2021-31566
- https://bugzilla.redhat.com/show_bug.cgi?id=2024237
- https://github.com/libarchive/libarchive/commit/b41daecb5ccb4c8e3b2c53fd6147109fc12c3043
- https://github.com/libarchive/libarchive/issues/1566
- [debian-lts-announce] 20221122 [SECURITY] [DLA 3202-1] libarchive security update https://lists.debian.org/debian-lts-announce/2022/11/msg00030.html
Provider assertions
3redhat · cna
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- c7b4ed8fd949953d6528c205d5eab9508d10242c80c4eae79f2c6c2655d235b9
- Ingested
- 02 Nov 2026, 18:05:35 UTC
- Source record
- Official CVE record