p PatchFirst

CVE-2026-33298

CVE-2026-33298 · llama.cpp has a Heap Buffer Overflow via Integer Overflow in GGUF Tensor Parsing

This page contains facts from public vulnerability sources. Check the original advisory before updating.

llama.cpp is an inference of several LLM models in C/C++. Prior to b7824, an integer overflow vulnerability in the `ggml_nbytes` function allows an attacker to bypass memory validation by crafting a GGUF file with specific tensor dimensions. This causes `ggml_nbytes` to return a significantly smaller size than required (e.g., 4MB instead of Exabytes), leading to a heap-based buffer overflow when the application subsequently processes the tensor. This vulnerability allows potential Remote Code Execution (RCE) via memory corruption. b7824 contains a fix.

CVSS 7.8 · High · EPSS 0.5% · Fix available

Published
Updated

Stack: system

Affected products and versions

  • llama.cpp

    Versions
    • < b7824: Affected

    No fix published

  • llama.cpp Debian:14

    Versions
    • 5151+dfsg-1~exp2
    • 5151+dfsg-1~exp3
    • 5318+dfsg-1
    • 5318+dfsg-2
    • 5713+dfsg-1
    • 5760+dfsg-1
    • 5760+dfsg-2
    • 5760+dfsg-3
    • 5760+dfsg-4
    • 5882+dfsg-1
    • 5882+dfsg-2
    • 5882+dfsg-3
    • 5882+dfsg-3~exp1
    • 5882+dfsg-3~exp2
    • 5882+dfsg-3~exp3
    • 5882+dfsg-4
    • 6641+dfsg-1
    • 6641+dfsg-2
    • 6641+dfsg-3
    • 7593+dfsg-1
    • 7593+dfsg-2
    • 7593+dfsg-3
    Affected ranges
    • ECOSYSTEM: < 7965+dfsg-1

    Update to 7965+dfsg-1

  • llama.cpp Ubuntu:25.10

    Versions
    • 5318+dfsg-1
    • 5318+dfsg-2
    • 5713+dfsg-1
    • 5760+dfsg-1
    • 5760+dfsg-3
    • 5760+dfsg-4
    • 5882+dfsg-2
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • llama.cpp Ubuntu:26.10

    Versions
    • 8681+dfsg-1
    • 9721+dfsg-1ubuntu1
    • 10438+dfsg-1
    • 10438+dfsg-1ubuntu1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • llama.cpp Ubuntu:26.04:LTS

    Versions
    • 5882+dfsg-2
    • 8064+dfsg-1ubuntu1
    • 8681+dfsg-1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

Original sources

Check your server →