MLflow: Command Injection in Model Serving (CVE-2026-0596)
MLflow is vulnerable to command injection when serving models with enable_mlserver=True, as unvalidated model_uri parameters containing shell metacharacters allow for arbitrary command execution.
CVE search metadata
CVE search record: CVE-2026-0596. Severity: high. CVSS: 7.8. EPSS: 1.32%. KEV: no. Product: mlflow/mlflow. Brief: MLflow: Command Injection in Model Serving (CVE-2026-0596). Brief link: https://feed.craftedsignal.io/briefs/2026-11-mlflow-insecure-deserialization-cve-2026-0596/
Triage facts
Revision 1- Applicability
- mlflow/mlflow
- Evidence
- Unknown
- Severity
- Critical
- Sources
- 2 public sources
- Freshness
- Revision 1Nov 19, 22:31 UTC
- Vulnerabilities
- 1 CVE
- Source quality
- C3Roughly even chance
Overview
A command injection vulnerability exists in mlflow/mlflow when serving a model with enable_mlserver=True. The model_uri parameter 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.
Attack Chain
- An attacker identifies an MLflow instance configured with
enable_mlserver=True. - The attacker provides a crafted
model_uricontaining shell metacharacters (e.g.,$()or backticks) to the service. - The application incorporates the unvalidated input into a shell command executed via
bash -c, resulting in the execution of arbitrary commands with the privileges of the serving process.
Impact
Successful exploitation allows for arbitrary command execution, which can lead to privilege escalation if a higher-privileged service serves models from a directory writable by lower-privileged users.
Recommendation
The provided CNA information does not specify a fixed version or a definitive remediation. Users should monitor for unauthorized use of shell metacharacters in model service configuration parameters until vendor-provided patches are identified.