GGUF clip memory corruption PoC
This repository contains proof-of-concept GGUF files for a llama.cpp clip.cpp metadata type-confusion issue.
Included files:
gguf-clip-short-both-u8.ggufgguf-clip-scalar-mean-u8.ggufgen_clip_oob_poc.py
Summary:
clip.vision.image_meanandclip.vision.image_stdare consumed asfloat[3]- the loader does not verify array-ness, subtype, or minimum length before reading
- malformed GGUF metadata can therefore be interpreted with the wrong type during model load
Relevant code paths in llama.cpp:
tools/mtmd/clip.cppggml/src/gguf.cpp
PoC notes:
gguf-clip-short-both-u8.ggufstoresimage_meanandimage_stdasarr[u8,1]gguf-clip-scalar-mean-u8.ggufstoresimage_meanas scalaru8- both files are valid enough to reach the vulnerable metadata-consumption path during load
This repo is intended for responsible vulnerability reporting and reproduction.
- Downloads last month
- -
Hardware compatibility
Log In to add your hardware
We're not able to determine the quantization variants.
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐ Ask for provider support