CVE-2021-31566
Summary
| CVE | CVE-2021-31566 |
|---|---|
| State | PUBLISHED |
| Assigner | redhat |
| Source Priority | CVE Program / NVD first with legacy fallback |
| Published | 2022-08-23 16:15:09 UTC |
| Updated | 2026-11-02 18:18:33 UTC |
| 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. |
Risk And Classification
Primary CVSS: v3.1 7.8 HIGH from [email protected]
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Problem Types: CWE-59 | CWE-59 CWE-59 - Improper Link Resolution Before File Access ('Link Following')
CVSS v3.1 Breakdown
Attack Vector
LocalAttack Complexity
LowPrivileges Required
NoneUser Interaction
RequiredScope
UnchangedConfidentiality
HighIntegrity
HighAvailability
HighCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
NVD Known Affected Configurations (CPE 2.3)
| Type | Vendor | Product | Version | Update | Edition | Language |
|---|---|---|---|---|---|---|
| Operating System | Debian | Debian Linux | 10.0 | All | All | All |
| Operating System | Fedoraproject | Fedora | 35 | All | All | All |
| Application | Libarchive | Libarchive | All | All | All | All |
| Application | Redhat | Codeready Linux Builder | - | All | All | All |
| Operating System | Redhat | Enterprise Linux | 8.0 | All | All | All |
| Operating System | Redhat | Enterprise Linux | 8.0 | All | All | All |
| Operating System | Redhat | Enterprise Linux Eus | 8.6 | All | All | All |
| Operating System | Redhat | Enterprise Linux Eus | 8.6 | All | All | All |
| Operating System | Redhat | Enterprise Linux For Ibm Z Systems | 8.0 | All | All | All |
| Operating System | Redhat | Enterprise Linux For Ibm Z Systems | 8.0 | All | All | All |
| Operating System | Redhat | Enterprise Linux For Ibm Z Systems Eus | 8.6 | All | All | All |
| Operating System | Redhat | Enterprise Linux For Ibm Z Systems Eus | 8.6 | All | All | All |
| Operating System | Redhat | Enterprise Linux For Power Little Endian | 8.0 | All | All | All |
| Operating System | Redhat | Enterprise Linux For Power Little Endian | 8.0 | All | All | All |
| Operating System | Redhat | Enterprise Linux For Power Little Endian Eus | 8.6 | All | All | All |
| Operating System | Redhat | Enterprise Linux For Power Little Endian Eus | 8.6 | All | All | All |
| Operating System | Redhat | Enterprise Linux Server Aus | 8.6 | All | All | All |
| Operating System | Redhat | Enterprise Linux Server For Power Little Endian Update Services For Sap Solutions | 8.6 | All | All | All |
| Operating System | Redhat | Enterprise Linux Server Tus | 8.6 | All | All | All |
| Application | Splunk | Universal Forwarder | All | All | All | All |
Vendor Declared Affected Products
| Source | Vendor | Product | Version | Platforms |
|---|---|---|---|---|
| CNA | Na | Libarchive | affected Fixed in libarchive 3.5.2 | Not specified |
References
| Reference | Source | Link | Tags |
|---|---|---|---|
| Do not follow symlinks when processing the fixup list · libarchive/libarchive@b41daec · GitHub | af854a3a-2127-422b-91ae-364da2661108 | github.com | Patch, Third Party Advisory |
| 2024237 – (CVE-2021-31566) CVE-2021-31566 libarchive: symbolic links incorrectly followed when changing modes, times, ACL and flags of a file while extracting an archive | af854a3a-2127-422b-91ae-364da2661108 | bugzilla.redhat.com | Issue Tracking, Patch, Third Party Advisory |
| [SECURITY] [DLA 3202-1] libarchive security update | af854a3a-2127-422b-91ae-364da2661108 | lists.debian.org | Mailing List, Third Party Advisory |
| [SECURITY] Processing fixup entries may follow symbolic links · Issue #1566 · libarchive/libarchive · GitHub | af854a3a-2127-422b-91ae-364da2661108 | github.com | Issue Tracking, Patch, Third Party Advisory |
| Red Hat Customer Portal - Access to 24x7 support and knowledge | af854a3a-2127-422b-91ae-364da2661108 | access.redhat.com | Third Party Advisory |
| CVE Program record | CVE.ORG | www.cve.org | canonical |
| NVD vulnerability detail | NVD | nvd.nist.gov | canonical, analysis |
No vendor comments have been submitted for this CVE.
Legacy QID Mappings
- 159709 Oracle Enterprise Linux Security Update for libarchive (ELSA-2022-0892)
- 179253 Debian Security Update for libarchive (DLA 2987-1)
- 180499 Debian Security Update for libarchive (CVE-2021-31566)
- 181241 Debian Security Update for libarchive (DLA 3202-1)
- 198669 Ubuntu Security Notification for libarchive Vulnerabilities (USN-5291-1)
- 240147 Red Hat Update for libarchive (RHSA-2022:0892)
- 282426 Fedora Security Update for libarchive (FEDORA-2022-9bb794c5f5)
- 354321 Amazon Linux Security Advisory for libarchive : ALAS2022-2022-201
- 354419 Amazon Linux Security Advisory for libarchive : ALAS2022-2022-059
- 354576 Amazon Linux Security Advisory for libarchive : ALAS-2022-201
- 355055 Amazon Linux Security Advisory for libarchive : AL2012-2022-379
- 355173 Amazon Linux Security Advisory for libarchive : ALAS2023-2023-071
- 356757 Amazon Linux Security Advisory for libarchive : ALAS2-2023-2374
- 376502 Cygwin libarchive Package Multiple Security Vulnerabilities
- 377362 Alibaba Cloud Linux Security Update for libarchive (ALINUX3-SA-2022:0019)
- 378599 Splunk Enterprise Third Party Package Updates for June (SVD-2023-0613)
- 378883 Splunk Enterprise August Third Party Package Updates (SVD-2023-0808)
- 501419 Alpine Linux Security Update for libarchive
- 671424 EulerOS Security Update for libarchive (EulerOS-SA-2022-1353)
- 671445 EulerOS Security Update for libarchive (EulerOS-SA-2022-1430)
- 671481 EulerOS Security Update for libarchive (EulerOS-SA-2022-1451)
- 671500 EulerOS Security Update for libarchive (EulerOS-SA-2022-1490)
- 671522 EulerOS Security Update for libarchive (EulerOS-SA-2022-1509)
- 710601 Gentoo Linux libarchive Multiple Vulnerabilities (GLSA 202208-26)
- 752783 SUSE Enterprise Linux Security Update for libarchive (SUSE-SU-2022:3936-1)
- 752785 SUSE Enterprise Linux Security Update for libarchive (SUSE-SU-2022:3935-1)
- 940470 AlmaLinux Security Update for libarchive (ALSA-2022:0892)
- 960713 Rocky Linux Security Update for libarchive (RLSA-2022:0892)