CVE-2021-36976
JSON

6.5medium

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

Severity
6.5medium CVSS:3.1 by NVD
Exploit likelihood
2.84% (higher than 87% of CVEs; EPSS, by FIRST)
Published
Last changed
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).

Affected

Product or packageVersionsReported by
Unspecified productn/aCVE List
libarchive libarchivefrom 3.4.1 up to 3.5.2NVD
fedoraproject fedora35NVD
apple ipadosbefore 15.4NVD
apple iphone_osbefore 15.4NVD
apple macosbefore 12.3NVD
apple watchosbefore 8.5NVD
splunk universal_forwarderfrom 8.2.0 before 8.2.12, from 9.0.0 before 9.0.6, 9.1.0NVD

All scores

NVD6.5medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
NVD4.3medium CVSS:2.0AV:N/AC:M/Au:N/C:N/I:N/A:P

Classification

CWE-416

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

What each source says

CVE List

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

NVD (es)

libarchive versiones 3.4.1 hasta 3.5.1, presenta un uso de memoria previamente liberada en la función copy_string (llamado desde do_uncompress_block y process_block)

References

https://github.com/google/oss-fuzz-vulns/blob/main/vulns/libarchive/OSV-2021-557.yamlthird-party-advisory
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=32375issue-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/HT213183third-party-advisory
https://support.apple.com/kb/HT213182third-party-advisory
https://support.apple.com/kb/HT213193third-party-advisory
http://seclists.org/fulldisclosure/2022/Mar/28mailing-list, third-party-advisory
http://seclists.org/fulldisclosure/2022/Mar/29mailing-list, third-party-advisory
http://seclists.org/fulldisclosure/2022/Mar/27mailing-list, third-party-advisory
https://security.gentoo.org/glsa/202208-26third-party-advisory, vendor-advisory
https://lists.debian.org/debian-lts-announce/2024/11/msg00007.html

Sources

SourceRecordLicence
CVE ListCVE-2021-36976 changed 2026-11-02CVE Terms of Use
NVDCVE-2021-36976 changed 2026-11-02Public domain