---
id: CVE-2026-126975
title: >-
  llama.cpp GGUF File Parsing Heap-based Buffer Overflow Remote Code Execution
  Vulnerability
summary: >-
  llama.cpp GGUF File Parsing Heap-based Buffer Overflow Remote Code Execution
  Vulnerability. This vulnerability allows remote attackers to execute arbitrary
  code on affected installations of llama.cpp. User interaction is required to
  expl…
severity: high
cvss: 7.8
cvssVector: 'CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H'
cvssSource: cna
cwe:
  - CWE-122
vendor: llama.cpp
product: llama.cpp
affected:
  - llama.cpp b11160 (70c4e1582)
published: '2026-11-17'
updated: '2026-11-17'
sourceUpdated: '2026-11-17T23:15:46.946Z'
source: CVEORG
sourceUrl: 'https://www.cve.org/CVERecord?id=CVE-2026-126975'
references:
  - url: 'https://www.zerodayinitiative.com/advisories/ZDI-26-976/'
    label: ZDI-26-976
  - url: 'https://github.com/ggml-org/llama.cpp/pull/31336'
    label: vendor-provided URL
tags:
  - cve.org
zeroDay: true
ingestedAt: '2026-11-17T23:47:04.401Z'
---

## Overview

llama.cpp GGUF File Parsing Heap-based Buffer Overflow Remote Code Execution Vulnerability. This vulnerability allows remote attackers to execute arbitrary code on affected installations of llama.cpp. User interaction is required to exploit this vulnerability in that the target must visit a malicious page or open a malicious file.

The specific flaw exists within the parsing of GGUF files. The issue results from the lack of proper validation of the length of user-supplied data prior to copying it to a heap-based buffer. An attacker can leverage this vulnerability to execute arbitrary code in the context of the current process. Was ZDI-CAN-34558.

## Affected

- `llama.cpp b11160 (70c4e1582)`

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
