Vulnerability 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.
CVSS Score
HIGH
Affected Products
| Vendor | Product | Versions |
|---|---|---|
| Libarchive | Libarchive | < 3.5.2 |
| Fedoraproject | Fedora | 35 |
| Redhat | Enterprise Linux | 8.0 |
| Redhat | Enterprise Linux Eus | 8.6 |
| Redhat | Enterprise Linux For Ibm Z Systems | 8.0 |
| Redhat | Enterprise Linux For Ibm Z Systems Eus | 8.6 |
| Redhat | Enterprise Linux For Power Little Endian | 8.0 |
| Redhat | Enterprise Linux For Power Little Endian Eus | 8.6 |
| Redhat | Enterprise Linux Server Aus | 8.6 |
| Redhat | Enterprise Linux Server For Power Little Endian Update Services For Sap Solutions | 8.6 |
| Redhat | Enterprise Linux Server Tus | 8.6 |
| Redhat | Codeready Linux Builder | - |
| Debian | Debian Linux | 10.0 |
| Splunk | Universal Forwarder | >= 8.2.0, < 8.2.12 |
Related Weaknesses (CWE)
References
- https://access.redhat.com/security/cve/CVE-2021-31566Third Party Advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=2024237Issue TrackingPatchThird Party Advisory
- https://github.com/libarchive/libarchive/commit/b41daecb5ccb4c8e3b2c53fd6147109fPatchThird Party Advisory
- https://github.com/libarchive/libarchive/issues/1566Issue TrackingPatchThird Party Advisory
- https://lists.debian.org/debian-lts-announce/2022/11/msg00030.htmlMailing ListThird Party Advisory
- https://access.redhat.com/security/cve/CVE-2021-31566Third Party Advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=2024237Issue TrackingPatchThird Party Advisory
- https://github.com/libarchive/libarchive/commit/b41daecb5ccb4c8e3b2c53fd6147109fPatchThird Party Advisory
- https://github.com/libarchive/libarchive/issues/1566Issue TrackingPatchThird Party Advisory
- https://lists.debian.org/debian-lts-announce/2022/11/msg00030.htmlMailing ListThird Party Advisory
FAQ
What is CVE-2021-31566?
CVE-2021-31566 is a vulnerability with a CVSS score of 7.8 (HIGH). 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 mal...
How severe is CVE-2021-31566?
CVE-2021-31566 has been rated HIGH with a CVSS base score of 7.8/10. Review the CVSS metrics above for detailed severity breakdown.
Is there a patch for CVE-2021-31566?
Check the references section above for vendor advisories and patch information. Affected products include: Libarchive Libarchive, Fedoraproject Fedora, Redhat Enterprise Linux, Redhat Enterprise Linux Eus, Redhat Enterprise Linux For Ibm Z Systems.