9.6critical
Command Injection in mlflow/mlflow
- Severity
- 9.6critical CVSS:3.0 by @huntr_ai
- Exploit likelihood
- 1.39% (higher than 73% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- @huntr_ai
- Also known as
- GHSA-rvhj-8chj-8v3cBIT-MLFLOW-2026-0596PYSEC-2026-424
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| mlflow mlflow/mlflow | from unspecified up to latest | CVE List |
| mlflow (PyPI) | before 3.9.0 | GitHub Advisory Database, PyPA Advisory Database |
| lfprojects mlflow | Not specified | NVD |
| mlflow (Bitnami) | before 3.11.1 | Bitnami Vulnerability Database |
All scores
| @huntr_ai | 9.6critical CVSS:3.0 | CVSS:3.0/AV:A/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H |
| GitHub | 9.6critical CVSS:3.0 | CVSS:3.0/AV:A/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H |
| NVD | 7.8high CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| PyPA Advisory Database | 9.6critical CVSS:3.0 | CVSS:3.0/AV:A/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H |
| Bitnami Vulnerability Database | critical rating |
Classification
SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total.
What each source says
CVE List
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.
GitHub Advisory Database
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.
NVD (es)
Una vulnerabilidad de inyección de comandos existe en mlflow/mlflow al servir un modelo con 'enable_mlserver=True'. El 'model_uri' se incrusta directamente en un comando de shell ejecutado a través de 'bash -c' sin una sanitización adecuada. Si el 'model_uri' contiene metacaracteres de shell, como $() o comillas invertidas, permite la sustitución de comandos y la ejecución de comandos controlados por el atacante. Esta vulnerabilidad afecta la última versión de mlflow/mlflow y puede conducir a la escalada de privilegios si un servicio con mayores privilegios sirve modelos desde un directorio escribible por usuarios con menores privilegios.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-0596 changed 2026-04-01 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-rvhj-8chj-8v3c changed 2026-11-16 | CC-BY-4.0 |
| NVD | CVE-2026-0596 changed 2026-07-21 | Public domain |
| PyPA Advisory Database | PYSEC-2026-424 changed 2026-07-01 | CC-BY-4.0 |
| Bitnami Vulnerability Database | BIT-MLFLOW-2026-0596 changed 2026-09-10 | Apache-2.0 |