{"schemaVersion":3,"id":"CVE-2021-36976","aliases":["ALPINE-CVE-2021-36976","RHBA-2022:3897","UBUNTU-CVE-2021-36976","DEBIAN-CVE-2021-36976"],"status":"published","duplicateOf":null,"title":null,"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).","dates":{"published":"2021-07-20T06:49:15.000Z","modified":"2025-11-03T21:45:04.640Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":6.5,"severity":"medium","version":"3.1","versionLabel":"v3.1","source":"NVD","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"OSV · Alpine","score":6.5,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H","exploitability":7.2,"impact":6,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Red hat","score":6.5,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H","exploitability":7.2,"impact":6,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Ubuntu","score":6.5,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H","exploitability":7.2,"impact":6,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Debian","score":6.5,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H","exploitability":7.2,"impact":6,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":6.5,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H","exploitability":null,"impact":null,"computed":false},{"version":"2.0","versionLabel":"v2.0","source":"NVD","score":4.3,"severity":"medium","vector":"AV:N/AC:M/Au:N/C:N/I:N/A:P","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.02845,"percentile":0.86492,"severity":"low","asOf":"2026-10-19T00:00:00.000Z","change":{"pp":0,"baselineDate":"2026-09-19T00:00:00.000Z","baselineScore":0.02845},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.02845,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.02845,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.02845,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.02845,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.02845,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.02845,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.02845,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.02845,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.02845,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.02845,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.02845,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.02845,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.02845,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.02845,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.02845,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.02845,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.02845,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.02845,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.02845,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.02845,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.02845,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.02845,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.02845,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.02845,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.02845,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.02845,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.02845,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.02845,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.02845,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.02845,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.02845,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.02845,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.02845,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.02845,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.02845,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.02845,"percentile":0.86492}],"last30":[{"date":"2026-09-19T00:00:00.000Z","score":0.02845,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.02845,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.02845,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.02845,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.02845,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.02845,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.02845,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.02845,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.02845,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.02845,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.02845,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.02845,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.02845,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.02845,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.02845,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.02845,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.02845,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.02845,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.02845,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.02845,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.02845,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.02845,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.02845,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.02845,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.02845,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.02845,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.02845,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.02845,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.02845,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.02845,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.02845,"percentile":0.86492}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[],"exploitCount":0,"weaknesses":[{"id":"CWE-416","name":"Use After Free","description":"The product reuses or references memory after it has been freed. At some point afterward, the memory may be allocated again and saved in another pointer, while the original pointer references a location somewhere within the new allocation. Any operations using the original pointer are no longer valid because the memory \"belongs\" to the code that operates on the new pointer.","type":"weakness","status":"Stable","abstraction":"Variant","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/416.html"}],"affected":[{"vendor":"alpine","product":"libarchive","name":"libarchive","label":"libarchive","ecosystem":"Alpine Linux","cpePart":null,"purl":"pkg:apk/alpine/libarchive","purlType":"apk","versions":[{"text":"≥ 3.4.1, < 3.5.3-r0","noFixRecorded":false,"fixedIn":null},{"text":"≥ 3.4.1, < 3.6.0-r0","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 3.4.1, < 3.5.3-r0 | ≥ 3.4.1, < 3.6.0-r0","eol":null,"hubHref":null},{"vendor":"apple","product":"ipados","name":"ipados","label":"ipados","ecosystem":null,"cpePart":"o","purl":null,"purlType":null,"versions":[{"text":"< 15.4","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 15.4","eol":{"isEol":null,"eolDate":null,"matchMethod":"cpe","cycle":null,"product":{"name":"ipados","label":"Apple iPadOS","category":"os"}},"hubHref":"/vendor/apple/ipados"},{"vendor":"apple","product":"iphone_os","name":"iphone os","label":"iphone_os","ecosystem":null,"cpePart":"o","purl":null,"purlType":null,"versions":[{"text":"< 15.4","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 15.4","eol":{"isEol":null,"eolDate":null,"matchMethod":"cpe","cycle":null,"product":{"name":"ios","label":"Apple iOS","category":"os"}},"hubHref":"/vendor/apple/iphone_os"},{"vendor":"apple","product":"macos","name":"macOS","label":"macos","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"< 12.3","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 12.3","eol":{"isEol":null,"eolDate":null,"matchMethod":"cpe","cycle":null,"product":{"name":"macos","label":"Apple macOS","category":"os"}},"hubHref":"/vendor/apple/macos"},{"vendor":"apple","product":"watchos","name":"watchOS","label":"watchos","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"< 8.5","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 8.5","eol":null,"hubHref":"/vendor/apple/watchos"},{"vendor":"debian","product":"libarchive","name":"libarchive","label":"libarchive","ecosystem":"Debian","cpePart":null,"purl":"pkg:deb/debian/libarchive","purlType":"deb","versions":[{"text":"< 3.6.0-1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 3.6.0-1","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"libarchive","name":"libarchive","label":"libarchive","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/libarchive","purlType":"deb","versions":[{"text":"< 3.4.0-2ubuntu1.1","noFixRecorded":false,"fixedIn":null},{"text":"< 3.5.2-1ubuntu1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 3.4.0-2ubuntu1.1 | < 3.5.2-1ubuntu1","eol":null,"hubHref":null},{"vendor":"fedoraproject","product":"fedora","name":"fedora","label":"fedora","ecosystem":null,"cpePart":"o","purl":null,"purlType":null,"versions":[{"text":"35","noFixRecorded":false,"fixedIn":null}],"versionsText":"35","eol":{"isEol":true,"eolDate":"2022-12-13T00:00:00.000Z","matchMethod":"cpe","cycle":{"name":"35","label":"35","eolFrom":"2022-12-13T00:00:00.000Z","isLts":false,"isMaintained":false,"latestVersion":null},"product":{"name":"fedora","label":"Fedora Linux","category":"os"}},"hubHref":"/vendor/fedoraproject/fedora"},{"vendor":"libarchive","product":"libarchive","name":"libarchive","label":"libarchive","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≥ 3.4.1, ≤ 3.5.2","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 3.4.1, ≤ 3.5.2","eol":null,"hubHref":"/vendor/libarchive/libarchive"},{"vendor":"redhat","product":"bsdcat-debuginfo","name":"bsdcat-debuginfo","label":"bsdcat-debuginfo","ecosystem":"Red Hat","cpePart":null,"purl":"pkg:rpm/redhat/bsdcat-debuginfo","purlType":"rpm","versions":[{"text":"< 0:3.5.3-1.el9","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 0:3.5.3-1.el9","eol":null,"hubHref":null},{"vendor":"redhat","product":"bsdcpio-debuginfo","name":"bsdcpio-debuginfo","label":"bsdcpio-debuginfo","ecosystem":"Red Hat","cpePart":null,"purl":"pkg:rpm/redhat/bsdcpio-debuginfo","purlType":"rpm","versions":[{"text":"< 0:3.5.3-1.el9","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 0:3.5.3-1.el9","eol":null,"hubHref":null},{"vendor":"redhat","product":"bsdtar","name":"bsdtar","label":"bsdtar","ecosystem":"Red Hat","cpePart":null,"purl":"pkg:rpm/redhat/bsdtar","purlType":"rpm","versions":[{"text":"< 0:3.5.3-1.el9","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 0:3.5.3-1.el9","eol":null,"hubHref":null},{"vendor":"redhat","product":"bsdtar-debuginfo","name":"bsdtar-debuginfo","label":"bsdtar-debuginfo","ecosystem":"Red Hat","cpePart":null,"purl":"pkg:rpm/redhat/bsdtar-debuginfo","purlType":"rpm","versions":[{"text":"< 0:3.5.3-1.el9","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 0:3.5.3-1.el9","eol":null,"hubHref":null},{"vendor":"redhat","product":"libarchive","name":"libarchive","label":"libarchive","ecosystem":"Red Hat","cpePart":null,"purl":"pkg:rpm/redhat/libarchive","purlType":"rpm","versions":[{"text":"< 0:3.5.3-1.el9","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 0:3.5.3-1.el9","eol":null,"hubHref":null},{"vendor":"redhat","product":"libarchive-debuginfo","name":"libarchive-debuginfo","label":"libarchive-debuginfo","ecosystem":"Red Hat","cpePart":null,"purl":"pkg:rpm/redhat/libarchive-debuginfo","purlType":"rpm","versions":[{"text":"< 0:3.5.3-1.el9","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 0:3.5.3-1.el9","eol":null,"hubHref":null},{"vendor":"redhat","product":"libarchive-debugsource","name":"libarchive-debugsource","label":"libarchive-debugsource","ecosystem":"Red Hat","cpePart":null,"purl":"pkg:rpm/redhat/libarchive-debugsource","purlType":"rpm","versions":[{"text":"< 0:3.5.3-1.el9","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 0:3.5.3-1.el9","eol":null,"hubHref":null},{"vendor":"redhat","product":"libarchive-devel","name":"libarchive-devel","label":"libarchive-devel","ecosystem":"Red Hat","cpePart":null,"purl":"pkg:rpm/redhat/libarchive-devel","purlType":"rpm","versions":[{"text":"< 0:3.5.3-1.el9","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 0:3.5.3-1.el9","eol":null,"hubHref":null},{"vendor":"splunk","product":"universal_forwarder","name":"universal forwarder","label":"universal_forwarder","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≥ 8.2.0, < 8.2.12","noFixRecorded":false,"fixedIn":null},{"text":"≥ 9.0.0, < 9.0.6","noFixRecorded":false,"fixedIn":null},{"text":"9.1.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 8.2.0, < 8.2.12 | ≥ 9.0.0, < 9.0.6 | 9.1.0","eol":null,"hubHref":"/vendor/splunk/universal_forwarder"}],"affectedCount":18,"eol":{"hasEol":true,"count":1},"references":[{"url":"https://github.com/google/oss-fuzz-vulns/blob/main/vulns/libarchive/OSV-2021-557.yaml","label":"github.com/google/oss-fuzz-vulns/blob/main/vulns/libarchive/OSV-2021-557.yaml","hostname":"github.com","tags":["X Refsource MISC","REPORT","Third Party Advisory"]},{"url":"https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=32375","label":"bugs.chromium.org/p/oss-fuzz/issues/detail?id=32375","hostname":"bugs.chromium.org","tags":["X Refsource MISC","Issue Tracking","Third Party Advisory"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/SE5NJQNM22ZE5Z55LPAGCUHSBQZBKMKC/","label":"lists.fedoraproject.org/archives/…","hostname":"lists.fedoraproject.org","tags":["Vendor Advisory","X Refsource FEDORA","Mailing List","Third Party Advisory"]},{"url":"https://support.apple.com/kb/HT213183","label":"support.apple.com/kb/HT213183","hostname":"support.apple.com","tags":["X Refsource CONFIRM","Third Party Advisory"]},{"url":"https://support.apple.com/kb/HT213182","label":"support.apple.com/kb/HT213182","hostname":"support.apple.com","tags":["X Refsource CONFIRM","Third Party Advisory"]},{"url":"https://support.apple.com/kb/HT213193","label":"support.apple.com/kb/HT213193","hostname":"support.apple.com","tags":["X Refsource CONFIRM","Third Party Advisory"]},{"url":"http://seclists.org/fulldisclosure/2022/Mar/28","label":"seclists.org/fulldisclosure/2022/Mar/28","hostname":"seclists.org","tags":["Mailing List","X Refsource FULLDISC","Third Party Advisory"]},{"url":"http://seclists.org/fulldisclosure/2022/Mar/29","label":"seclists.org/fulldisclosure/2022/Mar/29","hostname":"seclists.org","tags":["Mailing List","X Refsource FULLDISC","Third Party Advisory"]},{"url":"http://seclists.org/fulldisclosure/2022/Mar/27","label":"seclists.org/fulldisclosure/2022/Mar/27","hostname":"seclists.org","tags":["Mailing List","X Refsource FULLDISC","Third Party Advisory"]},{"url":"https://security.gentoo.org/glsa/202208-26","label":"security.gentoo.org/glsa/202208-26","hostname":"security.gentoo.org","tags":["Vendor Advisory","X Refsource GENTOO","Third Party Advisory"]},{"url":"https://lists.debian.org/debian-lts-announce/2024/11/msg00007.html","label":"lists.debian.org/debian-lts-announce/2024/11/msg00007.html","hostname":"lists.debian.org","tags":[]},{"url":"https://security.alpinelinux.org/vuln/CVE-2021-36976","label":"security.alpinelinux.org/vuln/CVE-2021-36976","hostname":"security.alpinelinux.org","tags":["Advisory"]},{"url":"https://access.redhat.com/errata/RHBA-2022:3897","label":"access.redhat.com/errata/RHBA-2022:3897","hostname":"access.redhat.com","tags":["Advisory"]},{"url":"https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/9/html/9.0_release_notes/index","label":"access.redhat.com/documentation/en-us/red_hat_enterprise_linux/9/html/9.0_release_notes/index","hostname":"access.redhat.com","tags":["ARTICLE"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=1996634","label":"bugzilla.redhat.com/show_bug.cgi?id=1996634","hostname":"bugzilla.redhat.com","tags":["REPORT"]},{"url":"https://security.access.redhat.com/data/csaf/v2/advisories/2022/rhba-2022_3897.json","label":"security.access.redhat.com/data/csaf/v2/advisories/2022/rhba-2022_3897.json","hostname":"security.access.redhat.com","tags":["Advisory"]},{"url":"https://access.redhat.com/security/cve/CVE-2021-36976","label":"access.redhat.com/security/cve/CVE-2021-36976","hostname":"access.redhat.com","tags":["REPORT"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=1984646","label":"bugzilla.redhat.com/show_bug.cgi?id=1984646","hostname":"bugzilla.redhat.com","tags":["REPORT"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2021-36976","label":"www.cve.org/CVERecord?id=CVE-2021-36976","hostname":"www.cve.org","tags":["Advisory","REPORT"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-36976","label":"nvd.nist.gov/vuln/detail/CVE-2021-36976","hostname":"nvd.nist.gov","tags":["Advisory","Oval"]},{"url":"https://ubuntu.com/security/CVE-2021-36976","label":"ubuntu.com/security/CVE-2021-36976","hostname":"ubuntu.com","tags":["REPORT"]},{"url":"https://ubuntu.com/security/notices/USN-5291-1","label":"ubuntu.com/security/notices/USN-5291-1","hostname":"ubuntu.com","tags":["Advisory"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2021-36976","label":"security-tracker.debian.org/tracker/CVE-2021-36976","hostname":"security-tracker.debian.org","tags":["Advisory"]}],"lineage":{"upstream":[],"downstream":["DLA-3950-1","MGASA-2022-0060","OPENSUSE-SU-2022:0944-1","OPENSUSE-SU-2024:11894-1","SUSE-SU-2022:0944-1","SUSE-SU-2022:0944-2","SUSE-SU-2022:1930-1","USN-5291-1"],"duplicates":[],"related":["OPENSUSE-SU-2022:0944-1","OPENSUSE-SU-2024:11894-1","SUSE-SU-2022:0944-1","SUSE-SU-2022:0944-2","SUSE-SU-2022:1930-1","USN-5291-1"]},"timeline":[{"kind":"published","date":"2021-07-20T06:49:15.000Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2025-11-03T21:45:04.640Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":27,"level":"medium","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-20T11:52:44.584Z","stale":false,"partial":false}}