CVEfocus › CVE database › CVE-2021-36976

CVE-2021-36976

CVSS 6.5 MediumEPSS 2.8% (higher than 87% of CVEs)Published 2021-07-20Updated 2026-11-02Assigner: mitre

libarchive 3.4.1 through 3.5.1 has a use-after-free in copy_string (called from do_uncompress_block and process_block).

What to do

Fixed builds are available from Alpine, Debian, Microsoft, Ubuntu: see the table below for the fixed version per release.

Ubuntu has not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

35Fixed
1Fix pending
12Not affected

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 22.04libarchiveFixed3.5.2-1ubuntu1UBUNTU-CVE-2021-36976
Ubuntu 20.04libarchiveFixed3.4.0-2ubuntu1.1UBUNTU-CVE-2021-36976
Ubuntu 16.04libarchiveFix pending
Debian 14libarchiveFixed3.6.0-1DEBIAN-CVE-2021-36976
Debian 13libarchiveFixed3.6.0-1DEBIAN-CVE-2021-36976
Debian 12libarchiveFixed3.6.0-1DEBIAN-CVE-2021-36976
Red Hat Enterprise Linux 9bsdtarNot affected
Red Hat Enterprise Linux 9libarchiveNot affected
Red Hat Enterprise Linux 9libarchive-develNot affected
Red Hat Enterprise Linux 8bsdtarNot affected
Red Hat Enterprise Linux 8libarchiveNot affected
Red Hat Enterprise Linux 8libarchive-develNot affected
Red Hat Enterprise Linux 7bsdcpioNot affected
Red Hat Enterprise Linux 7bsdtarNot affected
Red Hat Enterprise Linux 7libarchiveNot affected
Red Hat Enterprise Linux 7libarchive-develNot affected
Red Hat Enterprise Linux 6libarchiveNot affected
Red Hat Enterprise Linux 6libarchive-develNot affected
Windows Server 2022windowsFixed10.0.20348.469 KB5009555MSRC-2022-Jan
Windows Server 2019windowsFixed10.0.17763.2452 KB5009557MSRC-2022-Jan
Windows 10 Version 1909 (arm64)windowsFixed10.0.18363.2037 KB5009545MSRC-2022-Jan
Windows 10 Version 1909 (x64)windowsFixed10.0.18363.2037 KB5009545MSRC-2022-Jan
Windows 10 Version 1909 (x86)windowsFixed10.0.18363.2037 KB5009545MSRC-2022-Jan
Windows 10 Version 1809 (arm64)windowsFixed10.0.17763.2452 KB5009557MSRC-2022-Jan
Windows 10 Version 1809 (x64)windowsFixed10.0.17763.2452 KB5009557MSRC-2022-Jan
Windows 10 Version 1809 (x86)windowsFixed10.0.17763.2452 KB5009557MSRC-2022-Jan
Windows 10 Version 20H2 (arm64)windowsFixed10.0.19042.1466 KB5009543MSRC-2022-Jan
Windows 10 Version 20H2 (x86)windowsFixed10.0.19042.1466 KB5009543MSRC-2022-Jan
Windows 10 Version 21H1 (arm64)windowsFixed10.0.19043.1466 KB5009543MSRC-2022-Jan
Windows 10 Version 21H1 (x64)windowsFixed10.0.19043.1466 KB5009543MSRC-2022-Jan
Windows 10 Version 21H1 (x86)windowsFixed10.0.19043.1466 KB5009543MSRC-2022-Jan
Windows 10 Version 21H2 (arm64)windowsFixed10.0.19044.1466 KB5009543MSRC-2022-Jan
Windows 10 Version 21H2 (x64)windowsFixed10.0.19044.1466 KB5009543MSRC-2022-Jan
Windows 10 Version 21H2 (x86)windowsFixed10.0.19044.1466 KB5009543MSRC-2022-Jan
Windows 11 Version 21H2 (arm64)windowsFixed10.0.22000.434 KB5009566MSRC-2022-Jan
Windows 11 Version 21H2 (x64)windowsFixed10.0.22000.434 KB5009566MSRC-2022-Jan
Alpine Linux 3.24libarchiveFixed3.6.0-r0ALPINE-CVE-2021-36976
Alpine Linux 3.23libarchiveFixed3.6.0-r0ALPINE-CVE-2021-36976
Alpine Linux 3.22libarchiveFixed3.6.0-r0ALPINE-CVE-2021-36976
Alpine Linux 3.21libarchiveFixed3.6.0-r0ALPINE-CVE-2021-36976
Alpine Linux 3.20libarchiveFixed3.6.0-r0ALPINE-CVE-2021-36976
Alpine Linux 3.19libarchiveFixed3.6.0-r0ALPINE-CVE-2021-36976
Alpine Linux 3.18libarchiveFixed3.6.0-r0ALPINE-CVE-2021-36976
Alpine Linux 3.17libarchiveFixed3.6.0-r0ALPINE-CVE-2021-36976
Alpine Linux 3.16libarchiveFixed3.6.0-r0ALPINE-CVE-2021-36976
Alpine Linux 3.15libarchiveFixed3.6.0-r0ALPINE-CVE-2021-36976
Alpine Linux 3.14libarchiveFixed3.5.3-r0ALPINE-CVE-2021-36976
Alpine Linux 3.13libarchiveFixed3.5.3-r0ALPINE-CVE-2021-36976

What the vendor says

As published in the CVE record by mitre, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

Vendor advisories:

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.