7.8high
Command Injection in mlflow/mlflow
- Severity
- 7.8high CVSS:3.1 by redhat-SADP
- Exploit likelihood
- 1.71% (higher than 78% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- @huntr_ai
- Also known as
- GHSA-xch3-2f9x-wh9fBIT-MLFLOW-2025-14287PYSEC-2026-2661
Description
A command injection vulnerability exists in mlflow/mlflow versions before v3.7.0, specifically in the `mlflow/sagemaker/__init__.py` file at lines 161-167. The vulnerability arises from the direct interpolation of user-supplied container image names into shell commands without proper sanitization, which are then executed using `os.system()`. This allows attackers to execute arbitrary commands by supplying malicious input through the `--container` parameter of the CLI. The issue affects environments where MLflow is used, including development setups, CI/CD pipelines, and cloud deployments.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| mlflow mlflow/mlflow | from unspecified up to latest | 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.0rc0 | GitHub Advisory Database, PyPA Advisory Database |
| lfprojects mlflow | before 3.7.0 | NVD |
| mlflow (Bitnami) | before 3.7.0 | Bitnami Vulnerability Database |
All scores
| @huntr_ai | 7.5high CVSS:3.0 | CVSS:3.0/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H |
| redhat-SADP | 7.8high CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| GitHub | 7.5high CVSS:3.0 | CVSS:3.0/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H |
| NVD | 8.8high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
| PyPA Advisory Database | 7.5high CVSS:3.0 | CVSS:3.0/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H |
| Bitnami Vulnerability Database | high rating |
Classification
What each source says
CVE List
A command injection vulnerability exists in mlflow/mlflow versions before v3.7.0, specifically in the `mlflow/sagemaker/__init__.py` file at lines 161-167. The vulnerability arises from the direct interpolation of user-supplied container image names into shell commands without proper sanitization, which are then executed using `os.system()`. This allows attackers to execute arbitrary commands by supplying malicious input through the `--container` parameter of the CLI. The issue affects environments where MLflow is used, including development setups, CI/CD pipelines, and cloud deployments.
NVD (es)
Una vulnerabilidad de inyección de comandos existe en las versiones de mlflow/mlflow anteriores a la v3.7.0, específicamente en el archivo 'mlflow/sagemaker/__init__.py' en las líneas 161-167. La vulnerabilidad surge de la interpolación directa de nombres de imágenes de contenedores proporcionados por el usuario en comandos de shell sin una sanitización adecuada, los cuales son luego ejecutados usando 'os.system()'. Esto permite a los atacantes ejecutar comandos arbitrarios al proporcionar entrada maliciosa a través del parámetro '--container' de la CLI. El problema afecta a los entornos donde se utiliza MLflow, incluyendo configuraciones de desarrollo, pipelines de CI/CD y despliegues en la nube.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2025-14287 changed 2026-07-15 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-xch3-2f9x-wh9f changed 2026-09-10 | CC-BY-4.0 |
| NVD | CVE-2025-14287 changed 2026-07-15 | Public domain |
| PyPA Advisory Database | PYSEC-2026-2661 changed 2026-07-13 | CC-BY-4.0 |
| Bitnami Vulnerability Database | BIT-MLFLOW-2025-14287 changed 2026-09-10 | Apache-2.0 |