cve.bz

CVE-2021-36976 Use After Free

6.5 mediumEPSS 2.8%

Medium (6.5). EPSS 2.8% estimated probability of exploitation activity in the next 30 days.

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

Severity

CVSS 3.1

6.5 medium
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
EPSS
2.8% (unchanged from 2.8% a week ago; 2.8% 30 days ago) estimated probability of exploitation activity in the next 30 days; 87th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CWE
CWE-416 Use After Free
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2021-36976 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2021-36976?via=ask-ai-copy and https://cve.bz/cve/CVE-2021-36976?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2021-36976 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
libarchive:libarchivefrom 3.4.1 through 3.5.2
fedoraproject:fedora35
apple:ipadosbefore 15.4
apple:iphone_osbefore 15.4
apple:macosbefore 12.3
apple:watchosbefore 8.5
splunk:universal_forwarderfrom 8.2.0 before 8.2.12
splunk:universal_forwarderfrom 9.0.0 before 9.0.6
splunk:universal_forwarder9.1.0

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian11libarchive3.4.3-2+deb11u2DLA-3950-1
Debian12, 13, 14libarchive3.6.0-1DEBIAN-CVE-2021-36976
Ubuntu20.04:LTSlibarchive3.4.0-2ubuntu1.1UBUNTU-CVE-2021-36976 USN-5291-1
Ubuntu22.04:LTSlibarchive3.5.2-1ubuntu1UBUNTU-CVE-2021-36976
SUSEEnterprise Storage 7, Linux Enterprise High Performance Computing 15 SP2-LTSS, Linux Enterprise Server 15 SP2-LTSS and 1 morelibarchive3.4.2-150200.4.3.1SUSE-SU-2022:0944-2
SUSELinux Enterprise Module for Basesystem 15 SP3, Linux Enterprise Module for Development Tools 15 SP3, Linux Enterprise Real Time 15 SP2libarchive3.4.2-150200.4.3.1SUSE-SU-2022:0944-1
SUSELinux Enterprise Module for Basesystem 15 SP4, Linux Enterprise Module for Development Tools 15 SP4libarchive3.5.1-150400.3.3.1SUSE-SU-2022:1930-1
openSUSELeap 15.3libarchive3.4.2-150200.4.3.1openSUSE-SU-2022:0944-1
openSUSELeap 15.4libarchive3.5.1-150400.3.3.1SUSE-SU-2022:1930-1
openSUSETumbleweedbsdtar3.6.0-1.1openSUSE-SU-2024:11894-1
Alpinev3.13, v3.14libarchive3.5.3-r0ALPINE-CVE-2021-36976
Alpinev3.15, v3.16, v3.17 and 7 morelibarchive3.6.0-r0ALPINE-CVE-2021-36976
Azure Linux2libarchive3.6.0-1AZL-6614

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; SUSE security data, CC BY 4.0; the Alpine secdb, CC BY-SA 4.0; Microsoft's Azure Linux vulnerability data, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · SUSE · openSUSE · Alpine.

Red Hat

Red Hat rates this Moderate.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 6libarchiveNot affected
Red Hat Enterprise Linux 7libarchiveNot affected
Red Hat Enterprise Linux 8libarchiveNot affected
Red Hat Enterprise Linux 9libarchiveNot affected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2021-36976.

References

Check your stackJSON