Downloads · 30 days
0
0xzap/picklescan-marshal-bypass-poc
picklescan-marshal-bypass-poc is a machine learning model from 0xzap. Use it for the machine learning task on the model card, and read the license before you ship it in a product.
model.pt is a standard PyTorch zip whose archive/data.pkl reconstructs and runs a code object at load time via two globals absent from picklescan's unsafeglobals denylist (marshal.loads - code object, types.FunctionTy…
Downloads · 30 days
0
Access
Public
Updated Jul 1, 2026
Repo size
676 B
Likes
0
Public
Click a slice to open those files.
Other1.5 KB · 37%
From the Hugging Face model README
model.pt is a standard PyTorch zip whose archive/data.pkl reconstructs and runs a code
object at load time via two globals absent from picklescan's _unsafe_globals denylist
(marshal.loads -> code object, types.FunctionType -> callable). picklescan <= 1.0.5
reports the file as clean.
pip install picklescan==1.0.5
python -m picklescan --path model.pt
Expected:
Scanned files: 1
Infected files: 0
Suspicious globals: 2
Dangerous globals: 0
python generate_payload.py
Expected: scan result: clean and marker: uid=... gid=... (output of id).
Affected: picklescan <= 1.0.5. CWE-693 / CWE-502.