CVE-2025-15379: Command Injection in mlflow/mlflow
A command injection vulnerability exists in MLflow's model serving container initialization code, specifically in the `_install_model_dependencies_to_env()` function. When deploying a model with `env_manager=LOCAL`, MLflow reads dependency specifications from the model artifact's `python_env.yaml` file and directly interpolates them into a shell command without sanitization. This allows an attacker to supply a malicious model artifact and achieve arbitrary command execution on systems that deploy the model. The vulnerability affects versions 3.8.0 and is fixed in version 3.8.2.
Security readout for executives and security teams
Plain-English summary
MLflow 3.8.0 can run unintended operating-system commands when serving a malicious model artifact. The risk appears highest where teams accept or automatically deploy model artifacts from users, partners, CI pipelines, or shared registries. The source bundle says version 3.8.2 fixes the issue.
Executive priority
Treat this as urgent for ML platforms that deploy user-supplied or pipeline-generated MLflow artifacts. Prioritize patching and artifact trust controls because successful abuse could give an attacker command execution in serving infrastructure.
Technical view
The flaw is command injection in MLflow model serving container initialization. With env_manager=LOCAL, _install_model_dependencies_to_env() reads dependency entries from python_env.yaml inside a model artifact and interpolates them into a shell command without sanitization, enabling arbitrary command execution when the artifact is deployed.
Likely exposure
Organizations using mlflow/mlflow 3.8.0 for model serving are most exposed, especially if model artifacts can be supplied by less-trusted users or automated pipelines. Exposure depends on using env_manager=LOCAL and deploying artifacts whose python_env.yaml is attacker-controlled.
Exploitation context
The bundle does not show KEV listing or confirmed active exploitation. It describes a low-complexity, unauthenticated path in the CVSS vector, but practical exploitation requires getting a malicious model artifact deployed by a vulnerable MLflow serving workflow.
Researcher notes
Do not broaden affected versions beyond the bundle evidence. The described sink is shell command construction from python_env.yaml dependency data during local environment handling. Validate by code review, version checks, and deployment-path analysis rather than offensive reproduction.
Mitigation direction
Upgrade affected MLflow deployments to version 3.8.2 or later.
Avoid deploying untrusted model artifacts with env_manager=LOCAL.
Restrict who can publish artifacts consumed by production serving systems.
Review vendor and downstream distributor advisories for environment-specific guidance.
Add artifact provenance checks before automated model deployment.
Validation and detection
Inventory MLflow deployments and identify any running version 3.8.0.
Find serving workflows that use env_manager=LOCAL.
Review model artifact sources and recent python_env.yaml changes.
Confirm deployed packages include the fixed MLflow release or vendor backport.
Check logs for unexpected dependency installation behavior around model deployment.
Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.
Potential ATT&CK relevance
Conservative CVE-to-ATT&CK context
These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.
ATT&CK lookup starting points
Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.
cwe · medium confidence lookup
CWE-77: Command execution behavior lookup
Command injection weaknesses can lead defenders to review execution techniques and command interpreter telemetry. Open the exact CWE lookup page first, then review the ATT&CK searches from that MITRE weakness context. This is a Glexia lookup hint, not an official ATT&CK mapping.
Command injection weaknesses can lead defenders to review execution techniques and command interpreter telemetry. Open the exact CWE lookup page first, then review the ATT&CK searches from that MITRE weakness context. This is a Glexia lookup hint, not an official ATT&CK mapping.
The CVE wording references code or command execution, so execution technique review may help defensive triage. This is a Glexia inferred lookup path, not an official MITRE, ATT&CK, or CVE Program mapping.
The affected technology mentions containers, so container-specific ATT&CK technique review may help. This is a Glexia inferred lookup path, not an official MITRE, ATT&CK, or CVE Program mapping.
These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.
2CVSS vectors
5Timeline events
2ADP providers
6Source links
SSVC decision data
CISA-ADPCISA Coordinator
Timestamp
Version
2.0.3
Exploitation: pocAutomatable: yesTechnical Impact: total
CVSS vector scores
2 official scores
We collect every scored CVSS vector available in the official CNA and ADP containers. When more than one version is present, the table keeps the source vectors side by side instead of collapsing them into the highest score.
CWE links open Glexia weakness intelligence pages with official CWE context, developer remediation guidance, and related CVE mappings.
CWE-77 · source CWE mapping
Improper Neutralization of Special Elements used in a Command ('Command Injection')
Improper Neutralization of Special Elements used in a Command ('Command Injection') represents a recurring weakness pattern that can create exploitable paths when design, validation, or implementation controls are missing.
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') represents a recurring weakness pattern that can create exploitable paths when design, validation, or implementation controls are missing.