TFLite Model File Vulnerability PoC
Vulnerability
OOM via Huge Tensor Metadata and Circular Reference DoS in TFLite (.tflite) files
Files
poc_oom_tensor.tflite— 256 bytes, flatbuffer claiming 4GB buffer allocationpoc_circular_refs.tflite— 4KB, cross-referencing flatbuffer offsets causing parsing loopsbenign.tflite— Clean TFLite file for comparison
Reproduce
import tensorflow as tf
interpreter = tf.lite.Interpreter(model_path='poc_oom_tensor.tflite') # OOM