9.0critical
Command Injection in mlflow/mlflow
- Severity
- 9.0critical CVSS:3.1 by redhat-SADP
- Exploit likelihood
- 2.77% (higher than 86% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- @huntr_ai
- Also known as
- GHSA-r23q-823p-vmf7BIT-MLFLOW-2025-15379PYSEC-2026-423
Description
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| mlflow mlflow/mlflow | from unspecified before 3.8.2 | CVE List |
| rhoai/odh-mlflow-rhel9 | Not specified | CVE List |
| rhoai/odh-training-cuda128-torch29-py312-rhel9 | Not specified | CVE List |
| mlflow (PyPI) | before 3.8.1 | GitHub Advisory Database, PyPA Advisory Database |
| lfprojects mlflow | from 3.8.0 before 3.8.1 | NVD |
| mlflow (Bitnami) | from 3.8.0 before 3.8.1 | Bitnami Vulnerability Database |
All scores
| @huntr_ai | 10.0critical CVSS:3.0 | CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H |
| redhat-SADP | 9.0critical CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H |
| GitHub | 10.0critical CVSS:3.0 | CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H |
| NVD | 10.0critical CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H |
| PyPA Advisory Database | 10.0critical CVSS:3.0 | CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H |
| Bitnami Vulnerability Database | critical rating |
Classification
What each source says
CVE List
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.
GitHub Advisory Database
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.1.
NVD (es)
Existe una vulnerabilidad de inyección de comandos en el código de inicialización del contenedor de servicio de modelos de MLflow, específicamente en la función `_install_model_dependencies_to_env()`. Al desplegar un modelo con `env_manager=LOCAL`, MLflow lee las especificaciones de dependencia del archivo `python_env.yaml` del artefacto del modelo y las interpola directamente en un comando de shell sin sanitización. Esto permite a un atacante suministrar un artefacto de modelo malicioso y lograr la ejecución arbitraria de comandos en sistemas que despliegan el modelo. La vulnerabilidad afecta a las versiones 3.8.0 y está corregida en la versión 3.8.2.
References
| https://huntr.com/bounties/dc9c1c20-7879-4050-87df-4d095fe5ca75 | advisory, exploit, third-party-advisory, web | |
| https://github.com/mlflow/mlflow/commit/361b6f620adf98385c6721e384fb5ef9a30bb05e | fix, patch, web | |
| https://access.redhat.com/security/cve/CVE-2025-15379 | advisory, third-party-advisory, vdb-entry, web | |
| https://bugzilla.redhat.com/show_bug.cgi?id=2452949 | advisory, issue-tracking, third-party-advisory, web | |
| https://security.access.redhat.com/data/csaf/v2/vex/2025/cve-2025-15379.json | advisory, third-party-advisory, web | |
| https://nvd.nist.gov/vuln/detail/CVE-2025-15379 | advisory, web | |
| https://github.com/mlflow/mlflow/commit/a22ce7157f646bdce4c95106fc38ccc9ca289205 | web | |
| https://github.com/mlflow/mlflow | package | |
| https://github.com/pypa/advisory-database/tree/main/vulns/mlflow/PYSEC-2026-423.yaml | web | |
| https://pypi.org/project/mlflow | package, web | |
| https://github.com/advisories/GHSA-r23q-823p-vmf7 | advisory | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2025-15379 changed 2026-09-07 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-r23q-823p-vmf7 changed 2026-11-16 | CC-BY-4.0 |
| NVD | CVE-2025-15379 changed 2026-09-04 | Public domain |
| PyPA Advisory Database | PYSEC-2026-423 changed 2026-07-01 | CC-BY-4.0 |
| Bitnami Vulnerability Database | BIT-MLFLOW-2025-15379 changed 2026-09-10 | Apache-2.0 |