Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A06:2021 - Vulnerable and Outdated Components
ASVS 5.0
V15 - Secure Coding and Architecture Heap buffer bounds checking
MITRE ATT&CK
1 technique across 1 tactic: Execution The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Impact | This vulnerability presents significant real-world risk across multiple dimensions: (1) CVSS 8.9 with network accessibility (AV:N/AC:L/AT:N/PR:N/UI:N) indicates trivial exploitation requirements—no authentication, local access, or user interaction needed; (2) High impact across confidentiality (VC:H), integrity (VI:H), and availability (VA:H) confirms potential for complete system compromise; (3) The attack surface is broad since llama.cpp is used in ML inference pipelines, chatbot deployments, and AI applications that may process untrusted model files; (4) The E:P tag suggests proof-of-concept code may exist or be trivial to develop given the deterministic nature of integer overflow bugs; (5) Automatable exploitation is highly probable—an attacker can craft a malicious GGUF file and send it to any service using vulnerable llama.cpp without requiring user interaction. This is NOT a low-priority high-CVSS issue; the combination of network attack vector, complete impact coverage, and likelihood of active exploitation makes this a critical remediation priority. |
| Exploit ScenarioDerived | An attacker identifies a web service or API endpoint that accepts user-uploaded or URL-provided LLM model files (GGUF format) for inference. The attacker crafts a malicious GGUF file with specially crafted header fields that trigger integer overflow in size calculations within gguf_init_from_file_impl. When the service attempts to load the model, the overflow causes heap buffer allocation to be undersized. Subsequent read/write operations into this buffer corrupt adjacent heap structures or leak sensitive data (model weights, cached prompts, API keys) from memory. Depending on the heap state, this could escalate to arbitrary code execution. No user interaction is required—the exploit is fully automated and triggered server-side. A proof-of-concept would involve fuzzing GGUF headers or reverse-engineering the integer overflow condition to craft a triggering file, both of which are feasible given the deterministic nature of the bug. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAI
CVE-2025-53630 is a critical integer overflow vulnerability in llama.cpp's GGUF file parsing function that can trigger heap out-of-bounds read/write operations, potentially leading to information disclosure, memory corruption, or remote code execution. The vulnerability affects llama.cpp versions prior to commit 26a48ad699d50b6268900062661bd22f3e792579, with a CVSS score of 8.9 indicating high severity. The network-accessible attack vector (AV:N) combined with low complexity (AC:L) means remote attackers can exploit this without authentication by supplying malformed GGUF model files.
RemediationAI
Immediate remediation: (1) Update llama.cpp to a version after commit 26a48ad699d50b6268900062661bd22f3e792579; (2) Rebuild any downstream applications (chatbots, inference services, SDKs) that statically link llama.cpp; (3) If source-based deployment, cherry-pick the fix commit or apply the security patch. Short-term mitigations pending patching: (1) Restrict GGUF file sources to trusted model repositories only (e.g., HuggingFace official models); (2) Validate GGUF file signatures/checksums before loading if possible; (3) Run llama.cpp services in isolated containers with restricted memory access and seccomp profiles; (4) Implement strict file type validation at the application layer before passing to llama.cpp. For organizations using dependent projects, verify those projects have updated to patched llama.cpp versions.
Affected VersionsENISA
Affects your stack
Find out whether the stacks and servers you run are on an affected version.
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
llama.cpp is a C/C++ inference engine for Large Language Models (LLMs) that supports multiple model architectures through GGUF (GGML Unified Format) file parsing. The vulnerability exists in the gguf_init_from_file_impl function within ggml/src/gguf.cpp, which handles deserialization and validation of GGUF model files. CWE-122 (Heap-based Buffer Overflow) combined with integer overflow indicates that size calculations in the file header parsing logic fail to properly validate field values, allowing attackers to cause heap allocations smaller than required or to trigger out-of-bounds access. When processing attacker-controlled GGUF files, integer overflow in size computations causes the heap buffer management to lose track of actual allocation boundaries, enabling both read (information leak) and write (memory corruption) primitives.
Know when the next one hits your stack
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:P
Primary rating from GitHub Advisory.
CVSS VectorGitHub Advisory
Lifecycle Timeline
2DescriptionGitHub Advisory
llama.cpp is an inference of several LLM models in C/C++. Integer Overflow in the gguf_init_from_file_impl function in ggml/src/gguf.cpp can lead to Heap Out-of-Bounds Read/Write. This vulnerability is fixed in commit 26a48ad699d50b6268900062661bd22f3e792579.
Executive ViewAI
CVE-2025-53630 is a high-severity integer overflow vulnerability in llama.cpp that could allow attackers to read or write to heap memory, potentially leading to data exposure or system compromise. Organizations using llama.cpp for LLM inference are at risk, particularly if the application processes untrusted model files or accepts user-supplied GGUF files.
Until a vendor patch is released: (1) Restrict GGUF file sources to pre-validated, trusted model repositories only; (2) Implement strict file validation and integrity checking before loading GGUF files; (3) Run llama.cpp in isolated containers or sandboxed environments with restricted memory access; (4) Disable user-supplied model file uploads if possible; (5) Apply principle of least privilege to service accounts running llama.cpp; (6) Monitor process memory and crash logs for exploitation indicators.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
A buffer overflow occurs when a program writes more data to a memory buffer than it was allocated to hold, causing the excess data to spill into adjacent memory regions.
A heap overflow occurs when a program writes data beyond the bounds of a buffer allocated in the heap memory region.
Integer overflow occurs when an arithmetic operation produces a result that exceeds the maximum value a given integer type can store.
Memory corruption occurs when a program writes data beyond the boundaries of allocated memory regions or accesses memory in unintended ways, violating the integrity of the process's address space.
Same weakness CWE-122 – Heap-based Buffer Overflow
View allSame technique Buffer Overflow
View allVendor StatusVendor
Ubuntu
Priority: Medium| Release | Status | Version |
|---|---|---|
| jammy | DNE | - |
| noble | DNE | - |
| plucky | DNE | - |
| upstream | needs-triage | - |
| questing | needs-triage | - |
Debian
Bug #1109124| Release | Status | Fixed Version | Urgency |
|---|---|---|---|
| sid | fixed | 0.9.7-2 | - |
| (unstable) | fixed | 0.0~git20250711.b6d2ebd-1 | - |
| Release | Status | Fixed Version | Urgency |
|---|---|---|---|
| sid | fixed | 8064+dfsg-2 | - |
| (unstable) | fixed | 5882+dfsg-1 | unimportant |
SUSE
Severity: High| Product | Status |
|---|---|
| openSUSE Tumbleweed | Fixed |
EUVD-2025-21070
NVD
CVE.org
EPSS
GitHub
Exploit-DB