Skip to content
HighVulnerabilityLLM-specific

CVE-2026-33298: llama.cpp integer overflow in ggml_nbytes via crafted GGUF file

Identifier
CVE-2026-33298
Published
Record updated
View JSON
Fixed in
The source references a patch, a mitigation or a vendor advisory.

Summary

CVE-2026-33298 affects llama.cpp versions prior to b7824. An integer overflow in the `ggml_nbytes` function lets an attacker craft a GGUF file with specific tensor dimensions that bypass memory validation, so `ggml_nbytes` returns a much smaller size than required (for example 4MB instead of Exabytes). The application then suffers a heap-based buffer overflow when it processes the tensor, which allows potential Remote Code Execution via memory corruption.

Mitigation

Fixed in b7824.