You need to agree to share your contact information to access this model

This repository is publicly accessible, but you have to accept the conditions to access its files and content.

Log in or Sign Up to review the conditions and access this model content.

ModelScan Bypass PoC β€” _posixsubprocess.fork_exec

Security research for responsible disclosure via Huntr MFV program.

Vulnerability

_posixsubprocess.fork_exec is not in modelscan's unsafe_globals blocklist. When a pickle file containing this global is scanned by modelscan, it reports "No issues found." However, loading the file with pickle.loads() / torch.load() triggers DIRECT fork() + exec() syscall β€” spawns arbitrary process. subprocess module is blocked but its C implementation _posixsubprocess is NOT..

Impact

  • Severity: CRITICAL
  • Effect: DIRECT fork() + exec() syscall β€” spawns arbitrary process. subprocess module is blocked but its C implementation _posixsubprocess is NOT.

Bypass Class

subprocess is blocked with * wildcard, but _posixsubprocess (the C extension that subprocess uses internally) is not in the blocklist. This function directly calls fork() and execvp() β€” full arbitrary command execution.

Reproduction

pip install modelscan
modelscan scan -p bypass_poc.pkl
# Output: "No issues found!"
Downloads last month

-

Downloads are not tracked for this model. How to track
Inference Providers NEW
This model isn't deployed by any Inference Provider. πŸ™‹ Ask for provider support