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

Published Mar 24, 2026
·
Updated

llama.cpp is an inference of several LLM models in C/C++. Prior to b7824, an integer overflow vulnerability in the ggmlnbytes function allows an attacker to bypass memory validation by crafting a GGUF file with specific tensor dimensions. This causes ggmlnbytes 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.

Affected Software

2 affected components
Llama.cpp llama.cpp<b7824
ggml llama.cpp<b7824

Event History

Mar 24, 2026
CVE Published
via MITRE·12:01 AM
Data Sourced
via MITRE·12:01 AM
DescriptionSeverityWeakness
Data Sourced
via NVD·01:17 AM
DescriptionSeverityWeaknessAffected Software
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2026-33298?

CVE-2026-33298 has been classified as a high-severity vulnerability due to its potential to cause a heap buffer overflow leading to memory corruption.

2

How do I fix CVE-2026-33298?

To fix CVE-2026-33298, upgrade your llama.cpp software to version b7824 or later.

3

What is the impact of CVE-2026-33298?

CVE-2026-33298 can allow attackers to execute arbitrary code or crash the application by exploiting the heap buffer overflow.

4

What component is affected by CVE-2026-33298?

CVE-2026-33298 affects the `ggml_nbytes` function in the llama.cpp inference library.

5

Is CVE-2026-33298 related to any specific file type?

Yes, CVE-2026-33298 is related to GGUF files, which can be crafted to exploit the integer overflow vulnerability.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203