Skip to content
MediumVulnerabilityLLM-specific

CVE-2024-58399: llama.cpp out-of-bounds read in model loader via crafted GGUF files

Identifier
CVE-2024-58399
Published
Record updated
View JSON
Known exploitation
Not listed in the CISA Known Exploited Vulnerabilities catalog at the last check.
EPSS
0.2%Estimated probability that this CVE is exploited in the next 30 days, from the FIRST Exploit Prediction Scoring System. Read on .

Summary

llama.cpp before b2731 contains an out-of-bounds read in llama_model_loader that reads memory outside the mapped model file through crafted GGUF tensor offsets. An attacker 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.

Mitigation

The source does not state a fix yet. Check the original advisory for updates.