modelscan-bypass-profile
Modelscan Bypass PoC β profile.run
Severity: CRITICAL Impact: Full RCE via exec() β profile.run() calls exec() on the profiled code string modelscan version: 0.7.6 (latest on PyPI) Result: "No issues found!" β (false negative)
Chain
profile.run(malicious_code) β exec(malicious_code)
Why It Works
profile.run is NOT in modelscan's unsafe_globals blocklist.
profile is NOT in the blocklist.
Reproduction
pip install modelscan
modelscan scan -p bypass_poc.pkl
# Output: "No issues found!"
python3 -c "import pickle; pickle.loads(open('bypass_poc.pkl','rb').read())"
# Executes arbitrary code
Responsible Disclosure
This PoC is part of a responsible disclosure to ProtectAI via Huntr MFV program.
Inference Providers NEW
This model isn't deployed by any Inference Provider. π Ask for provider support