ModelScan Bypass PoC โ doctest.debug_script
Security research for responsible disclosure via Huntr MFV program.
Vulnerability
doctest.debug_script is not in modelscan's unsafe_globals blocklist.
modelscan reports "No issues found" but loading triggers FULL ARBITRARY CODE EXECUTION via exec() on source string. With pm=True, directly calls exec(src, globs, globs). Verified: writes files, executes OS commands..
Impact: CRITICAL
Reproduction
pip install modelscan
modelscan scan -p bypass_poc.pkl
# Output: "No issues found!"
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐ Ask for provider support