Downloads · 30 days
0
AgentRen/tflite-flatsize-overflow-poc
tflite-flatsize-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
0
Access
Public
Updated Feb 2, 2026
Repo size
—
Likes
0
Public
Click a slice to open those files.
Other1.5 KB · 50%
From the Hugging Face model README
Security Research — Vulnerability Proof of Concept
TFLite's RuntimeShape::FlatSize() multiplies all tensor dimensions into a 32-bit int
with ZERO overflow checking. The result feeds directly into memcpy size parameters in 30+
operator implementations, enabling heap buffer overflow.
poc_generator.py — Script to generate malicious .tflite filesREADME.md — This fileHeap buffer overflow when loading and running inference on a malicious .tflite model.