Skip to content
OpenAdvisories
Medium · 6.1 CVE-2024-58399 EUVD-2024-55826GHSA-xf8w-pfxh-7xj3

llama.cpp before b2731 Out-of-Bounds Read via GGUF Tensor Offsets

Published Oct 27, 2026 · Updated Nov 2, 2026 · Assigned by VulnCheck

Description

llama.cpp before b2731 contains an out-of-bounds read vulnerability in llama_model_loader that allows attackers to read memory outside the mapped model file via crafted GGUF tensor offsets. Attackers can supply a crafted or truncated GGUF model file with arbitrary 64-bit tensor offsets to crash the process or load adjacent process memory as model weights.

Affected products

VendorProductAffectedFixed
ggml-org llama.cpp b1046 – < b2731 b2731

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Ubuntu 26.10 llama.cpp No fix yet —
Ubuntu 26.04 LTS llama.cpp No fix yet —

References