Downloads · 30 days
0
0xiviel/poc-pytorch-flatbuf-storage
poc-pytorch-flatbuf-storage is a machine learning model from 0xiviel. Use it for the machine learning task on the model card, and read the license before you ship it in a product.
Vulnerability: flatbufferloader.cpp:696-700 — getStorage() bounds-checks against storages.size() (sized from storagedatasize int field) but accesses storagedata() (the actual flatbuffer vector). A crafted .ptl file wi…
Downloads · 30 days
0
Access
Public
Updated Feb 13, 2026
Repo size
—
Likes
0
Public
Click a slice to open those files.
.pyc20.3 KB · 49%
From the Hugging Face model README
Vulnerability: flatbuffer_loader.cpp:696-700 — getStorage() bounds-checks against storages_.size() (sized from storage_data_size int field) but accesses storage_data() (the actual flatbuffer vector). A crafted .ptl file with storage_data_size > storage_data()->size() causes an OOB read on the storage vector.
poc_flatbuf_storage_oob.py — Full PoC (creates crafted .ptl, triggers SIGSEGV)malicious_storage_oob.ptl — Pre-built crafted modelpip install torch
python poc_flatbuf_storage_oob.py
storage_data_size + OOB storage_location_index