Every CVE Search/ Get API key

CVE-2021-36976

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

6.5 MediumFix available

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

Attack profile

How easy it is to exploit

Attack vector
Network
Complexity
Low
Privileges needed
None
User interaction
Required

What an attacker can affect

Confidentiality
None
Integrity
None
Availability
High

Exploit likelihood

2.84%Up 2.2 points since Jul 20, 2021
90%50%10%1%

What each source reports

NVD Score used 6.5

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

Record
CVE-2021-36976
CVSS 3.1
6.5 MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
CVSS 2.0
4.3 MediumAV:N/AC:M/Au:N/C:N/I:N/A:P
Weakness
CWE-416
Updated
2026-11-03
CVE List No score

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

Record
CVE-2021-36976
Updated
2026-11-02
EUVDEUVD-2021-23552 No score

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

Record
EUVD-2021-23552
Updated
2026-11-03
GitHub AdvisoriesGHSA-4fxq-mcvv-8fqm 6.5

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

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

Record
GHSA-4fxq-mcvv-8fqm
CVSS 3.1
6.5 MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
Weakness
CWE-416
Updated
2026-11-02
OSVALPINE-CVE-2021-36976 6.5

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

Record
ALPINE-CVE-2021-36976
CVSS 3.1
6.5 MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
Updated
2026-11-02
OSVAZL-6614 6.5

CVE-2021-36976 affecting package libarchive for versions less than 3.6.0-1

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

Record
AZL-6614
CVSS 3.1
6.5 MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
Updated
2026-11-02
Show 14 moreShow less
OSVBELL-CVE-2021-36976 6.5

CVE-2021-36976 does not affect BellSoft software

Record
BELL-CVE-2021-36976
CVSS 3.1
6.5 MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
Updated
2026-11-02
OSV 6.5

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

Record
CVE-2021-36976
CVSS 3.1
6.5 MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
Updated
2026-11-04
OSVDEBIAN-CVE-2021-36976 6.5

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

Record
DEBIAN-CVE-2021-36976
CVSS 3.1
6.5 MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
Updated
2026-11-03
OSVJLSEC-2025-234 6.5

libarchive 3.4.1 through 3.5.1 has a use-after-free in `copy_string` (called from...

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

Record
JLSEC-2025-234
CVSS 3.1
6.5 MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
CVSS 2.0
4.3 MediumAV:N/AC:M/Au:N/C:N/I:N/A:P
Updated
2026-11-02
OSVOESA-2021-1398 6.5

libarchive security update

libarchive is an open-source BSD-licensed C programming library that provides streaming access to a variety of different archive formats, including tar, cpio, pax, zip, and ISO9660 images. The distribution also includes bsdtar and bsdcpio, full-featured implementations of tar and cpio that use libarchive.

Security Fix(es):

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

Record
OESA-2021-1398
CVSS 3.1
6.5 MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
Updated
2026-11-02
OSVRHBA-2022:3897 6.5

Red Hat Bug Fix Advisory: new packages: libarchive

Record
RHBA-2022:3897
CVSS 3.1
6.5 MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
Updated
2026-11-02
OSVUBUNTU-CVE-2021-36976 6.5

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

Record
UBUNTU-CVE-2021-36976
CVSS 3.1
6.5 MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
Updated
2026-11-02
OSVMGASA-2022-0060 No score

Updated libarchive packages fix security vulnerability

Processing fixup entries may follow symbolic links. (CVE-2021-31566)

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

Record
MGASA-2022-0060
Updated
2026-11-02
OSVopenSUSE-SU-2022:0944-1 No score

Security update for libarchive

This update for libarchive fixes the following issues:

  • CVE-2021-36976: Fixed an invalid memory access that could cause data corruption (bsc#1188572).

Non-security updates:

  • Updated references for CVE-2017-5601, which was already fixed in a previous version (bsc#1022528 bsc#1189528).
Record
openSUSE-SU-2022:0944-1
Updated
2026-11-02
OSVopenSUSE-SU-2024:11894-1 No score

bsdtar-3.6.0-1.1 on GA media

These are all security issues fixed in the bsdtar-3.6.0-1.1 package on the GA media of openSUSE Tumbleweed.

Record
openSUSE-SU-2024:11894-1
Updated
2026-11-02
OSVSUSE-SU-2022:0944-1 No score

Security update for libarchive

This update for libarchive fixes the following issues:

  • CVE-2021-36976: Fixed an invalid memory access that could cause data corruption (bsc#1188572).

Non-security updates:

  • Updated references for CVE-2017-5601, which was already fixed in a previous version (bsc#1022528 bsc#1189528).
Record
SUSE-SU-2022:0944-1
Updated
2026-11-02
OSVSUSE-SU-2022:0944-2 No score

Security update for libarchive

This update for libarchive fixes the following issues:

  • CVE-2021-36976: Fixed an invalid memory access that could cause data corruption (bsc#1188572).

Non-security updates:

  • Updated references for CVE-2017-5601, which was already fixed in a previous version (bsc#1022528 bsc#1189528).
Record
SUSE-SU-2022:0944-2
Updated
2026-11-02
OSVSUSE-SU-2022:1930-1 No score

Security update for libarchive

This update for libarchive fixes the following issues:

  • CVE-2022-26280: Fixed out-of-bounds read via the component zipx_lzma_alone_init (bsc#1197634).
  • CVE-2021-36976: Fixed use-after-free in copy_string (called from do_uncompress_block and process_block) (bsc#1188572).
  • CVE-2017-5601: Fixed out-of-bounds memory access preventing denial-of-service (bsc#1197634, bsc#1189528).
Record
SUSE-SU-2022:1930-1
Updated
2026-11-02
OSVUSN-5291-1 No score

libarchive vulnerabilities

It was discovered that libarchive incorrectly handled symlinks. If a user or automated system were tricked into processing a specially crafted archive, an attacker could possibly use this issue to change modes, times, ACLs, and flags on arbitrary files. (CVE-2021-23177, CVE-2021-31566)

It was discovered that libarchive incorrectly handled certain RAR archives. If a user or automated system were tricked into processing a specially crafted RAR archive, an attacker could use this issue to cause libarchive to crash, resulting in a denial of service, or possibly execute arbitrary code. (CVE-2021-36976)

Record
USN-5291-1
Updated
2026-11-02

Affected products

Affected packages

Affected packages
PackageAffectedFixed
libarchive
Alpine:v3.13
3.4.1 up to 3.5.3-r0
3.5.3-r0
libarchive
Alpine:v3.14
3.4.1 up to 3.5.3-r0
3.5.3-r0
libarchive
Alpine:v3.15
3.4.1 up to 3.6.0-r0
3.6.0-r0
libarchive
Alpine:v3.16
3.4.1 up to 3.6.0-r0
3.6.0-r0
libarchive
Alpine:v3.17
3.4.1 up to 3.6.0-r0
3.6.0-r0
libarchive
Alpine:v3.18
3.4.1 up to 3.6.0-r0
3.6.0-r0
libarchive
Alpine:v3.19
3.4.1 up to 3.6.0-r0
3.6.0-r0
libarchive
Alpine:v3.20
3.4.1 up to 3.6.0-r0
3.6.0-r0
libarchive
Alpine:v3.21
3.4.1 up to 3.6.0-r0
3.6.0-r0
libarchive
Alpine:v3.22
3.4.1 up to 3.6.0-r0
3.6.0-r0
Show 26 moreShow less
Affected packages
PackageAffectedFixed
libarchive
Alpine:v3.23
3.4.1 up to 3.6.0-r0
3.6.0-r0
libarchive
Alpine:v3.24
3.4.1 up to 3.6.0-r0
3.6.0-r0
libarchive
Azure Linux:2
before 3.6.0-1
3.6.0-1
libarchive
Debian:12
before 3.6.0-1
3.6.0-1
libarchive
Debian:13
before 3.6.0-1
3.6.0-1
libarchive
Debian:14
before 3.6.0-1
3.6.0-1
libarchive
Debian:11
From an advisory covering 4 CVEs
before 3.4.3-2+deb11u2, plus listed versions
3.4.3-23.4.3-2+deb11u1
3.4.3-2+deb11u2
LibArchive_jll
Julia
before 3.7.4+0
3.7.4+0
libarchive
Mageia:8
From an advisory covering 2 CVEs
before 3.5.3-1.mga8
3.5.3-1.mga8
libarchive
openEuler:20.03-LTS-SP1
before 3.4.3-3.oe1
3.4.3-3.oe1
libarchive
openEuler:20.03-LTS-SP2
before 3.4.3-3.oe1
3.4.3-3.oe1
libarchive
SUSE:Linux Enterprise Module for Basesystem 15 SP3
From an advisory covering 2 CVEs
before 3.4.2-150200.4.3.1
3.4.2-150200.4.3.1
libarchive
SUSE:Linux Enterprise Module for Development Tools 15 SP3
From an advisory covering 2 CVEs
before 3.4.2-150200.4.3.1
3.4.2-150200.4.3.1
libarchive
SUSE:Linux Enterprise Real Time 15 SP2
From an advisory covering 2 CVEs
before 3.4.2-150200.4.3.1
3.4.2-150200.4.3.1
libarchive
SUSE:Linux Enterprise High Performance Computing 15 SP2-LTSS
From an advisory covering 2 CVEs
before 3.4.2-150200.4.3.1
3.4.2-150200.4.3.1
libarchive
SUSE:Linux Enterprise Server 15 SP2-LTSS
From an advisory covering 2 CVEs
before 3.4.2-150200.4.3.1
3.4.2-150200.4.3.1
libarchive
SUSE:Linux Enterprise Server for SAP Applications 15 SP2
From an advisory covering 2 CVEs
before 3.4.2-150200.4.3.1
3.4.2-150200.4.3.1
libarchive
SUSE:Enterprise Storage 7
From an advisory covering 2 CVEs
before 3.4.2-150200.4.3.1
3.4.2-150200.4.3.1
libarchive
SUSE:Linux Enterprise Module for Basesystem 15 SP4
From an advisory covering 3 CVEs
before 3.5.1-150400.3.3.1
3.5.1-150400.3.3.1
libarchive
SUSE:Linux Enterprise Module for Development Tools 15 SP4
From an advisory covering 3 CVEs
before 3.5.1-150400.3.3.1
3.5.1-150400.3.3.1
libarchive
openSUSE:Leap 15.4
From an advisory covering 3 CVEs
before 3.5.1-150400.3.3.1
3.5.1-150400.3.3.1
libarchive
Ubuntu:20.04:LTS
before 3.4.0-2ubuntu1.1, plus listed versions
3.4.0-13.4.0-1build13.4.0-1ubuntu23.4.0-2ubuntu1
3.4.0-2ubuntu1.1
libarchive
Ubuntu:22.04:LTS
before 3.5.2-1ubuntu1, plus listed versions
3.4.3-23.4.3-2build13.5.2-1
3.5.2-1ubuntu1
libarchive
Ubuntu:20.04:LTS
From an advisory covering 3 CVEs
before 3.4.0-2ubuntu1.1, plus listed versions
3.4.0-13.4.0-1build13.4.0-1ubuntu23.4.0-2ubuntu1
3.4.0-2ubuntu1.1
libarchive
openSUSE:Leap 15.3
From an advisory covering 2 CVEs
before 3.4.2-150200.4.3.1
3.4.2-150200.4.3.1
bsdtar
openSUSE:Tumbleweed
From an advisory covering 2 CVEs
before 3.6.0-1.1
3.6.0-1.1

History

History
RecordedChangedSources
affected
factsOSV
affected
aliasesEUVD, NVD
first indexedCVE List, GitHub Advisories, NVD, OSV

Dates are when Every CVE recorded each change. Upstream dates may differ.

In short

CVE-2021-36976 is a medium vulnerability (CVSS 6.5) in Libarchive, published July 20, 2021. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 2.84%, the 86th percentile. Fixed in libarchive 3.5.3-r0.

References

Show 38 moreShow less
MoveEnter Open