# CVE-2021-31566

- Priority: **Routine**
- Reason: Not severe (CVSS 7.8, local access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2022-08-23 · Modified: 2026-11-02
- Aliases: ALPINE-CVE-2021-31566, SUSE-SU-2022:3935-1, SUSE-SU-2022:3936-1, UBUNTU-CVE-2021-31566, DEBIAN-CVE-2021-31566
- Record: https://cvemate.com/vulnerability/CVE-2021-31566 · JSON: https://cvemate.com/vulnerability/CVE-2021-31566/json

## Description

```text
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.
```

## Signals

- CVSS: 7.8 high (v3.1, NVD) CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
- EPSS: 0.392%, percentile 35.398%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected (first 20 of 24)

- alpine libarchive (Alpine Linux): \< 3.5.3-r0
- debian libarchive (Debian): \< 3.5.2-1
- ubuntu libarchive (Ubuntu): All versions (No fix recorded) \| \< 3.4.0-2ubuntu1.1
- debian debian\_linux: 10.0
- fedoraproject fedora: 35
- libarchive libarchive: \< 3.5.2
- redhat codeready\_linux\_builder: na
- 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
- opensuse libarchive&distro=openSUSE Leap 15.3 (openSUSE): \< 3.4.2-150200.4.12.1
- opensuse libarchive&distro=openSUSE Leap 15.4 (openSUSE): \< 3.5.1-150400.3.9.1
- suse libarchive&distro=SUSE Linux Enterprise Micro 5.3 (SUSE Linux Enterprise): \< 3.5.1-150400.3.9.1
- suse libarchive&distro=SUSE Linux Enterprise Module for Basesystem 15 SP3 (SUSE Linux Enterprise): \< 3.4.2-150200.4.12.1

## References

- <https://github.com/libarchive/libarchive/issues/1566>
- <https://github.com/libarchive/libarchive/commit/b41daecb5ccb4c8e3b2c53fd6147109fc12c3043>
- <https://bugzilla.redhat.com/show_bug.cgi?id=2024237>
- <https://access.redhat.com/security/cve/CVE-2021-31566>
- <https://lists.debian.org/debian-lts-announce/2022/11/msg00030.html>
- <https://security.alpinelinux.org/vuln/CVE-2021-31566>
- <https://www.suse.com/support/update/announcement/2022/suse-su-20223935-1/>
- <https://bugzilla.suse.com/1192426>
- <https://bugzilla.suse.com/1192427>
- <https://www.suse.com/security/cve/CVE-2021-31566>
- <https://www.suse.com/support/update/announcement/2022/suse-su-20223936-1/>
- <https://ubuntu.com/security/CVE-2021-31566>
- <https://ubuntu.com/security/notices/USN-5291-1>
- <https://www.cve.org/CVERecord?id=CVE-2021-31566>
- <https://security-tracker.debian.org/tracker/CVE-2021-31566>

---

Data as of 2026-12-05T06:27:13.716Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
