{"id":"CVE-2016-4301","aliases":["DEBIAN-CVE-2016-4301","EUVD-2016-5301","GHSA-r3m8-9hr7-7xwr","MGASA-2016-0239","SUSE-SU-2016:1909-1","UBUNTU-CVE-2016-4301","openSUSE-SU-2024:10127-1"],"status":"published","title":"Stack-based buffer overflow in the parse_device function in archive_read_support_format_mtree.c...","description":"Stack-based buffer overflow in the parse_device function in archive_read_support_format_mtree.c in libarchive before 3.2.1 allows remote attackers to execute arbitrary code via a crafted mtree file.","severity":{"version":"3.0","score":7.8,"vector":"CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","level":"high","assessor":"primary","from":"nvd"},"epss":{"day":"2026-11-07","score":0.03716,"percentile":0.89847,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-119"],"published":"2016-07-05T15:47:08Z","modified":"2026-10-20T13:12:46Z","fixes":[{"ecosystem":"Debian:12","package":"libarchive","fixed_in":["3.2.1-1"],"sources":["osv"]},{"ecosystem":"Debian:13","package":"libarchive","fixed_in":["3.2.1-1"],"sources":["osv"]},{"ecosystem":"Debian:14","package":"libarchive","fixed_in":["3.2.1-1"],"sources":["osv"]}],"affected":[{"source":"osv","ecosystem":"Debian:12","package":"libarchive","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.2.1-1"}]}]},{"source":"osv","ecosystem":"Debian:13","package":"libarchive","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.2.1-1"}]}]},{"source":"osv","ecosystem":"Debian:14","package":"libarchive","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.2.1-1"}]}]},{"source":"osv","ecosystem":"Mageia:5","package":"libarchive","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.2.1-1.mga5"}]}],"bundled":4},{"source":"osv","ecosystem":"SUSE:Linux Enterprise Desktop 12 SP1","package":"libarchive","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.1.2-22.1"}]}],"bundled":20},{"source":"osv","ecosystem":"SUSE:Linux Enterprise Software Development Kit 12 SP1","package":"libarchive","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.1.2-22.1"}]}],"bundled":20},{"source":"osv","ecosystem":"SUSE:Linux Enterprise Server 12 SP1","package":"libarchive","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.1.2-22.1"}]}],"bundled":20},{"source":"osv","ecosystem":"SUSE:Linux Enterprise Server for SAP Applications 12 SP1","package":"libarchive","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.1.2-22.1"}]}],"bundled":20},{"source":"osv","ecosystem":"openSUSE:Tumbleweed","package":"bsdtar","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.2.2-2.1"}]}],"bundled":16}],"products":[{"vendor":"libarchive","product":"libarchive"}],"references":[{"url":"http://www.securityfocus.com/bid/91328","tags":["vdb-entry","x_refsource_BID","x_transferred","web"]},{"url":"https://github.com/libarchive/libarchive/issues/715","tags":["x_refsource_CONFIRM","x_transferred","Issue Tracking","Patch","fix"]},{"url":"http://blog.talosintel.com/2016/06/the-poisoned-archives.html","tags":["x_refsource_MISC","x_transferred","Exploit","Third Party Advisory","evidence","report"]},{"url":"https://github.com/libarchive/libarchive/commit/a550daeecf6bc689ade371349892ea17b5b97c77","tags":["x_refsource_CONFIRM","x_transferred","Issue Tracking","Patch","fix"]},{"url":"http://www.talosintel.com/reports/TALOS-2016-0153/","tags":["x_refsource_MISC","x_transferred","Exploit","Third Party Advisory","evidence","report"]},{"url":"http://www.oracle.com/technetwork/topics/security/bulletinjul2016-3090568.html","tags":["x_refsource_CONFIRM","x_transferred","web"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=1348441","tags":["x_refsource_CONFIRM","x_transferred","Issue Tracking","report"]},{"url":"https://security.gentoo.org/glsa/201701-03","tags":["vendor-advisory","x_refsource_GENTOO","x_transferred","advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2016-4301"},{"url":"http://www.talosintel.com/reports/TALOS-2016-0153","tags":["web"]},{"url":"https://github.com/advisories/GHSA-r3m8-9hr7-7xwr"},{"url":"https://security-tracker.debian.org/tracker/CVE-2016-4301","tags":["advisory"]},{"url":"https://advisories.mageia.org/MGASA-2016-0239.html","tags":["advisory"]},{"url":"https://bugs.mageia.org/show_bug.cgi?id=18769","tags":["report"]},{"url":"https://github.com/libarchive/libarchive/issues/521","tags":["report"]},{"url":"http://www.talosintel.com/reports/TALOS-2016-0152","tags":["web"]},{"url":"http://www.talosintel.com/reports/TALOS-2016-0154","tags":["web"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=1349229","tags":["report"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=1348439","tags":["report"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=1348444","tags":["report"]},{"url":"http://openwall.com/lists/oss-security/2016/06/23/6","tags":["web"]},{"url":"https://groups.google.com/forum/#!msg/libarchive-discuss/sui01WaM3ic/WhAgI4ylAwAJ","tags":["web"]},{"url":"http://openwall.com/lists/oss-security/2016/06/24/4","tags":["web"]},{"url":"https://www.suse.com/support/update/announcement/2016/suse-su-20161909-1/","tags":["advisory"]},{"url":"https://bugzilla.suse.com/984990","tags":["report"]},{"url":"https://bugzilla.suse.com/985609","tags":["report"]},{"url":"https://bugzilla.suse.com/985665","tags":["report"]},{"url":"https://bugzilla.suse.com/985669","tags":["report"]},{"url":"https://bugzilla.suse.com/985673","tags":["report"]},{"url":"https://bugzilla.suse.com/985675","tags":["report"]},{"url":"https://bugzilla.suse.com/985679","tags":["report"]},{"url":"https://bugzilla.suse.com/985682","tags":["report"]},{"url":"https://bugzilla.suse.com/985685","tags":["report"]},{"url":"https://bugzilla.suse.com/985688","tags":["report"]},{"url":"https://bugzilla.suse.com/985689","tags":["report"]},{"url":"https://bugzilla.suse.com/985697","tags":["report"]},{"url":"https://bugzilla.suse.com/985698","tags":["report"]},{"url":"https://bugzilla.suse.com/985700","tags":["report"]},{"url":"https://bugzilla.suse.com/985703","tags":["report"]},{"url":"https://bugzilla.suse.com/985704","tags":["report"]},{"url":"https://bugzilla.suse.com/985706","tags":["report"]},{"url":"https://bugzilla.suse.com/985826","tags":["report"]},{"url":"https://bugzilla.suse.com/985832","tags":["report"]},{"url":"https://bugzilla.suse.com/985835","tags":["report"]},{"url":"https://www.suse.com/security/cve/CVE-2015-8918","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2015-8919","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2015-8920","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2015-8921","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2015-8922","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2015-8923","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2015-8924","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2015-8925","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2015-8926","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2015-8928","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2015-8929","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2015-8930","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2015-8931","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2015-8932","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2015-8933","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2015-8934","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2016-4300","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2016-4301","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2016-4302","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2016-4809","tags":["web"]},{"url":"https://ubuntu.com/security/CVE-2016-4301","tags":["report"]},{"url":"https://github.com/libarchive/libarchive/pull/715","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2016-4301","tags":["report"]},{"url":"","tags":["advisory"]},{"url":"https://www.suse.com/security/cve/CVE-2013-0211","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2015-2304","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2015-8917","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2016-1541","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2016-5418","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2016-5844","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2016-6250","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2016-8687","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2016-8688","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2016-8689","tags":["web"]}],"sources":{"cve":[{"id":"CVE-2016-4301","description":"Stack-based buffer overflow in the parse_device function in archive_read_support_format_mtree.c in libarchive before 3.2.1 allows remote attackers to execute arbitrary code via a crafted mtree file.","status":"published","published":"2016-09-21T14:00:00Z","modified":"2024-08-06T00:25:14.354Z","updated_at":"2026-11-02T14:33:35.149563Z"}],"euvd":[{"id":"EUVD-2016-5301","description":"Stack-based buffer overflow in the parse_device function in archive_read_support_format_mtree.c in libarchive before 3.2.1 allows remote attackers to execute arbitrary code via a crafted mtree file.","status":"published","published":"2016-09-21T14:00:00Z","modified":"2024-08-06T00:25:14Z","updated_at":"2026-11-03T02:22:47.294859Z"}],"ghsa":[{"id":"GHSA-r3m8-9hr7-7xwr","title":"Stack-based buffer overflow in the parse_device function in archive_read_support_format_mtree.c...","description":"Stack-based buffer overflow in the parse_device function in archive_read_support_format_mtree.c in libarchive before 3.2.1 allows remote attackers to execute arbitrary code via a crafted mtree file.","status":"published","published":"2022-05-17T02:37:30Z","modified":"2025-04-12T13:04:25Z","cvss":[{"version":"3.0","score":7.8,"vector":"CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","level":"high"}],"cwes":["CWE-119"],"updated_at":"2026-11-02T15:01:29.190007Z"}],"nvd":[{"id":"CVE-2016-4301","description":"Stack-based buffer overflow in the parse_device function in archive_read_support_format_mtree.c in libarchive before 3.2.1 allows remote attackers to execute arbitrary code via a crafted mtree file.","status":"published","published":"2016-09-21T14:25:03.377Z","modified":"2026-06-17T00:47:18.76Z","cvss":[{"version":"3.0","score":7.8,"vector":"CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","level":"high","assessor":"primary"},{"version":"2.0","score":6.8,"vector":"AV:N/AC:M/Au:N/C:P/I:P/A:P","level":"medium","assessor":"primary"}],"cwes":["CWE-119"],"updated_at":"2026-11-02T14:03:29.893676Z"}],"osv":[{"id":"CVE-2016-4301","description":"Stack-based buffer overflow in the parse_device function in archive_read_support_format_mtree.c in libarchive before 3.2.1 allows remote attackers to execute arbitrary code via a crafted mtree file.","status":"published","published":"2016-09-21T14:25:03.377Z","modified":"2026-10-20T13:12:46.733224656Z","cvss":[{"version":"3.0","score":7.8,"vector":"CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","level":"high"}],"updated_at":"2026-11-02T15:44:02.454775Z"},{"id":"DEBIAN-CVE-2016-4301","description":"Stack-based buffer overflow in the parse_device function in archive_read_support_format_mtree.c in libarchive before 3.2.1 allows remote attackers to execute arbitrary code via a crafted mtree file.","status":"published","published":"2016-09-21T14:25:03.377Z","modified":"2026-09-22T07:03:06.776799118Z","cvss":[{"version":"3.0","score":7.8,"vector":"CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","level":"high"}],"updated_at":"2026-11-02T15:45:27.627285Z"},{"id":"UBUNTU-CVE-2016-4301","description":"Stack-based buffer overflow in the parse_device function in archive_read_support_format_mtree.c in libarchive before 3.2.1 allows remote attackers to execute arbitrary code via a crafted mtree file.","status":"withdrawn","published":"2016-09-21T14:25:00Z","modified":"2025-07-16T07:34:30.926534Z","cvss":[{"version":"3.0","score":7.8,"vector":"CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","level":"high"}],"updated_at":"2026-11-02T15:54:12.261906Z"},{"id":"MGASA-2016-0239","title":"Updated libarchive packages fix security vulnerability","description":"An out of bounds read in the rar parser: invalid read in function\ncopy_from_lzss_window() when unpacking malformed rar (CVE-2015-8934).\n\nAn exploitable heap overflow vulnerability exists in the 7zip\nread_SubStreamsInfo functionality of libarchive. A specially crafted 7zip\nfile can cause a integer overflow resulting in memory corruption that can\nlead to code execution. An attacker can send a malformed file to trigger\nthis vulnerability (CVE-2016-4300).\n\nAn exploitable stack based buffer overflow vulnerability exists in the\nmtree parse_device functionality of libarchive. A specially crafted mtree\nfile can cause a buffer overflow resulting in memory corruption/code\nexecution. An attacker can send a malformed file to trigger this\nvulnerability (CVE-2016-4301).\n\nAn exploitable heap overflow vulnerability exists in the Rar decompression\nfunctionality of libarchive. A specially crafted Rar file can cause a heap\ncorruption eventually leading to code execution. An attacker can send a\nmalformed file to trigger this vulnerability (CVE-2016-4302).\n\nA signed integer overflow in iso parser: integer overflow when computing\nlocation of volume descriptor (CVE-2016-5844).\n\nThe libarchive package has been updated to version 3.2.1, fixing those\nissues and other bugs.\n","status":"published","published":"2016-07-05T15:47:08Z","modified":"2026-04-16T06:23:03.138805182Z","updated_at":"2026-11-02T15:49:40.103088Z"},{"id":"openSUSE-SU-2024:10127-1","title":"bsdtar-3.2.2-2.1 on GA media","description":"These are all security issues fixed in the bsdtar-3.2.2-2.1 package on the GA media of openSUSE Tumbleweed.","status":"published","published":"2024-06-15T00:00:00Z","modified":"2026-02-04T03:50:16.386861Z","updated_at":"2026-11-02T16:58:33.135986Z"},{"id":"SUSE-SU-2016:1909-1","title":"Security update for libarchive","description":"libarchive was updated to fix 20 security issues.\n\nThese security issues were fixed:\n- CVE-2015-8918: Overlapping memcpy in CAB parser (bsc#985698).\n- CVE-2015-8919: Heap out of bounds read in LHA/LZH parser (bsc#985697).\n- CVE-2015-8920: Stack out of bounds read in ar parser (bsc#985675).\n- CVE-2015-8921: Global out of bounds read in mtree parser (bsc#985682).\n- CVE-2015-8922: Null pointer access in 7z parser (bsc#985685).\n- CVE-2015-8923: Unclear crashes in ZIP parser (bsc#985703).\n- CVE-2015-8924: Heap buffer read overflow in tar (bsc#985609).\n- CVE-2015-8925: Unclear invalid memory read in mtree parser (bsc#985706).\n- CVE-2015-8926: NULL pointer access in RAR parser (bsc#985704).\n- CVE-2015-8928: Heap out of bounds read in mtree parser (bsc#985679).\n- CVE-2015-8929: Memory leak in tar parser (bsc#985669).\n- CVE-2015-8930: Endless loop in ISO parser (bsc#985700).\n- CVE-2015-8931: Undefined behavior / signed integer overflow in mtree parser (bsc#985689).\n- CVE-2015-8932: Compress handler left shifting larger than int size (bsc#985665).\n- CVE-2015-8933: Undefined behavior / signed integer overflow in TAR parser (bsc#985688).\n- CVE-2015-8934: Out of bounds read in RAR (bsc#985673).\n- CVE-2016-4300: Heap buffer overflow vulnerability in the 7zip read_SubStreamsInfo (bsc#985832).\n- CVE-2016-4301: Stack buffer overflow in the mtree parse_device (bsc#985826).\n- CVE-2016-4302: Heap buffer overflow in the Rar decompression functionality (bsc#985835).\n- CVE-2016-4809: Memory allocate error with symbolic links in cpio archives (bsc#984990).\n","status":"published","published":"2016-07-29T08:20:09Z","modified":"2026-02-04T02:35:00.278817Z","updated_at":"2026-11-02T15:53:43.438985Z"}]}}
