Mlflow: Command Injection when serving models with enable_mlserver=True
A command injection vulnerability exists in 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 software
Click a technology to see all vulnerabilities affecting it.
| Platform | Package | Vulnerable versions | Fixed in |
|---|---|---|---|
| Python (PyPI) | mlflow | < 3.9.0 | 3.9.0 |
References
- https://nvd.nist.gov/vuln/detail/CVE-2026-0596
- https://github.com/mlflow/mlflow/pull/19738
- https://github.com/mlflow/mlflow/commit/202fac4c83ccc8544c087c142b80196d0e60695c
- https://github.com/mlflow/mlflow
- https://huntr.com/bounties/2e905add-f9f5-4309-a3db-b17de5981285
- https://pypi.org/project/mlflow
- https://github.com/advisories/GHSA-rvhj-8chj-8v3c
- CVSS vector
CVSS:3.0/AV:A/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H- Weakness (CWE)
CWE-78- Platform
- Python (PyPI)
- Package
mlflow- Disclosed
- 31.03.2026
- Updated
- 11.10.2026 12:20
Sources and licenses
OSV / GitHub Advisory Database - GHSA-rvhj-8chj-8v3c - CC BY 4.0
OSV / GitHub Advisory Database - PYSEC-2026-424 - PyPA Advisory Database; CC BY 4.0
Vulnerability history: mlflow
All published vulnerabilities of this package (Python (PyPI)), newest first. Shows whether this is a one-off slip or a package that needs watching.
- Total entries
- 82
- First → latest
- 02.2022 09.2026
- Without a fix
- 18
- Exploited in attacks
- 1
Severity breakdown
- Critical 20
- High 48
- Medium 13
- Low 1
Disclosures per year
- 2022: 1
- 2023: 22
- 2024: 24
- 2025: 8
- 2026: 27
-
Mlflow: Command Injection when serving models with enable_mlserver=True this entry
Know which vulnerabilities affect your application
With the DockRay integration and software inventory enabled, DockRay checks reported component versions against known vulnerabilities and notifies you about confirmed matches. Coverage depends on the supported technology and available advisory data.