Mlflow mlflow/mlflow
Command Injection in mlflow/mlflow
A command injection vulnerability exists in mlflow/mlflow when serving a model with `enable_mlserver=True`. The `model_uri` is embedded directly into a shell command executed via `bash -c` without proper sanitization. If the `model_uri` contains shell metacharacters, such as `$()` or backticks, it allows for command substitution and execution of attacker-controlled commands. This vulnerability affects the latest version of mlflow/mlflow and can lead to privilege escalation if a higher-privileged service serves models from a directory writable by lower-privileged users.
Affected versions and mitigation
From the CVE record, GitHub Security Advisories and the vendor's references.Affected
- >= unspecified, <= latest
Mitigation
Upgrade mlflow to 3.9.0 or later.
Timeline
Days relative to CVE publicationFirst public PoC 48 days after publication; not in CISA KEV. First PoC: SparshBiswas-AI/CVE-2026-0596-Reproduction (created 18 May 2026, found by us: backfilled).
PoC repositories
Found on GitHub.1 PoCs
PoCs 1
| Repository | Created | Stars | Assessment |
|---|---|---|---|
| SparshBiswas-AI/CVE-2026-0596-Reproduction | 18 May 2026 +48 d | 0 | PoC |
Only PoCs count toward the first-PoC date and the characteristics below. Do not run PoC code from unknown sources.
PoC characteristics
What to hunt for in your logs · from 1 PoC repoGET /var/lib/apt/lists/*
- Ports
- 5000
- Seen in
- 1 repo: SparshBiswas-AI/CVE-2026-0596-Reproduction
- Evidence
- SparshBiswas-AI/CVE-2026-0596-Reproduction/README.md:53
POST /invocations
- Content-Type
application/json- Ports
- 5000
- Seen in
- 1 repo: SparshBiswas-AI/CVE-2026-0596-Reproduction
- Evidence
- SparshBiswas-AI/CVE-2026-0596-Reproduction/verify_poc.py:30
Regex
Generated from PoC characteristics; not yet reviewed. Matches the request path and query.
(?i)^/var/lib/apt/lists/\*(?:[?#].*)?$
(?i)^/invocations(?:[?#].*)?$
Suricata
Template generated from PoC characteristics. Review before deploying.
alert http any any -> $HOME_NET [5000] (msg:"GG PoC-Monitor CVE-2026-0596 mlflow mlflow/mlflow exploit attempt"; flow:established,to_server; http.method; content:"GET"; http.uri; content:"/var/lib/apt/lists/*"; reference:url,poc.griffinguard.io/cve/CVE-2026-0596; classtype:web-application-attack; sid:9702852; rev:1;)
alert http any any -> $HOME_NET [5000] (msg:"GG PoC-Monitor CVE-2026-0596 mlflow mlflow/mlflow exploit attempt"; flow:established,to_server; http.method; content:"POST"; http.uri; content:"/invocations"; reference:url,poc.griffinguard.io/cve/CVE-2026-0596; classtype:web-application-attack; sid:9834189; rev:1;)
Sigma
Template generated from PoC characteristics. Review before deploying.
title: mlflow mlflow/mlflow exploit attempt (CVE-2026-0596)
id: gg-pocmon-cve-2026-0596-9702852
status: experimental
description: Request pattern taken from public PoCs for CVE-2026-0596. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2026-0596
logsource:
category: webserver
detection:
selection:
cs-method: GET
cs-uri-stem|contains|all:
- '/var/lib/apt/lists/*'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: critical
tags:
- attack.initial_access
- attack.t1190
- cve.2026.0596
title: mlflow mlflow/mlflow exploit attempt (CVE-2026-0596)
id: gg-pocmon-cve-2026-0596-9834189
status: experimental
description: Request pattern taken from public PoCs for CVE-2026-0596. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2026-0596
logsource:
category: webserver
detection:
selection:
cs-method: POST
cs-uri-stem|contains|all:
- '/invocations'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: critical
tags:
- attack.initial_access
- attack.t1190
- cve.2026.0596