{"id":"UBUNTU-CVE-2021-36976","details":"libarchive 3.4.1 through 3.5.1 has a use-after-free in copy_string (called from do_uncompress_block and process_block).","modified":"2026-04-22T12:57:16.362015Z","published":"2021-07-20T07:15:00Z","related":["USN-5291-1"],"upstream":["CVE-2021-36976"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2021-36976"},{"type":"REPORT","url":"https://github.com/google/oss-fuzz-vulns/blob/main/vulns/libarchive/OSV-2021-557.yaml"},{"type":"ADVISORY","url":"https://ubuntu.com/security/notices/USN-5291-1"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2021-36976"}],"affected":[{"package":{"name":"libarchive","ecosystem":"Ubuntu:20.04:LTS","purl":"pkg:deb/ubuntu/libarchive@3.4.0-2ubuntu1.1?arch=source&distro=focal"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.4.0-2ubuntu1.1"}]}],"versions":["3.4.0-1","3.4.0-1build1","3.4.0-1ubuntu2","3.4.0-2ubuntu1"],"ecosystem_specific":{"availability":"No subscription required","binaries":[{"binary_name":"libarchive-tools","binary_version":"3.4.0-2ubuntu1.1"},{"binary_name":"libarchive13","binary_version":"3.4.0-2ubuntu1.1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-36976.json"}},{"package":{"name":"libarchive","ecosystem":"Ubuntu:22.04:LTS","purl":"pkg:deb/ubuntu/libarchive@3.5.2-1ubuntu1?arch=source&distro=jammy"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.5.2-1ubuntu1"}]}],"versions":["3.4.3-2","3.4.3-2build1","3.5.2-1"],"ecosystem_specific":{"availability":"No subscription required","binaries":[{"binary_name":"libarchive-tools","binary_version":"3.5.2-1ubuntu1"},{"binary_name":"libarchive13","binary_version":"3.5.2-1ubuntu1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-36976.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H"},{"type":"Ubuntu","score":"medium"}]}