CVE-2026-0596 Details
Description
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.
A command injection vulnerability has been identified in MLflow when serving models with the 'enable_mlserver' option enabled. This issue arises because the 'model_uri' is directly incorporated into a shell command executed via 'bash -c', without adequate sanitization. If the 'model_uri' includes shell metacharacters such as '$()', or backticks, it permits command substitution and the execution of commands controlled by an attacker. This vulnerability is present in the latest version of MLflow and could lead to privilege escalation if a service with higher privileges serves models from a directory that lower-privileged users can write to.
It is recommended to avoid using 'bash -c' for executing commands. Instead, use 'subprocess.Popen' with a list of arguments, which does not invoke a shell and therefore prevents command injection. If it is necessary to use 'bash -c', the 'model_uri' should be sanitized using 'shlex.quote' to escape any potentially dangerous characters.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Mar 31, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://huntr.com/bounties/2e905add-f9f5-4309-a3db-b17de5981285 | [email protected] | ExploitThird Party Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| lfprojects mlflow | All versions |
CPE
Remediation
| |
Change History
5 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jul 21, 2026 | CVE Translated | [email protected] |
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Apr 14, 2026 | Initial Analysis | [email protected] |
| Mar 31, 2026 | New CVE Received | [email protected] |