Integer Overflow Vulnerability in llama.cpp Affecting Multiple LLM Models
CVE-2025-53630

8.9HIGH

Key Information:

Vendor

Ggml-org

Status
Vendor
CVE Published:
10 July 2025

What is CVE-2025-53630?

CVE-2025-53630 is an integer overflow vulnerability found in the llama.cpp library, which serves as an inference engine for several large language models (LLMs) implemented in C/C++. The flaw resides in the gguf_init_from_file_impl function in the ggml/src/gguf.cpp source file, where improper handling of integer values can lead to a heap out-of-bounds read or write. This vulnerability poses significant risks to organizations utilizing affected models, as it could potentially allow for unauthorized access to sensitive data or manipulation of the memory space, leading to unexpected behaviors or crashes within applications that rely on this library.

Potential impact of CVE-2025-53630

  1. Memory Corruption: The integer overflow can cause heap out-of-bounds operations, which may corrupt memory and lead to application instability or crashes, disrupting service availability and user experience.

  2. Data Leakage: Exploitation of this vulnerability could allow an attacker to read sensitive information stored in memory, resulting in unauthorized data access and potential breaches of confidentiality.

  3. Denial of Service: An attacker could exploit this vulnerability to create scenarios that lead to denial of service, ultimately impacting business continuity and operational efficiency by rendering applications unusable during critical periods.

Affected Version(s)

llama.cpp < 26a48ad699d50b6268900062661bd22f3e792579

References

CVSS V4

Score:
8.9
Severity:
HIGH
Confidentiality:
High
Integrity:
High
Availability:
High
Attack Vector:
Network
Attack Complexity:
Low
Attack Required:
None
Privileges Required:
Undefined
User Interaction:
None

Timeline

  • Vulnerability published

  • Vulnerability Reserved

.