{"id":"CVE-2016-4302","details":"Heap-based buffer overflow in the parse_codes function in archive_read_support_format_rar.c in libarchive before 3.2.1 allows remote attackers to execute arbitrary code via a RAR file with a zero-sized dictionary.","modified":"2026-08-07T14:49:09.617720Z","published":"2016-09-21T14:25:04.517Z","related":["SUSE-SU-2016:1909-1"],"database_specific":{"unresolved_ranges":[{"cpes":["cpe:2.3:o:redhat:enterprise_linux_desktop:7.0:*:*:*:*:*:*:*"],"extracted_events":[{"introduced":"7.0"},{"last_affected":"7.0"}],"source":"CPE_STRING","vendor_product":"redhat:enterprise_linux_desktop"},{"vendor_product":"redhat:enterprise_linux_hpc_node","cpes":["cpe:2.3:o:redhat:enterprise_linux_hpc_node:7.0:*:*:*:*:*:*:*"],"extracted_events":[{"introduced":"7.0"},{"last_affected":"7.0"}],"source":"CPE_STRING"},{"source":"CPE_STRING","vendor_product":"redhat:enterprise_linux_hpc_node_eus","cpes":["cpe:2.3:o:redhat:enterprise_linux_hpc_node_eus:7.2:*:*:*:*:*:*:*"],"extracted_events":[{"introduced":"7.2"},{"last_affected":"7.2"}]},{"source":"CPE_STRING","vendor_product":"redhat:enterprise_linux_server","cpes":["cpe:2.3:o:redhat:enterprise_linux_server:7.0:*:*:*:*:*:*:*"],"extracted_events":[{"introduced":"7.0"},{"last_affected":"7.0"}]},{"cpes":["cpe:2.3:o:redhat:enterprise_linux_server_aus:7.2:*:*:*:*:*:*:*"],"extracted_events":[{"introduced":"7.2"},{"last_affected":"7.2"}],"source":"CPE_STRING","vendor_product":"redhat:enterprise_linux_server_aus"},{"cpes":["cpe:2.3:o:redhat:enterprise_linux_server_eus:7.2:*:*:*:*:*:*:*"],"extracted_events":[{"introduced":"7.2"},{"last_affected":"7.2"}],"source":"CPE_STRING","vendor_product":"redhat:enterprise_linux_server_eus"},{"cpes":["cpe:2.3:o:redhat:enterprise_linux_workstation:7.0:*:*:*:*:*:*:*"],"extracted_events":[{"introduced":"7.0"},{"last_affected":"7.0"}],"source":"CPE_STRING","vendor_product":"redhat:enterprise_linux_workstation"}]},"references":[{"type":"WEB","url":"http://www.oracle.com/technetwork/topics/security/bulletinjul2016-3090568.html"},{"type":"WEB","url":"http://www.oracle.com/technetwork/topics/security/linuxbulletinjul2016-3090544.html"},{"type":"ADVISORY","url":"http://rhn.redhat.com/errata/RHSA-2016-1844.html"},{"type":"ADVISORY","url":"http://www.debian.org/security/2016/dsa-3657"},{"type":"ADVISORY","url":"http://www.securityfocus.com/bid/91331"},{"type":"ADVISORY","url":"https://security.gentoo.org/glsa/201701-03"},{"type":"REPORT","url":"http://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=1348444"},{"type":"FIX","url":"https://github.com/libarchive/libarchive/commit/05caadc7eedbef471ac9610809ba683f0c698700"},{"type":"FIX","url":"https://github.com/libarchive/libarchive/issues/719"},{"type":"EVIDENCE","url":"http://blog.talosintel.com/2016/06/the-poisoned-archives.html"},{"type":"EVIDENCE","url":"http://www.talosintel.com/reports/TALOS-2016-0154/"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/libarchive/libarchive","events":[{"introduced":"0"},{"last_affected":"167e97be1d35c1e0947d768adbf94712244aad6b"},{"fixed":"05caadc7eedbef471ac9610809ba683f0c698700"}],"database_specific":{"cpe":"cpe:2.3:a:libarchive:libarchive:*:*:*:*:*:*:*:*","extracted_events":[{"introduced":"0"},{"last_affected":"3.2.0"}],"source":["CPE_RANGE","REFERENCES"]}}],"versions":["v3.2.0","v3.1.900a","v3.0.1b","v3.0.0a"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2016-4302.json","vanir_signatures_modified":"2026-08-07T14:49:09Z","vanir_signatures":[{"digest":{"function_hash":"297510741690200676578543826215927548601","length":6430},"id":"CVE-2016-4302-3903f264","signature_type":"Function","signature_version":"v1","source":"https://github.com/libarchive/libarchive/commit/05caadc7eedbef471ac9610809ba683f0c698700","target":{"file":"libarchive/archive_read_support_format_rar.c","function":"parse_codes"},"deprecated":false},{"deprecated":false,"digest":{"line_hashes":["246565802277398610842427763265886724405","269429852712907734954635047388062957012","192885178850317703560125968378055403273"],"threshold":0.9},"id":"CVE-2016-4302-cd2b8b72","signature_type":"Line","signature_version":"v1","source":"https://github.com/libarchive/libarchive/commit/05caadc7eedbef471ac9610809ba683f0c698700","target":{"file":"libarchive/archive_read_support_format_rar.c"}}]}}],"schema_version":"1.8.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H"}]}