{"id":"CVE-2016-8688","aliases":["DEBIAN-CVE-2016-8688","DLA-1600-1","DLA-661-1","EUVD-2016-9527","GHSA-jf7m-wjh4-58hv","SUSE-SU-2016:2911-1","UBUNTU-CVE-2016-8688","USN-3225-1","openSUSE-SU-2024:10127-1"],"status":"published","title":"The mtree bidder in libarchive 3.2.1 does not keep track of line sizes when extending the read...","description":"The mtree bidder in libarchive 3.2.1 does not keep track of line sizes when extending the read-ahead, which allows remote attackers to cause a denial of service (crash) via a crafted file, which triggers an invalid read in the (1) detect_form or (2) bid_entry function in libarchive/archive_read_support_format_mtree.c.","severity":{"version":"3.0","score":5.5,"vector":"CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H","level":"medium","assessor":"primary","from":"nvd"},"epss":{"day":"2026-11-08","score":0.0198,"percentile":0.80676,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-125"],"published":"2016-10-17T00:00:00Z","modified":"2026-10-20T13:22:47Z","fixes":[{"ecosystem":"Debian:12","package":"libarchive","fixed_in":["3.2.1-5"],"sources":["osv"]},{"ecosystem":"Debian:13","package":"libarchive","fixed_in":["3.2.1-5"],"sources":["osv"]},{"ecosystem":"Debian:14","package":"libarchive","fixed_in":["3.2.1-5"],"sources":["osv"]},{"ecosystem":"Ubuntu:14.04:LTS","package":"libarchive","fixed_in":["3.1.2-7ubuntu2.4"],"sources":["osv"]},{"ecosystem":"Ubuntu:16.04:LTS","package":"libarchive","fixed_in":["3.1.2-11ubuntu0.16.04.3"],"sources":["osv"]}],"affected":[{"source":"osv","ecosystem":"Debian:12","package":"libarchive","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.2.1-5"}]}]},{"source":"osv","ecosystem":"Debian:13","package":"libarchive","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.2.1-5"}]}]},{"source":"osv","ecosystem":"Debian:14","package":"libarchive","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.2.1-5"}]}]},{"source":"osv","ecosystem":"Debian:8","package":"libarchive","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.1.2-11+deb8u4"}]}],"versions":["3.1.2-11","3.1.2-11+deb8u1","3.1.2-11+deb8u2","3.1.2-11+deb8u3","3.1.2-11+deb8u3~bpo70+1"],"bundled":12},{"source":"osv","ecosystem":"Debian:7","package":"libarchive","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.0.4-3+wheezy5"}]}],"versions":["3.0.4-3+nmu1","3.0.4-3+wheezy1","3.0.4-3+wheezy2","3.0.4-3+wheezy3","3.0.4-3+wheezy4"],"bundled":3},{"source":"osv","ecosystem":"SUSE:Linux Enterprise Desktop 12 SP1","package":"libarchive","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.1.2-25.1"}]}],"bundled":7},{"source":"osv","ecosystem":"SUSE:Linux Enterprise Desktop 12 SP2","package":"libarchive","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.1.2-25.1"}]}],"bundled":7},{"source":"osv","ecosystem":"SUSE:Linux Enterprise Server for Raspberry Pi 12 SP2","package":"libarchive","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.1.2-25.1"}]}],"bundled":7},{"source":"osv","ecosystem":"SUSE:Linux Enterprise Software Development Kit 12 SP1","package":"libarchive","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.1.2-25.1"}]}],"bundled":7},{"source":"osv","ecosystem":"SUSE:Linux Enterprise Software Development Kit 12 SP2","package":"libarchive","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.1.2-25.1"}]}],"bundled":7},{"source":"osv","ecosystem":"SUSE:Linux Enterprise Server 12 SP1","package":"libarchive","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.1.2-25.1"}]}],"bundled":7},{"source":"osv","ecosystem":"SUSE:Linux Enterprise Server for SAP Applications 12 SP1","package":"libarchive","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.1.2-25.1"}]}],"bundled":7},{"source":"osv","ecosystem":"SUSE:Linux Enterprise Server 12 SP2","package":"libarchive","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.1.2-25.1"}]}],"bundled":7},{"source":"osv","ecosystem":"SUSE:Linux Enterprise Server for SAP Applications 12 SP2","package":"libarchive","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.1.2-25.1"}]}],"bundled":7},{"source":"osv","ecosystem":"Ubuntu:14.04:LTS","package":"libarchive","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.1.2-7ubuntu2.4"}]}],"versions":["3.1.2-5ubuntu1","3.1.2-7ubuntu1","3.1.2-7ubuntu2","3.1.2-7ubuntu2.1","3.1.2-7ubuntu2.2","3.1.2-7ubuntu2.3"]},{"source":"osv","ecosystem":"Ubuntu:16.04:LTS","package":"libarchive","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.1.2-11ubuntu0.16.04.3"}]}],"versions":["3.1.2-11build1","3.1.2-11ubuntu0.16.04.1","3.1.2-11ubuntu0.16.04.2"]},{"source":"osv","ecosystem":"Ubuntu:14.04:LTS","package":"libarchive","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.1.2-7ubuntu2.4"}]}],"versions":["3.1.2-5ubuntu1","3.1.2-7ubuntu1","3.1.2-7ubuntu2","3.1.2-7ubuntu2.1","3.1.2-7ubuntu2.2","3.1.2-7ubuntu2.3"],"bundled":7},{"source":"osv","ecosystem":"Ubuntu:16.04:LTS","package":"libarchive","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.1.2-11ubuntu0.16.04.3"}]}],"versions":["3.1.2-11build1","3.1.2-11ubuntu0.16.04.1","3.1.2-11ubuntu0.16.04.2"],"bundled":7},{"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"},{"vendor":"opensuse","product":"leap"}],"references":[{"url":"http://www.openwall.com/lists/oss-security/2016/10/16/11","tags":["mailing-list","x_refsource_MLIST","x_transferred","Mailing List","Patch","Third Party Advisory","fix"]},{"url":"https://lists.debian.org/debian-lts-announce/2018/11/msg00037.html","tags":["mailing-list","x_refsource_MLIST","x_transferred","web"]},{"url":"https://blogs.gentoo.org/ago/2016/09/11/libarchive-bsdtar-use-after-free-in-detect_form-archive_read_support_format_mtree-c/","tags":["x_refsource_MISC","x_transferred","Patch","Third Party Advisory","VDB Entry","fix","report"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=1377923","tags":["x_refsource_CONFIRM","x_transferred","Issue Tracking","Patch","fix"]},{"url":"https://security.gentoo.org/glsa/201701-03","tags":["vendor-advisory","x_refsource_GENTOO","x_transferred","Patch","Third Party Advisory","VDB Entry","fix"]},{"url":"https://github.com/libarchive/libarchive/commit/eec077f52bfa2d3f7103b4b74d52572ba8a15aca","tags":["x_refsource_CONFIRM","x_transferred","Issue Tracking","Patch","Third Party Advisory","fix"]},{"url":"https://blogs.gentoo.org/ago/2016/09/11/libarchive-bsdtar-heap-based-buffer-overflow-in-bid_entry-archive_read_support_format_mtree-c/","tags":["x_refsource_MISC","x_transferred","Patch","Third Party Advisory","VDB Entry","fix","report"]},{"url":"http://www.securityfocus.com/bid/93781","tags":["vdb-entry","x_refsource_BID","x_transferred","Third Party Advisory","VDB Entry","advisory"]},{"url":"https://blogs.gentoo.org/ago/2016/09/11/libarchive-bsdtar-memory-corruptionunknown-crash-in-bid_entry-archive_read_support_format_mtree-c/","tags":["x_refsource_MISC","x_transferred","Patch","Third Party Advisory","VDB Entry","fix","report"]},{"url":"https://blogs.gentoo.org/ago/2016/09/11/libarchive-bsdtar-heap-based-buffer-overflow-in-detect_form-archive_read_support_format_mtree-c/","tags":["x_refsource_MISC","x_transferred","Patch","Third Party Advisory","VDB Entry","fix","report"]},{"url":"http://lists.opensuse.org/opensuse-updates/2016-12/msg00027.html","tags":["vendor-advisory","x_refsource_SUSE","x_transferred","Third Party Advisory","advisory"]},{"url":"https://blogs.gentoo.org/ago/2016/09/11/libarchive-bsdtar-use-after-free-in-bid_entry-archive_read_support_format_mtree-c/","tags":["x_refsource_MISC","x_transferred","Patch","Third Party Advisory","VDB Entry","fix","report"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2016-8688"},{"url":"https://blogs.gentoo.org/ago/2016/09/11/libarchive-bsdtar-heap-based-buffer-overflow-in-bid_entry-archive_read_support_format_mtree-c"},{"url":"https://blogs.gentoo.org/ago/2016/09/11/libarchive-bsdtar-heap-based-buffer-overflow-in-detect_form-archive_read_support_format_mtree-c"},{"url":"https://blogs.gentoo.org/ago/2016/09/11/libarchive-bsdtar-memory-corruptionunknown-crash-in-bid_entry-archive_read_support_format_mtree-c"},{"url":"https://blogs.gentoo.org/ago/2016/09/11/libarchive-bsdtar-use-after-free-in-bid_entry-archive_read_support_format_mtree-c"},{"url":"https://blogs.gentoo.org/ago/2016/09/11/libarchive-bsdtar-use-after-free-in-detect_form-archive_read_support_format_mtree-c"},{"url":"https://github.com/advisories/GHSA-jf7m-wjh4-58hv"},{"url":"https://security-tracker.debian.org/tracker/CVE-2016-8688","tags":["advisory"]},{"url":"https://www.suse.com/support/update/announcement/2016/suse-su-20162911-1/","tags":["advisory"]},{"url":"https://bugzilla.suse.com/1005070","tags":["report"]},{"url":"https://bugzilla.suse.com/1005072","tags":["report"]},{"url":"https://bugzilla.suse.com/1005076","tags":["report"]},{"url":"https://bugzilla.suse.com/986566","tags":["report"]},{"url":"https://bugzilla.suse.com/989980","tags":["report"]},{"url":"https://bugzilla.suse.com/998677","tags":["report"]},{"url":"https://www.suse.com/security/cve/CVE-2015-2304","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"]},{"url":"https://ubuntu.com/security/CVE-2016-8688","tags":["report"]},{"url":"https://ubuntu.com/security/notices/USN-3225-1","tags":["advisory"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2016-8688","tags":["report"]},{"url":"https://ubuntu.com/security/CVE-2016-5418","tags":["report"]},{"url":"https://ubuntu.com/security/CVE-2016-6250","tags":["report"]},{"url":"https://ubuntu.com/security/CVE-2016-7166","tags":["report"]},{"url":"https://ubuntu.com/security/CVE-2016-8687","tags":["report"]},{"url":"https://ubuntu.com/security/CVE-2016-8689","tags":["report"]},{"url":"https://ubuntu.com/security/CVE-2017-5601","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-8917","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2015-8928","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-1541","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-4809","tags":["web"]}],"sources":{"cve":[{"id":"CVE-2016-8688","description":"The mtree bidder in libarchive 3.2.1 does not keep track of line sizes when extending the read-ahead, which allows remote attackers to cause a denial of service (crash) via a crafted file, which triggers an invalid read in the (1) detect_form or (2) bid_entry function in libarchive/archive_read_support_format_mtree.c.","status":"published","published":"2017-02-15T19:00:00Z","modified":"2024-08-06T02:27:41.207Z","updated_at":"2026-11-02T14:33:32.415289Z"}],"euvd":[{"id":"EUVD-2016-9527","description":"The mtree bidder in libarchive 3.2.1 does not keep track of line sizes when extending the read-ahead, which allows remote attackers to cause a denial of service (crash) via a crafted file, which triggers an invalid read in the (1) detect_form or (2) bid_entry function in libarchive/archive_read_support_format_mtree.c.","status":"published","published":"2017-02-15T19:00:00Z","modified":"2024-08-06T02:27:41Z","updated_at":"2026-11-03T02:22:29.639634Z"}],"ghsa":[{"id":"GHSA-jf7m-wjh4-58hv","title":"The mtree bidder in libarchive 3.2.1 does not keep track of line sizes when extending the read...","description":"The mtree bidder in libarchive 3.2.1 does not keep track of line sizes when extending the read-ahead, which allows remote attackers to cause a denial of service (crash) via a crafted file, which triggers an invalid read in the (1) detect_form or (2) bid_entry function in libarchive/archive_read_support_format_mtree.c.","status":"published","published":"2022-05-14T01:54:41Z","modified":"2025-04-20T03:33:58Z","cvss":[{"version":"3.0","score":5.5,"vector":"CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H","level":"medium"}],"cwes":["CWE-125"],"updated_at":"2026-11-02T15:01:41.326693Z"}],"nvd":[{"id":"CVE-2016-8688","description":"The mtree bidder in libarchive 3.2.1 does not keep track of line sizes when extending the read-ahead, which allows remote attackers to cause a denial of service (crash) via a crafted file, which triggers an invalid read in the (1) detect_form or (2) bid_entry function in libarchive/archive_read_support_format_mtree.c.","status":"published","published":"2017-02-15T19:59:00.643Z","modified":"2026-06-17T00:54:48.95Z","cvss":[{"version":"3.0","score":5.5,"vector":"CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H","level":"medium","assessor":"primary"},{"version":"2.0","score":4.3,"vector":"AV:N/AC:M/Au:N/C:N/I:N/A:P","level":"medium","assessor":"primary"}],"cwes":["CWE-125"],"updated_at":"2026-11-02T14:03:35.822579Z"}],"osv":[{"id":"CVE-2016-8688","description":"The mtree bidder in libarchive 3.2.1 does not keep track of line sizes when extending the read-ahead, which allows remote attackers to cause a denial of service (crash) via a crafted file, which triggers an invalid read in the (1) detect_form or (2) bid_entry function in libarchive/archive_read_support_format_mtree.c.","status":"published","published":"2017-02-15T19:59:00.643Z","modified":"2026-10-20T13:22:47.381514757Z","cvss":[{"version":"3.0","score":5.5,"vector":"CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H","level":"medium"}],"updated_at":"2026-11-02T15:44:03.171316Z"},{"id":"DEBIAN-CVE-2016-8688","description":"The mtree bidder in libarchive 3.2.1 does not keep track of line sizes when extending the read-ahead, which allows remote attackers to cause a denial of service (crash) via a crafted file, which triggers an invalid read in the (1) detect_form or (2) bid_entry function in libarchive/archive_read_support_format_mtree.c.","status":"published","published":"2017-02-15T19:59:00.643Z","modified":"2026-09-22T07:00:30.414572735Z","cvss":[{"version":"3.0","score":5.5,"vector":"CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H","level":"medium"}],"updated_at":"2026-11-02T15:45:28.207321Z"},{"id":"UBUNTU-CVE-2016-8688","description":"The mtree bidder in libarchive 3.2.1 does not keep track of line sizes when extending the read-ahead, which allows remote attackers to cause a denial of service (crash) via a crafted file, which triggers an invalid read in the (1) detect_form or (2) bid_entry function in libarchive/archive_read_support_format_mtree.c.","status":"published","published":"2017-02-15T00:00:00Z","modified":"2026-04-22T11:02:28.826321Z","cvss":[{"version":"3.0","score":5.5,"vector":"CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H","level":"medium"}],"updated_at":"2026-11-02T15:54:12.994319Z"},{"id":"DLA-1600-1","title":"libarchive - security update","status":"published","published":"2018-11-29T00:00:00Z","modified":"2026-03-09T01:20:53.992687Z","updated_at":"2026-11-02T15:46:09.777694Z"},{"id":"DLA-661-1","title":"libarchive - security update","status":"published","published":"2016-10-17T00:00:00Z","modified":"2026-03-09T02:09:11.61182Z","updated_at":"2026-11-02T15:46:13.207219Z"},{"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:2911-1","title":"Security update for libarchive","description":"\nThis update for libarchive fixes several issues.\n\nThese security issues were fixed:\n\n- CVE-2016-8687: Buffer overflow when printing a filename (bsc#1005070).\n- CVE-2016-8689: Heap overflow when reading corrupted 7Zip files (bsc#1005072).\n- CVE-2016-8688: Use after free because of incorrect calculation in next_line (bsc#1005076).\n- CVE-2016-5844: Integer overflow in the ISO parser in libarchive allowed remote attackers to cause a denial of service (application crash) via a crafted ISO file (bsc#986566).\n- CVE-2016-6250: Integer overflow in the ISO9660 writer in libarchive allowed remote attackers to cause a denial of service (application crash) or execute arbitrary code via vectors related to verifying filename lengths when writing an ISO9660 archive, which trigger a buffer overflow (bsc#989980).\n- CVE-2016-5418: The sandboxing code in libarchive mishandled hardlink archive entries of non-zero data size, which might allowed remote attackers to write to arbitrary files via a crafted archive file (bsc#998677).\n","status":"published","published":"2016-11-25T11:33:02Z","modified":"2026-02-04T02:58:28.968287Z","updated_at":"2026-11-02T15:53:43.438985Z"},{"id":"USN-3225-1","title":"libarchive vulnerabilities","description":"It was discovered that libarchive incorrectly handled hardlink entries when\nextracting archives. A remote attacker could possibly use this issue to\noverwrite arbitrary files. (CVE-2016-5418)\n\nChristian Wressnegger, Alwin Maier, and Fabian Yamaguchi discovered that\nlibarchive incorrectly handled filename lengths when writing ISO9660\narchives. A remote attacker could use this issue to cause libarchive to\ncrash, resulting in a denial of service, or possibly execute arbitrary\ncode. This issue only applied to Ubuntu 12.04 LTS, Ubuntu 14.04 LTS and\nUbuntu 16.04 LTS. (CVE-2016-6250)\n\nAlexander Cherepanov discovered that libarchive incorrectly handled\nrecursive decompressions. A remote attacker could possibly use this issue\nto cause libarchive to hang, resulting in a denial of service. This issue\nonly applied to Ubuntu 12.04 LTS, Ubuntu 14.04 LTS and Ubuntu 16.04 LTS.\n(CVE-2016-7166)\n\nIt was discovered that libarchive incorrectly handled non-printable\nmultibyte characters in filenames. A remote attacker could possibly use\nthis issue to cause libarchive to crash, resulting in a denial of service.\n(CVE-2016-8687)\n\nIt was discovered that libarchive incorrectly handled line sizes when\nextracting certain archives. A remote attacker could possibly use this\nissue to cause libarchive to crash, resulting in a denial of service.\n(CVE-2016-8688)\n\nIt was discovered that libarchive incorrectly handled multiple EmptyStream\nattributes when extracting certain 7zip archives. A remote attacker could\npossibly use this issue to cause libarchive to crash, resulting in a denial\nof service. (CVE-2016-8689)\n\nJakub Jirasek discovered that libarchive incorrectly handled memory when\nextracting certain archives. A remote attacker could possibly use this\nissue to cause libarchive to crash, resulting in a denial of service.\n(CVE-2017-5601)\n","status":"published","published":"2017-03-09T18:41:10Z","modified":"2026-04-22T09:33:10.453504Z","updated_at":"2026-11-02T16:58:10.303275Z"}]}}
