# CVE-2021-36976: libarchive 3.4.1 through 3.5.1 has a use-after-free in copystring (called from douncompressblock and processblock).

- Severity: Medium 6.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 2.84%, higher than 87% of CVEs (2026-12-01)
- Published: 2021-07-20T06:49:15.000Z
- Modified: 2026-11-02T19:17:43.830Z
- Weaknesses: CWE-416
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: mitre

## Description

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

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- libarchive libarchive: from 3.4.1 up to 3.5.2
- fedoraproject fedora: 35
- apple ipados: before 15.4
- apple iphone_os: before 15.4
- apple macos: before 12.3
- apple watchos: before 8.5
- splunk universal_forwarder: from 8.2.0 before 8.2.12; from 9.0.0 before 9.0.6; 9.1.0

## Every score

- NVD: 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`
- NVD: CVSS:2.0 4.3 Medium `AV:N/AC:M/Au:N/C:N/I:N/A:P`

## References

- <https://github.com/google/oss-fuzz-vulns/blob/main/vulns/libarchive/OSV-2021-557.yaml> (third-party-advisory)
- <https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=32375> (issue-tracking, third-party-advisory)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/SE5NJQNM22ZE5Z55LPAGCUHSBQZBKMKC/> (mailing-list, third-party-advisory, vendor-advisory)
- <https://support.apple.com/kb/HT213183> (third-party-advisory)
- <https://support.apple.com/kb/HT213182> (third-party-advisory)
- <https://support.apple.com/kb/HT213193> (third-party-advisory)
- <http://seclists.org/fulldisclosure/2022/Mar/28> (mailing-list, third-party-advisory)
- <http://seclists.org/fulldisclosure/2022/Mar/29> (mailing-list, third-party-advisory)
- <http://seclists.org/fulldisclosure/2022/Mar/27> (mailing-list, third-party-advisory)
- <https://security.gentoo.org/glsa/202208-26> (third-party-advisory, vendor-advisory)
- <https://lists.debian.org/debian-lts-announce/2024/11/msg00007.html>

## Sources

- CVE List: [CVE-2021-36976](https://www.cve.org/CVERecord?id=CVE-2021-36976), CVE Terms of Use, modified 2026-11-02
- NVD: [CVE-2021-36976](https://nvd.nist.gov/vuln/detail/CVE-2021-36976), Public domain, modified 2026-11-02

---

Page: https://cve.day/CVE-2021-36976 · Whole record: https://cve.day/CVE-2021-36976.json · Rebuilt by cve.day 2026-11-25T22:58:02.737Z
