CVE-2025-53630: Integer Overflow in GGUF Parser can lead to Heap Out-of-Bounds Read/Write in gguf
llama.cpp is an inference of several LLM models in C/C++. Integer Overflow in the ggufinitfromfileimpl function in ggml/src/gguf.cpp can lead to Heap Out-of-Bounds Read/Write. This vulnerability is fixed in commit 26a48ad699d50b6268900062661bd22f3e792579.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
llama.cppto a version that resolves this vulnerability.Patch 26a48ad699d50b6268900062661bd22f3e792579
Event History
Frequently Asked Questions
What is the severity of CVE-2025-53630?
CVE-2025-53630 is classified as a high-severity vulnerability due to its potential to cause heap out-of-bounds read/write.
How do I fix CVE-2025-53630?
To fix CVE-2025-53630, update to a version of llama.cpp that includes the fix from commit 26a48ad699d50b6268900062661bd22f3e792579.
Which versions of llama.cpp are affected by CVE-2025-53630?
Versions of llama.cpp prior to the commit 26a48ad699d50b6268900062661bd22f3e792579 are affected by CVE-2025-53630.
What kind of exploitation is possible with CVE-2025-53630?
CVE-2025-53630 can be exploited to perform a heap out-of-bounds read/write, potentially allowing an attacker to execute arbitrary code.
Is CVE-2025-53630 specific to any particular function?
Yes, CVE-2025-53630 specifically affects the gguf_init_from_file_impl function in ggml/src/gguf.cpp.