Downloads · 30 days
0
manja316/modelscan-bypass-atexit-rce
modelscan-bypass-atexit-rce is a machine learning model from manja316. Use it for the machine learning task on the model card, and read the license before you ship it in a product. The card lists the license as mit.
Security research only. Do not use for malicious purposes.
Downloads · 30 days
0
Access
Public
Updated Apr 11, 2026
Repo size
225 B
Likes
0
Public
Click a slice to open those files.
Other1.5 KB · 64%
From the Hugging Face model README
Security research only. Do not use for malicious purposes.
Chains atexit.register with timeit.timeit for immediate + deferred code execution. atexit is not in modelscan's unsafe_globals blocklist. RCE fires during pickle.load AND again at Python interpreter exit.
pip install modelscan
modelscan scan -p pytorch_model.bin
# Result: No issues found
python3 -c "import pickle; pickle.load(open('pytorch_model.bin', 'rb'))"
# Result: Code executes
Submitted to ProtectAI via Huntr.