CVE-2024-58399
MEDIUM 6.9 ALL-YEARSllama.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.
Current sources show no confirmed exploitation or catalogued public PoC. Missing or low probability estimates do not establish safety. Track for changes.
Exploitation likelihood
0.1%chance of exploitation in 30 days · 2nd percentile
Impact if exploited
6.9CVSS 4.0 · MEDIUM · CNA
- ConfidentialityLow
- IntegrityNone
- AvailabilityHigh
What an attacker needs
- ⚠Access: Requires local access to the host
- ✓Privileges: No account or privileges required
- ⚠User interaction: Succeeds with passive user activity
- ✓Complexity: No special conditions — reliably repeatable
- ✓Requirements: No special attack requirements
✓ lowers the bar for an attacker · ⚠ raises it
Proof of concept
No public PoC is currently catalogued.
Search for new PoCs
Search GitHub now — results may be empty or unverified.
Supported CVE and PoC feeds are scheduled every 30 minutes, including for older CVEs. Other enrichment runs daily or weekly; source availability can delay updates. A later release appears after a tracked source lists it and a refresh succeeds.
Weakness (CWE)
- CWE-125: Out-of-bounds Read
CVSS vector
CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:L/VI:N/VA:H/SC:N/SI:N/SA:N
References and research data (JSON) · Change history
All CVSS metrics
- MEDIUM 6.9 v4.0 · CNA Primary
CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:L/VI:N/VA:H/SC:N/SI:N/SA:N - MEDIUM 6.1 v3.1 · CNA Primary
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:H - MEDIUM 6.9 v4.0 · NVD Secondary
CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:L/VI:N/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X - MEDIUM 6.1 v3.1 · NVD Secondary
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:H
References
Patches & mitigations
- https://github.com/ggml-org/llama.cpp/commit/0ead1f1072fdc70720f92e008a294dc74a826b1d CVE record · VulnCheck · Updated 2026-10-27T00:33:56.695Z
NVD · CVE-2024-58399 · Updated 2026-11-02T19:17:49.023 - https://github.com/ggml-org/llama.cpp/pull/6885 CVE record · VulnCheck · Updated 2026-10-27T00:33:56.695Z
NVD · CVE-2024-58399 · Updated 2026-11-02T19:17:49.023 - https://github.com/ggml-org/llama.cpp/releases/tag/b2731 CVE record · VulnCheck · Updated 2026-10-27T00:33:56.695Z
NVD · CVE-2024-58399 · Updated 2026-11-02T19:17:49.023
Advisories
- https://www.vulncheck.com/advisories/llama-cpp-before-b2731-out-of-bounds-read-via-gguf-tensor-offsets CVE record · VulnCheck · Updated 2026-10-27T00:33:56.695Z
NVD · CVE-2024-58399 · Updated 2026-11-02T19:17:49.023 - https://euvd.enisa.europa.eu/vulnerability/EUVD-2024-55826 EUVD · EUVD-2024-55826
Technical & other
- https://github.com/ggml-org/llama.cpp/blob/b2730/llama.cpp#L3002-L3004 CVE record · VulnCheck · Updated 2026-10-27T00:33:56.695Z
NVD · CVE-2024-58399 · Updated 2026-11-02T19:17:49.023 - https://github.com/ggml-org/llama.cpp/issues/6774 CVE record · VulnCheck · Updated 2026-10-27T00:33:56.695Z
NVD · CVE-2024-58399 · Updated 2026-11-02T19:17:49.023
Sources: NVD · CVE.org · All sources and attribution · EPSS