CVE-2021-36976
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).
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
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 Medium
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H - CVSS 2.0
- 4.3 Medium
AV: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 Medium
CVSS: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 Medium
CVSS: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 Medium
CVSS: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 Medium
CVSS: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 Medium
CVSS: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 Medium
CVSS: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 Medium
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H - CVSS 2.0
- 4.3 Medium
AV: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 Medium
CVSS: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 Medium
CVSS: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 Medium
CVSS: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
| Package | Affected | Fixed |
|---|---|---|
libarchiveAlpine:v3.13 |
3.4.1 up to 3.5.3-r0 | 3.5.3-r0 |
libarchiveAlpine:v3.14 |
3.4.1 up to 3.5.3-r0 | 3.5.3-r0 |
libarchiveAlpine:v3.15 |
3.4.1 up to 3.6.0-r0 | 3.6.0-r0 |
libarchiveAlpine:v3.16 |
3.4.1 up to 3.6.0-r0 | 3.6.0-r0 |
libarchiveAlpine:v3.17 |
3.4.1 up to 3.6.0-r0 | 3.6.0-r0 |
libarchiveAlpine:v3.18 |
3.4.1 up to 3.6.0-r0 | 3.6.0-r0 |
libarchiveAlpine:v3.19 |
3.4.1 up to 3.6.0-r0 | 3.6.0-r0 |
libarchiveAlpine:v3.20 |
3.4.1 up to 3.6.0-r0 | 3.6.0-r0 |
libarchiveAlpine:v3.21 |
3.4.1 up to 3.6.0-r0 | 3.6.0-r0 |
libarchiveAlpine:v3.22 |
3.4.1 up to 3.6.0-r0 | 3.6.0-r0 |
Show 26 moreShow less
| Package | Affected | Fixed |
|---|---|---|
libarchiveAlpine:v3.23 |
3.4.1 up to 3.6.0-r0 | 3.6.0-r0 |
libarchiveAlpine:v3.24 |
3.4.1 up to 3.6.0-r0 | 3.6.0-r0 |
libarchiveAzure Linux:2 |
before 3.6.0-1 | 3.6.0-1 |
libarchiveDebian:12 |
before 3.6.0-1 | 3.6.0-1 |
libarchiveDebian:13 |
before 3.6.0-1 | 3.6.0-1 |
libarchiveDebian:14 |
before 3.6.0-1 | 3.6.0-1 |
libarchiveDebian: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_jllJulia |
before 3.7.4+0 | 3.7.4+0 |
libarchiveMageia:8 From an advisory covering 2 CVEs |
before 3.5.3-1.mga8 | 3.5.3-1.mga8 |
libarchiveopenEuler:20.03-LTS-SP1 |
before 3.4.3-3.oe1 | 3.4.3-3.oe1 |
libarchiveopenEuler:20.03-LTS-SP2 |
before 3.4.3-3.oe1 | 3.4.3-3.oe1 |
libarchiveSUSE: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 |
libarchiveSUSE: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 |
libarchiveSUSE: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 |
libarchiveSUSE: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 |
libarchiveSUSE: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 |
libarchiveSUSE: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 |
libarchiveSUSE:Enterprise Storage 7 From an advisory covering 2 CVEs |
before 3.4.2-150200.4.3.1 | 3.4.2-150200.4.3.1 |
libarchiveSUSE: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 |
libarchiveSUSE: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 |
libarchiveopenSUSE:Leap 15.4 From an advisory covering 3 CVEs |
before 3.5.1-150400.3.3.1 | 3.5.1-150400.3.3.1 |
libarchiveUbuntu: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 |
libarchiveUbuntu: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 |
libarchiveUbuntu: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 |
libarchiveopenSUSE:Leap 15.3 From an advisory covering 2 CVEs |
before 3.4.2-150200.4.3.1 | 3.4.2-150200.4.3.1 |
bsdtaropenSUSE:Tumbleweed From an advisory covering 2 CVEs |
before 3.6.0-1.1 | 3.6.0-1.1 |
History
| Recorded | Changed | Sources |
|---|---|---|
| affected | ||
| facts | OSV | |
| affected | ||
| aliases | EUVD, NVD | |
| first indexed | CVE 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
github.com/google/oss-fuzz-vulns/blob/main/vulns/libarchive/OSV-2021-557.yaml
bugs.chromium.org/p/oss-fuzz/issues/detail?id=32375
lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/SE5NJQNM22ZE5Z55LPAGCUHSBQZBKMKC
support.apple.com/kb/HT213183
support.apple.com/kb/HT213182
support.apple.com/kb/HT213193
Show 38 moreShow less
seclists.org/fulldisclosure/2022/Mar/28
seclists.org/fulldisclosure/2022/Mar/29
seclists.org/fulldisclosure/2022/Mar/27
security.gentoo.org/glsa/202208-26
lists.debian.org/debian-lts-announce/2024/11/msg00007.html
nvd.nist.gov/vuln/detail/CVE-2021-36976
lists.fedoraproject.org/archives/list/[email protected]/message/SE5NJQNM22ZE5Z55LPAGCUHSBQZBKMKC
github.com/advisories/GHSA-4fxq-mcvv-8fqm
security.alpinelinux.org/vuln/CVE-2021-36976
docs.bell-sw.com/security/cves/CVE-2021-36976
security-tracker.debian.org/tracker/CVE-2021-36976
advisories.mageia.org/MGASA-2022-0060.html
bugs.mageia.org/show_bug.cgi?id=30023
github.com/libarchive/libarchive/releases/tag/v3.5.3
openeuler.org/en/security/safety-bulletin/detail.html?id=openEuler-SA-2021-1398
access.redhat.com/errata/RHBA-2022:3897
access.redhat.com/documentation/en-us/red_hat_enterprise_linux/9/html/9.0_release_notes/index
bugzilla.redhat.com/show_bug.cgi?id=1996634
security.access.redhat.com/data/csaf/v2/advisories/2022/rhba-2022_3897.json
access.redhat.com/security/cve/CVE-2021-36976
bugzilla.redhat.com/show_bug.cgi?id=1984646
cve.org/CVERecord?id=CVE-2021-36976
suse.com/support/update/announcement/2022/suse-su-20220944-1
bugzilla.suse.com/1022528
bugzilla.suse.com/1188572
bugzilla.suse.com/1189528
suse.com/security/cve/CVE-2017-5601
suse.com/security/cve/CVE-2021-36976
suse.com/support/update/announcement/2022/suse-su-20220944-2
suse.com/support/update/announcement/2022/suse-su-20221930-1
bugzilla.suse.com/1197634
suse.com/security/cve/CVE-2022-26280
ubuntu.com/security/CVE-2021-36976
ubuntu.com/security/notices/USN-5291-1
ubuntu.com/security/CVE-2021-23177
ubuntu.com/security/CVE-2021-31566
lists.opensuse.org/archives/list/[email protected]/thread/2GOSOUIKGPKMNRIKY4M2SLF54G6W2YC4
suse.com/security/cve/CVE-2021-31566