Downloads · 30 days
0
0xiviel/poc-pytorch-jit-binunicode
poc-pytorch-jit-binunicode 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: unpickler.cpp:344 reads BINUNICODE8 length as int64t (signed) instead of uint64t. The implicit conversion to sizet in readBytes() causes 32-bit truncation on ARM mobile (pickle desync → corruption) and…
Downloads · 30 days
0
Access
Public
Updated Feb 13, 2026
Repo size
—
Likes
0
Public
Click a slice to open those files.
.py13.6 KB · 78%
From the Hugging Face model README
Vulnerability: unpickler.cpp:344 reads BINUNICODE8 length as int64_t (signed) instead of uint64_t. The implicit conversion to size_t in readBytes() causes 32-bit truncation on ARM mobile (pickle desync → corruption) and DoS on 64-bit (excessive allocation).
poc_binunicode8_overflow.py — Full PoC with code analysis, 64-bit DoS demo, 32-bit truncation testtest_truncation.cpp — Standalone C++ 32-bit truncation demonstrationpip install torch
python poc_binunicode8_overflow.py