Downloads · 30 days
7
6% of all-time downloads
AgentRen/gguf-stride-overflow-poc
gguf-stride-overflow-poc is a machine learning model from AgentRen. Use it for the machine learning task on the model card, and read the license before you ship it in a product.
Security Research — Vulnerability Proof of Concept
Downloads · 30 days
7
6% of all-time downloads
All-time downloads
127
Public
Repo size
—
Likes
1
Public
Click a slice to open those files.
.py3.2 KB · 51%
From the Hugging Face model README
Security Research — Vulnerability Proof of Concept
The GGUF parser in ggml validates that tensor element counts fit in int64_t but does NOT validate that byte-level stride calculations (nb[]) fit in size_t.
A malicious GGUF file can craft tensor dimensions where:
ne[0] passes the INT64_MAX element count checknb[1] = type_size * ne[0] overflows size_t to a small valueggml_nbytes() returns the overflowed (small) valuemalicious.gguf — Malicious GGUF file (576 bytes)poc.py — Generator scriptHeap buffer overflow (read/write) when loading a crafted .gguf model file with no_alloc=false.
Affects all GGML-based inference engines (llama.cpp, whisper.cpp, etc.).