Skip to main content

llama.cpp EUVDEUVD-2026-137636

| CVE-2026-138092 MEDIUM
Integer Overflow or Wraparound (CWE-190)
2026-11-28 VulDB GHSA-gx4g-qh5x-qqfx
4.8
CVSS 4.0 · Vendor: VulDB
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Gain local low-privileged access
  2. Exploit
    Supply crafted shift values to ggml_roll
  3. Execution
    Trigger integer overflow in bounds check
  4. Impact
    Cause 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.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.2% exploitation probability (EPSS)

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

Alert me

AnalysisAIv1 – 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

llama.cpp 0.4
llama.cpp 0.8.0
llama.cpp 0.1
llama.cpp 0.5
llama.cpp 0.7
llama.cpp 0.3
llama.cpp 0.6
llama.cpp 0.2

Affected Packages

euvd llama_cpp no fix

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

Vendor (VulDB) PRIMARY 4.8 MEDIUM
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
vuln.today AI 5.3 MEDIUM

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.

3.1 AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L
4.0 AV:L/AC:L/AT:N/PR:L/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N

Primary rating from Vendor (VulDB).

CVSS VectorVendor: VulDB

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

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

EPSS Score
0.2%
Top 97% exploitable
Prevalence
High
llama.cpp is a very widely deployed open-source LLM inference engine
Social Media
1
Sightings
Data Quality
7 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 MEDIUM
CISA KEV No
Public POC No
EPSS 0.2%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.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
None
System Exposure· derived
Small
Automatable· derived
No
Human Impact· derived
High

Priority Score

24
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +24
PoC: 0
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.

Integer overflow occurs when an arithmetic operation produces a result that exceeds the maximum value a given integer type can store.

CVE-2024-42479 CRITICAL POC
10.0 Aug 12

Arbitrary memory write in llama.cpp's RPC server allows remote unauthenticated attackers to corrupt arbitrary memory add

CVE-2024-21802 HIGH POC
8.8 Feb 26

Remote code execution in llama.cpp (commit 18c2e17) is possible when a user opens a malicious .gguf model file, triggeri

CVE-2026-21869 HIGH POC
8.8 Jan 08

Llama.cpp server endpoints fail to validate the n_discard parameter from JSON input, allowing negative values that trigg

CVE-2024-21825 HIGH POC
8.8 Feb 26

Remote code execution in llama.cpp (commit 18c2e17) is possible when a victim loads a malicious .gguf model file, trigge

CVE-2024-23605 HIGH POC
8.8 Feb 26

Remote code execution in llama.cpp (GGUF library) allows attackers to achieve arbitrary code execution by tricking a use

CVE-2024-23496 HIGH POC
8.8 Feb 26

Remote code execution in llama.cpp (commit 18c2e17) occurs when the GGUF library's gguf_fread_str function parses a mali

CVE-2024-21836 HIGH POC
8.8 Feb 26

Heap-based buffer overflow in llama.cpp's GGUF library header parser (commit 18c2e17) enables code execution when a vict

CVE-2025-52566 HIGH POC
8.6 Jun 24

CVE-2025-52566 is a signed vs. unsigned integer overflow vulnerability in llama.cpp's tokenizer (llama_vocab::tokenize f

CVE-2026-34159 CRITICAL
9.8 Apr 01

Remote code execution in llama.cpp RPC backend allows unauthenticated attackers with TCP access to achieve arbitrary mem

CVE-2024-42478 MEDIUM POC
5.3 Aug 12

llama.cpp provides LLM inference in C/C++. Rated medium severity (CVSS 5.3), this vulnerability is remotely exploitable,

CVE-2026-43629 CRITICAL
9.2 Aug 06

Heap buffer overflow in llama.cpp's server KV cache state-restore path (builds b4882 through b9058) lets an attacker who

CVE-2026-137567 CRITICAL
9.3 Nov 26

Unauthenticated remote attackers who can reach the ggml RPC server in llama.cpp b11450 before b12658 can exploit an out-

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