CVE catalog

CVE-2021-31566

libarchive: CVE-2021-31566

[CVE catalog]

Severity
High · CVSS 7.1CVSS: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.

DistributionPackageReleaseVersionStatus
Debianlibarchivesid3.8.10-2fixed
Debianlibarchiveforky3.8.9-1fixed
Debianlibarchivetrixie3.7.4-4+deb13u1fixed
Debianlibarchivebookworm3.6.2-1+deb12u4fixed
Debianlibarchivebookworm-security3.6.2-1+deb12u5fixed
Alpinelibarchive3.133.5.3-r0fixed
Alpinelibarchive3.143.5.3-r0fixed
Ubuntulibarchivepro3.2.2-3.1vulnerable
Ubuntulibarchivepro3.2.2-3.1ubuntu0.1vulnerable
Ubuntulibarchivepro3.2.2-3.1ubuntu0.2vulnerable
Ubuntulibarchivepro3.2.2-3.1ubuntu0.3vulnerable
Ubuntulibarchivepro3.2.2-3.1ubuntu0.4vulnerable
Ubuntulibarchivepro3.2.2-3.1ubuntu0.5vulnerable
Ubuntulibarchivepro3.2.2-3.1ubuntu0.6vulnerable
Ubuntulibarchivepro3.2.2-3.1ubuntu0.7vulnerable
Ubuntulibarchivepro3.2.2-3.1ubuntu0.7+esm1vulnerable
Ubuntulibarchivepro3.2.2-3.1ubuntu0.7+esm2vulnerable
Ubuntulibarchivepro3.2.2-3.1ubuntu0.7+esm3vulnerable
Ubuntulibarchive20.043.4.0-1vulnerable
Ubuntulibarchive20.043.4.0-1build1vulnerable
Ubuntulibarchive20.043.4.0-1ubuntu2vulnerable
Ubuntulibarchive20.043.4.0-2ubuntu1vulnerable
Ubuntulibarchive20.043.4.0-2ubuntu1.1fixed
Suselibarchivelinux enterprise module for basesystem 15 sp33.4.2-150200.4.12.1fixed
Suselibarchivelinux enterprise module for development tools 15 sp33.4.2-150200.4.12.1fixed
Opensuselibarchiveleap 15.33.4.2-150200.4.12.1fixed
Opensusebsdtartumbleweed3.6.0-1.1fixed
Suselibarchivelinux enterprise micro 5.33.5.1-150400.3.9.1fixed
Suselibarchivelinux enterprise module for basesystem 15 sp43.5.1-150400.3.9.1fixed
Suselibarchivelinux enterprise module for development tools 15 sp43.5.1-150400.3.9.1fixed
Opensuselibarchiveleap 15.43.5.1-150400.3.9.1fixed

Fixed-version evidence

DistributionPackageTypeReleaseFixed versionUrgencyOriginBugs
Debianlibarchivesourcesid3.5.2-1not yet assignedNot reported[1001990]
Debianlibarchivesourceforky3.5.2-1not yet assignedNot reported[1001990]
Debianlibarchivesourcetrixie3.5.2-1not yet assignedNot reported[1001990]
Debianlibarchivesourcebookworm3.5.2-1not yet assignedNot reported[1001990]
Alpinelibarchiveapk3.133.5.3-r0Not reportedALPINE-CVE-2021-31566Not reported
Alpinelibarchiveapk3.143.5.3-r0Not reportedALPINE-CVE-2021-31566Not reported
Ubuntulibarchivedeb20.043.4.0-2ubuntu1.1Not reportedUBUNTU-CVE-2021-31566Not reported
Suselibarchiverpmlinux enterprise module for basesystem 15 sp33.4.2-150200.4.12.1Not reportedSUSE-SU-2022:3935-1Not reported
Suselibarchiverpmlinux enterprise module for development tools 15 sp33.4.2-150200.4.12.1Not reportedSUSE-SU-2022:3935-1Not reported
Opensuselibarchiverpmleap 15.33.4.2-150200.4.12.1Not reportedSUSE-SU-2022:3935-1Not reported
Opensusebsdtarrpmtumbleweed3.6.0-1.1Not reportedOPENSUSE-SU-2024:11894-1Not reported
Suselibarchiverpmlinux enterprise micro 5.33.5.1-150400.3.9.1Not reportedSUSE-SU-2022:3936-1Not reported
Suselibarchiverpmlinux enterprise module for basesystem 15 sp43.5.1-150400.3.9.1Not reportedSUSE-SU-2022:3936-1Not reported
Suselibarchiverpmlinux enterprise module for development tools 15 sp43.5.1-150400.3.9.1Not reportedSUSE-SU-2022:3936-1Not reported
Opensuselibarchiverpmleap 15.43.5.1-150400.3.9.1Not reportedSUSE-SU-2022:3936-1Not reported

[Debian bug #1001990]

OpenFactory catalog packages

[Debian 12 (Bookworm)]

  • Source package: [libarchive]

    Details (4)
    • 3.6.2-1+deb12u4 · amd64 · bookworm

      Fixed · Fixed: 3.5.2-1

      dsa · libarchive · debian · bookworm; dsa · libarchive · debian · 12

    • 3.6.2-1+deb12u4 · arm64 · bookworm

      Fixed · Fixed: 3.5.2-1

      dsa · libarchive · debian · bookworm; dsa · libarchive · debian · 12

    • 3.6.2-1+deb12u5 · amd64 · bookworm-security

      Fixed · Fixed: 3.5.2-1

      dsa · libarchive · debian · bookworm; dsa · libarchive · debian · 12

    • 3.6.2-1+deb12u5 · arm64 · bookworm-security

      Fixed · Fixed: 3.5.2-1

      dsa · libarchive · debian · bookworm; dsa · libarchive · debian · 12

  • Source package: [libarchive]

    Details (4)
    • 3.6.2-1+deb12u4 · amd64 · bookworm

      Fixed · Fixed: 3.5.2-1

      dsa · libarchive · debian · bookworm; dsa · libarchive · debian · 12

    • 3.6.2-1+deb12u4 · arm64 · bookworm

      Fixed · Fixed: 3.5.2-1

      dsa · libarchive · debian · bookworm; dsa · libarchive · debian · 12

    • 3.6.2-1+deb12u5 · amd64 · bookworm-security

      Fixed · Fixed: 3.5.2-1

      dsa · libarchive · debian · bookworm; dsa · libarchive · debian · 12

    • 3.6.2-1+deb12u5 · arm64 · bookworm-security

      Fixed · Fixed: 3.5.2-1

      dsa · libarchive · debian · bookworm; dsa · libarchive · debian · 12

  • Source package: [libarchive]

    Details (4)
    • 3.6.2-1+deb12u4 · amd64 · bookworm

      Fixed · Fixed: 3.5.2-1

      dsa · libarchive · debian · bookworm; dsa · libarchive · debian · 12

    • 3.6.2-1+deb12u4 · arm64 · bookworm

      Fixed · Fixed: 3.5.2-1

      dsa · libarchive · debian · bookworm; dsa · libarchive · debian · 12

    • 3.6.2-1+deb12u5 · amd64 · bookworm-security

      Fixed · Fixed: 3.5.2-1

      dsa · libarchive · debian · bookworm; dsa · libarchive · debian · 12

    • 3.6.2-1+deb12u5 · arm64 · bookworm-security

      Fixed · Fixed: 3.5.2-1

      dsa · libarchive · debian · bookworm; dsa · libarchive · debian · 12

[Debian 13 (Trixie)]

  • Source package: [libarchive]

    Details (2)
    • 3.7.4-4+deb13u1 · amd64 · trixie

      Fixed · Fixed: 3.5.2-1

      dsa · libarchive · debian · 13

    • 3.7.4-4+deb13u1 · arm64 · trixie

      Fixed · Fixed: 3.5.2-1

      dsa · libarchive · debian · 13

  • Source package: [libarchive]

    Details (2)
    • 3.7.4-4+deb13u1 · amd64 · trixie

      Fixed · Fixed: 3.5.2-1

      dsa · libarchive · debian · 13

    • 3.7.4-4+deb13u1 · arm64 · trixie

      Fixed · Fixed: 3.5.2-1

      dsa · libarchive · debian · 13

  • Source package: [libarchive]

    Details (2)
    • 3.7.4-4+deb13u1 · amd64 · trixie

      Fixed · Fixed: 3.5.2-1

      dsa · libarchive · debian · 13

    • 3.7.4-4+deb13u1 · arm64 · trixie

      Fixed · Fixed: 3.5.2-1

      dsa · libarchive · debian · 13

[openSUSE Tumbleweed]

  • [bsdtar]Fixed

    Source package: [libarchive]

    Details (1)
    • 3.8.7-1.4 · x86_64 · tumbleweed

      Fixed · Fixed: 3.6.0-1.1

      dsa · bsdtar · opensuse · tumbleweed

Observed:

References