Downloads · 30 days
0
renaissancefieldlite/tris-safetensors-handle-toctou-poc
tris-safetensors-handle-toctou-poc is a machine learning model from renaissancefieldlite. Use it for the machine learning task on the model card, and read the license before you ship it in a product. It is set up for safetensors.
Responsible-disclosure PoC for SafeTensors .safetensors model loading.
Downloads · 30 days
0
Access
Public
Updated Jul 13, 2026
Repo size
—
Likes
0
Public
Click a slice to open those files.
.py3 KB · 47%
From the Hugging Face model README
Responsible-disclosure PoC for SafeTensors .safetensors model loading.
.safetensorshuggingface/safetensors6eb4dc9a28ebce297606e0f4836bbf28839cacefsafetensors._safe_open_handle_safe_open_handle accepts a file object but reopens f.name instead of using
the already-open file descriptor. A caller that validates a trusted file handle
can be raced into loading a replacement file at the same path.
python probe_safe_open_handle_toctou.py
Expected PoC signal:
67.0 from the replacement filevuln_present: trueThis is a local file-handle semantic bypass / TOCTOU report. It is not RCE and does not claim memory corruption.