High
Security advisory
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.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2016-4301
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 31 Oct 2026, 12:09 UTC · Revision 1
Source evidence
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.
osv:CVE-2016-4301
Complete source record
{
"id": "fd8fd3c4cb20ff5a7e379787ab91c2f18da81067e63e1514bab79c4901cf5a92",
"url": "https://osv.dev/vulnerability/CVE-2016-4301",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "CVE-2016-4301",
"summary": "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.",
"evidence": "osv:CVE-2016-4301",
"products": [],
"severity": "high",
"structured": {
"id": "CVE-2016-4301",
"aliases": [
"CVE-2016-4301"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/libarchive/libarchive",
"type": "GIT",
"events": [
{
"introduced": "0"
},
{
"last_affected": "167e97be1d35c1e0947d768adbf94712244aad6b"
},
{
"fixed": "a550daeecf6bc689ade371349892ea17b5b97c77"
}
],
"database_specific": {
"extracted_events": [
{
"cpe": "cpe:2.3:a:libarchive:libarchive:*:*:*:*:*:*:*:*",
"range": [
{
"introduced": "0"
},
{
"last_affected": "3.2.0"
}
],
"source": "CPE_RANGE"
},
{
"range": [
{
"fixed": "a550daeecf6bc689ade371349892ea17b5b97c77"
}
],
"source": "REFERENCES_COMMIT"
}
]
}
}
],
"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-4301.json",
"vanir_signatures": [
{
"id": "CVE-2016-4301-a01ffa10",
"digest": {
"length": 1200,
"function_hash": "143880382356209121767910816968035344580"
},
"source": "https://github.com/libarchive/libarchive/commit/a550daeecf6bc689ade371349892ea17b5b97c77",
"target": {
"file": "libarchive/archive_read_support_format_mtree.c",
"function": "parse_device"
},
"deprecated": false,
"signature_type": "Function",
"signature_version": "v1"
},
{
"id": "CVE-2016-4301-a29a59a4",
"digest": {
"threshold": 0.9,
"line_hashes": [
"256043876767270418904297835359534923798",
"91329263999826924697751733287766333439",
"71987806477731583715113700319021518074",
"12951000263240183234741530784948320872",
"268925389337664992361160509756681494806",
"82969020618302814993115308206227565712",
"306280799597300011176829409968343651528",
"267811399157000271953658977092283303999",
"183716102513812745322458601358956163440"
]
},
"source": "https://github.com/libarchive/libarchive/commit/a550daeecf6bc689ade371349892ea17b5b97c77",
"target": {
"file": "libarchive/archive_read_support_format_mtree.c"
},
"deprecated": false,
"signature_type": "Line",
"signature_version": "v1"
}
],
"vanir_signatures_modified": "2026-10-20T13:12:46Z"
}
}
],
"modified": "2026-10-20T13:12:46.733224656Z",
"provider": "osv",
"references": [
"https://security.gentoo.org/glsa/201701-03",
"https://bugzilla.redhat.com/show_bug.cgi?id=1348441",
"https://github.com/libarchive/libarchive/commit/a550daeecf6bc689ade371349892ea17b5b97c77",
"https://github.com/libarchive/libarchive/issues/715"
],
"provider_metadata": {}
},
"related_cves": [
{
"value": "CVE-2016-4301",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 387307,
"published_at": "2016-09-21T14:25:03.377+00:00"
}