Skip to main content

Suse CVE-2025-53630

| EUVDEUVD-2025-21070 HIGH
Heap-based Buffer Overflow (CWE-122)
2025-07-10 security-advisories@github.com
8.9
CVSS 4.0 · GitHub Advisory
View

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.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.1% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAI

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

llama.cpp < 26a48ad699d50b6268900062661bd22f3e792579

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

GitHub Advisory PRIMARY 8.9 HIGH
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
Ubuntu MEDIUM
SUSE HIGH

Primary rating from GitHub Advisory.

CVSS VectorGitHub Advisory

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
None
Vulnerable system: Confidentiality
High
Vulnerable system: Integrity
High
Vulnerable system: Availability
High
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

2
Patch released
Mar 31, 2026 - 21:13 nvd
Patch available
CVE Published
Jul 10, 2025 - 20:15 nvd
HIGH 8.9

DescriptionGitHub 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

Why It Matters

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.

Business Impact: High
Compensating Controls

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

EPSS Score
0.1%
Top 84% exploitable
Exploit
POC
Public exploit code exists
Data Quality
6 sources
Confidence: High

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.

SignalValue
Severity HIGH
CISA KEV No
Public POC Yes
EPSS 0.1%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
Poc
System Exposure· derived
Open
Automatable· derived
Yes
Human Impact
High

Priority Score

64
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +44
PoC: +20
Weaponized: 0
Threat intel: 0
Gov advisory: 0

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.

Vendor StatusVendor

Ubuntu

Priority: Medium
llama.cpp
Release Status Version
jammy DNE -
noble DNE -
plucky DNE -
upstream needs-triage -
questing needs-triage -

Debian

Bug #1109124
ggml
Release Status Fixed Version Urgency
sid fixed 0.9.7-2 -
(unstable) fixed 0.0~git20250711.b6d2ebd-1 -
llama.cpp
Release Status Fixed Version Urgency
sid fixed 8064+dfsg-2 -
(unstable) fixed 5882+dfsg-1 unimportant

SUSE

Severity: High
Product Status
openSUSE Tumbleweed Fixed

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy