UBUNTU-CVE-2024-58400 (CVE-2024-58400)
Vulnerability from osv_ubuntu – Published: 2026-10-27 01:19 – Updated: 2026-10-28 17:27 – Source websitellama.cpp before b3701 contains an out-of-bounds read vulnerability in llama_decode_internal and llama_encode_internal that allows remote unauthenticated attackers to read memory by supplying unvalidated token IDs. Attackers can send integer-array prompts to the llama-server /completion endpoint with IDs outside 0 to n_vocab to read embedding memory out of bounds or crash the process.
{
"affected": [
{
"ecosystem_specific": {
"binaries": [
{
"binary_name": "libllama0",
"binary_version": "10438+dfsg-1ubuntu1"
},
{
"binary_name": "llama.cpp",
"binary_version": "10438+dfsg-1ubuntu1"
},
{
"binary_name": "llama.cpp-examples",
"binary_version": "10438+dfsg-1ubuntu1"
},
{
"binary_name": "llama.cpp-services",
"binary_version": "10438+dfsg-1ubuntu1"
},
{
"binary_name": "llama.cpp-tests",
"binary_version": "10438+dfsg-1ubuntu1"
},
{
"binary_name": "llama.cpp-tools",
"binary_version": "10438+dfsg-1ubuntu1"
},
{
"binary_name": "llama.cpp-tools-extra",
"binary_version": "10438+dfsg-1ubuntu1"
},
{
"binary_name": "python3-gguf",
"binary_version": "10438+dfsg-1ubuntu1"
}
]
},
"package": {
"ecosystem": "Ubuntu:26.10",
"name": "llama.cpp",
"purl": "pkg:deb/ubuntu/llama.cpp@10438+dfsg-1ubuntu1?arch=source\u0026distro=stonking"
},
"ranges": [
{
"events": [
{
"introduced": "0"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"8681+dfsg-1",
"9721+dfsg-1ubuntu1",
"10438+dfsg-1",
"10438+dfsg-1ubuntu1"
]
},
{
"ecosystem_specific": {
"binaries": [
{
"binary_name": "libllama0",
"binary_version": "8681+dfsg-1"
},
{
"binary_name": "llama.cpp",
"binary_version": "8681+dfsg-1"
},
{
"binary_name": "llama.cpp-examples",
"binary_version": "8681+dfsg-1"
},
{
"binary_name": "llama.cpp-tests",
"binary_version": "8681+dfsg-1"
},
{
"binary_name": "llama.cpp-tools",
"binary_version": "8681+dfsg-1"
},
{
"binary_name": "llama.cpp-tools-extra",
"binary_version": "8681+dfsg-1"
},
{
"binary_name": "python3-gguf",
"binary_version": "8681+dfsg-1"
}
]
},
"package": {
"ecosystem": "Ubuntu:26.04:LTS",
"name": "llama.cpp",
"purl": "pkg:deb/ubuntu/llama.cpp@8681+dfsg-1?arch=source\u0026distro=resolute"
},
"ranges": [
{
"events": [
{
"introduced": "0"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"5882+dfsg-2",
"8064+dfsg-1ubuntu1",
"8681+dfsg-1"
]
}
],
"aliases": [],
"details": "llama.cpp before b3701 contains an out-of-bounds read vulnerability in llama_decode_internal and llama_encode_internal that allows remote unauthenticated attackers to read memory by supplying unvalidated token IDs. Attackers can send integer-array prompts to the llama-server /completion endpoint with IDs outside 0 to n_vocab to read embedding memory out of bounds or crash the process.",
"id": "UBUNTU-CVE-2024-58400",
"modified": "2026-10-28T17:27:02Z",
"published": "2026-10-27T01:19:00Z",
"references": [
{
"type": "REPORT",
"url": "https://ubuntu.com/security/CVE-2024-58400"
},
{
"type": "REPORT",
"url": "https://www.cve.org/CVERecord?id=CVE-2024-58400"
},
{
"type": "REPORT",
"url": "https://github.com/cveproject/cvelistv5/tree/main/cves/2024/58xxx/cve-2024-58400.json"
},
{
"type": "REPORT",
"url": "https://github.com/ggml-org/llama.cpp/blob/b3681/examples/server/server.cpp#l789"
},
{
"type": "REPORT",
"url": "https://github.com/ggml-org/llama.cpp/commit/eae597182cb61bbde0b26e7cec5999d28b9327fe"
},
{
"type": "REPORT",
"url": "https://github.com/ggml-org/llama.cpp/commit/faf69d4237c9ae4d7f572b4674d1002463e8acd3"
},
{
"type": "REPORT",
"url": "https://github.com/ggml-org/llama.cpp/pull/9359"
},
{
"type": "REPORT",
"url": "https://github.com/ggml-org/llama.cpp/releases/tag/b3701"
},
{
"type": "REPORT",
"url": "https://nvd.nist.gov/vuln/detail/cve-2024-58400"
},
{
"type": "REPORT",
"url": "https://www.vulncheck.com/advisories/llama-cpp-before-b3701-out-of-bounds-read-in-llama-decode-via-token-ids"
}
],
"related": [],
"schema_version": "1.7.0",
"severity": [
{
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:H",
"type": "CVSS_V3"
},
{
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:H",
"type": "CVSS_V3"
},
{
"score": "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:N/VA:H/SC:N/SI:N/SA:N",
"type": "CVSS_V4"
},
{
"score": "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:N/VA:H/SC:N/SI:N/SA:N",
"type": "CVSS_V4"
},
{
"score": "medium",
"type": "Ubuntu"
}
],
"upstream": [
"CVE-2024-58400"
]
}
Drag nodes to arrange them. Double-click a related vulnerability to open it, or a source to visit its link. The Physics button on the left tunes the layout and the simulation; the legend at the bottom left hides or shows nodes by kind and by sighting type.
Sightings
| Author | Source | Type | Date | Other |
|---|
Nomenclature
- Seen: The vulnerability was mentioned, discussed, or observed by the user.
- Confirmed: The vulnerability has been validated from an analyst's perspective.
- Published Proof of Concept: A public proof of concept is available for this vulnerability.
- Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
- Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
- Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
- Not confirmed: The user expressed doubt about the validity of the vulnerability.
- Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.
Vulnerability timeline
Sightings and recorded dates, grouped by day · UTC
Loading timeline…
The approach is described in our paper Mapping CVEs to MITRE ATT&CK Techniques: A Curated Gold-Set Classifier and the Limits of LLM-Assisted Label Expansion.
Browse all ATT&CK techniques and the vulnerabilities related to each.
Related by attack behaviour
Vulnerabilities whose description is nearest to this one in the vector space of the CIRCL/vulnerability-attack-technique-biencoder model. This is a similarity search over the bi-encoder space (plain cosine), not a classification, and it has no measured accuracy.