Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessGain local low-privileged access
-
ExploitSupply crafted shift values to ggml_roll
-
ExecutionTrigger integer overflow in bounds check
-
ImpactCause limited memory/assertion misbehavior
Vulnerability Assessment
| Weakness |
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Integer overflow checks
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. |
| Exploitation Conditions | Exploitation requires the attacker to invoke the ggml_roll operation of the ggml tensor library (ggml/src/ggml.c) with attacker-controlled shift0-shift3 values that overflow the original abs(shift) < ne[] bounds checks. The CVSS vector (AV:L/PR:L) establishes that this requires LOCAL access and at least low privileges - i.e., the ability to execute code or feed a crafted compute graph/model into a process using the library on the same host; it is not remotely reachable by an unauthenticated network attacker. Limiting factors: local-only attack surface, a privilege requirement (PR:L), and impact bounded to low (VC:L/VI:L/VA:L) with no scope change, meaning no spread to other components. Affected: llama.cpp up to 0.8.0; fixed in 0.9.0. |
| Impact | This is a genuinely low-to-medium priority issue, not a high-severity emergency. The CVSS 4.0 vector (AV:L/AC:L/AT:N/PR:L/UI:N) and the 4.8 base score agree that exploitation is local, requires some privileges (PR:L), needs no user interaction, and yields only low impact to confidentiality, integrity, and availability (VC:L/VI:L/VA:L, no scope change). The decision label is 'this_month' (not act_now or emergency), consistent with a modest, non-urgent flaw. No EPSS score was supplied, the CVE is NOT in CISA KEV, and no public exploit is identified - all three high-urgency signals are absent. Exploitation status: no public exploit identified at time of analysis (the only GitHub references are the patch PR, patch commit, and release tag, which are fixes, not proof-of-concept exploit code). The one caveat worth flagging: the input tags list both 'Buffer Overflow' and 'Integer Overflow,' while the CWE and description specify only an integer overflow (CWE-190); the source diff confirms the root cause is unsafe shift-bounds validation in ggml_roll (abs() on shift values that can overflow for INT_MIN-class inputs), so the practical risk is a bad assertion/bounds check rather than a confirmed exploitable buffer corruption. Bottom line: a local, low-privilege, low-impact bug in a popular library - patch on a normal maintenance cycle, not a drop-everything event. |
| Exploit ScenarioDerived | A local, low-privileged user (or code that can supply a crafted compute graph/model to the library) invokes the ggml_roll tensor operation with maliciously chosen shift parameters, triggering an integer overflow in the shift-bounds validation. Because the vector is local with low attack complexity, the main realistic path is a process already running attacker-influenced inputs on the same host, yielding limited confidentiality/integrity/availability impact. No working public exploit code has been identified; only the upstream patch is published. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 29, 2026
An integer overflow in the ggml_roll tensor operation of ggml-org llama.cpp through 0.8.0 lets a local attacker who can supply crafted shift values corrupt memory within a process using the library, yielding low-confidentiality, low-integrity and low-availability impact. The CWE-190 flaw stems from bounds assertions that used abs(shift) < ne[], which can be bypassed by overflow; exploitation requires local access and low privileges, per the CVSS vector AV:L/PR:L. No public exploit code or CISA KEV entry is associated with this issue, and upgrading to 0.9.0 resolves it.
RemediationAI
Upgrade llama.cpp to 0.9.0, which incorporates the fix (https://github.com/ggml-org/llama.cpp/releases/tag/v0.9.0); the specific patch commit is 0978a6e9022fb9bd6874b86154ee304e81929b9f, available via PR 30375, and the vendor states that upgrading the affected component resolves the issue. Because the flaw is only reachable locally with low privileges, interim risk reduction centers on not running untrusted models, compute graphs or GGUF files through builds older than 0.9.0 and on restricting which local users can invoke inference workloads that exercise ggml_roll; note that this limits exposure but does not remove the integer-overflow defect, which only the patched code addresses. No further workarounds are specified in the available sources, and per the priority label this can be scheduled within the current month rather than treated as an emergency.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
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, and its ggml tensor library provides the low-level tensor primitives, including ggml_roll, which rotates tensor elements along each dimension by shift0 through shift3. The upstream fix (commit 0978a6e9022fb9bd6874b86154ee304e81929b9f, PR 30375) replaces the four assertions of the form GGML_ASSERT(abs(shiftN) < a->ne[N]) with explicit two-sided range checks GGML_ASSERT(shiftN > -a->ne[N] && shiftN < a->ne[N]). The original form evaluated abs() on a signed shift value, which is itself an integer-overflow hazard (CWE-190) and can be defeated by values whose absolute value does not behave as intended, allowing shifts outside the tensor dimension to proceed. The exact downstream memory effect of bypassing the check is not described in the available sources; the trigger is an attacker-influenced shift argument reaching the roll operation, reachable locally by code or a compute graph/model fed into a process that uses the library. CPE data identifies ggml-org llama.cpp versions up to 0.8.0 as affected. The submitted CVSS 4.0 vector rates 4.8 (AV:L/AC:L/AT:N/PR:L/UI:N, low C/I/A); the independent assessment aligns at CVSS 3.1 AV:L/AC:L/PR:L/UI:N/S:U with low impacts on all three pillars.
Know when Llama Cpp gets its next vulnerability
- 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:L/AC:L/AT:N/PR:L/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N
Local invocation of the library with crafted shift inputs (AV:L), no special timing so AC:L, and a low-privilege local caller (PR:L); impact bounded to low across C/I/A.
Primary rating from Vendor (VulDB).
CVSS VectorVendor: VulDB
DescriptionCVE.org
A security flaw has been discovered in ggml-org llama.cpp up to 0.8.0. This vulnerability affects the function ggml_roll of the file ggml/src/ggml.c of the component Ggml Tensor Library Roll Operation. The manipulation results in integer overflow. The attack needs to be approached locally. Upgrading to version 0.9.0 is able to resolve this issue. The patch is identified as 0978a6e9022fb9bd6874b86154ee304e81929b9f. It is suggested to upgrade the affected component.
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.
Integer overflow occurs when an arithmetic operation produces a result that exceeds the maximum value a given integer type can store.
Arbitrary memory write in llama.cpp's RPC server allows remote unauthenticated attackers to corrupt arbitrary memory add
Remote code execution in llama.cpp (commit 18c2e17) is possible when a user opens a malicious .gguf model file, triggeri
Llama.cpp server endpoints fail to validate the n_discard parameter from JSON input, allowing negative values that trigg
Remote code execution in llama.cpp (commit 18c2e17) is possible when a victim loads a malicious .gguf model file, trigge
Remote code execution in llama.cpp (GGUF library) allows attackers to achieve arbitrary code execution by tricking a use
Remote code execution in llama.cpp (commit 18c2e17) occurs when the GGUF library's gguf_fread_str function parses a mali
Heap-based buffer overflow in llama.cpp's GGUF library header parser (commit 18c2e17) enables code execution when a vict
CVE-2025-52566 is a signed vs. unsigned integer overflow vulnerability in llama.cpp's tokenizer (llama_vocab::tokenize f
Remote code execution in llama.cpp RPC backend allows unauthenticated attackers with TCP access to achieve arbitrary mem
llama.cpp provides LLM inference in C/C++. Rated medium severity (CVSS 5.3), this vulnerability is remotely exploitable,
Heap buffer overflow in llama.cpp's server KV cache state-restore path (builds b4882 through b9058) lets an attacker who
Unauthenticated remote attackers who can reach the ggml RPC server in llama.cpp b11450 before b12658 can exploit an out-
EUVD-2026-137636
GHSA-gx4g-qh5x-qqfx
NVD
CVE.org
EPSS
VulDB
Exploit-DB