CVEsggml-orgCVE-2024-58399Published Oct 27, 00:33 · Updated Oct 27, 00:33 UTC
6.1
MediumCVSS 3.1 · from VulnCheck
CVE-2024-58399

llama.cpp before b2731 Out-of-Bounds Read via GGUF Tensor Offsets

llama.cpp · Out-of-bounds read · CWE-125
Affectedllama.cpp
FixA patch is linked in the references.
PublishedOct 27, 00:33 · VulnCheck
ScoredOct 27 · 6.1 · VulnCheck
Exploit code publicNone known · checked 21:18 UTC
ExploitedNone known · CISA KEV checked 22:06 UTC

What we know

No known exploitation. CISA KEV, checked 22:06 UTC.
No public exploit code known. Exploit-DB, Metasploit, Nuclei, checked 21:18 UTC.
An attacker needs local access to the machine. CVSS: local.
Someone has to open, click or run something first. CVSS: user interaction required.
A successful attack can take the service down. CVSS impact.

Description

llama.cpp before b2731 contains an out-of-bounds read vulnerability in llama_model_loader that allows attackers to read memory outside the mapped model file via crafted GGUF tensor offsets. Attackers can supply a crafted or truncated GGUF model file with arbitrary 64-bit tensor offsets to crash the process or load adjacent process memory as model weights.

From VulnCheck

Affected and fixed versions

ProductAffectedFixed inllama.cppb1046 – before b2731–

Exploit code

Exploit-DBnone knownMetasploitnone knownNucleinone known

References

github.com/ggml-org/llama.cpp/issues/6774 · github.comissue trackinggithub.com/ggml-org/llama.cpp/pull/6885 · github.compatchissue trackinggithub.com/ggml-org/llama.cpp/commit/0ead1f1072fdc70720f92e008a294dc74a826b1d · github.compatchgithub.com/ggml-org/llama.cpp/blob/b2730/llama.cpp#L3002-L3004 · github.comtechnical descriptionllama.cpp b2731 Release Notes · github.comrelease notesVulnCheck Advisory: llama.cpp before b2731 Out-of-Bounds Read via GGUF Tensor Offsets · vulncheck.comthird party advisory

Other CVEs in llama.cpp

All 34 →
7.5llama.cpp b2877 before b11935 ggml-rpc Server DoS via Oversized recv_msg Length · CVE-2026-119052Oct 298.1llama.cpp b8841 before b11865 Stack-based Buffer Overflow via ggml-rpc RDMA rdma_recv() · CVE-2026-118375Oct 286.1llama.cpp b5854 before b11275 Integer Overflow in gguf_init_from_reader · CVE-2026-116840Oct 27