# CVE-2025-14287: MLflow command injection in SageMaker container parameter

Source: https://junglewise.ai/threats/cve-2025-14287-mlflow-command-injection-in-sagemaker-container-parameter  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2026-03-16. Updated: 2026-06-30  
License: CC BY 4.0 with a link back

CVE-2025-14287 · Severity: high · CVSS 8.8 · Published 2026-03-16

MLflow, a platform used to manage machine learning lifecycles, contains a security flaw that allows for unauthorized command execution. By providing a specially crafted container image name, an attacker can run arbitrary code on the underlying system. This could lead to a total compromise of the environment, including the theft of sensitive training data or disruption of machine learning pipelines.

Technologies: [mlflow (PyPI)](https://junglewise.ai/threats/technologies/mlflow). Vendors: [PyPI](https://junglewise.ai/threats/vendors/pypi).

## Quick answers

**Is CVE-2025-14287 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2025-14287 being exploited in the wild.

**How severe is CVE-2025-14287?** High severity, with a CVSS score of 8.8, published 16 March 2026.

**Which products and versions are affected?** mlflow (PyPI) ECOSYSTEM:introduced=0,fixed=3.8.0rc0.

**Is there a fix for CVE-2025-14287?** Yes. mlflow (PyPI): upgrade to 3.8.0rc0 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**How is CVE-2025-14287 attacked?** It is attacked over the network or with local access, in a software library.

**Am I affected by CVE-2025-14287?** Check whether you run mlflow (PyPI) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix

- mlflow (PyPI): upgrade to 3.8.0rc0 or later

  ```sh
  pip install "mlflow>=3.8.0rc0"
  ```


## Technical details

A command injection vulnerability exists in MLflow's SageMaker integration module (`mlflow/sagemaker/__init__.py`). The root cause is the direct interpolation of user-supplied container image names into shell commands executed via `os.system()` without proper sanitization. An attacker can exploit this by providing a malicious string to the `--container` CLI parameter. This allows for arbitrary code execution in the context of the MLflow process. The vulnerability is addressed in MLflow version 3.7.0.

## Affected products

- MLflow MLflow before 3.7.0
- Red Hat OpenShift AI (RHOAI) Affected

## Identifiers

- CVE-2025-14287
- GHSA-xch3-2f9x-wh9f
- PYSEC-2026-2661

## Timeline

- 2025-01-01: other: Initial Red Hat VEX release date
- 2026-03-15: disclosed: Reported via huntr.dev and Red Hat Bugzilla
- 2026-03-16: advisory: NVD publication date

## References

- [https://huntr.com/bounties/229cd526-41aa-4819-b6f0-e2d0371c89e3](https://huntr.com/bounties/229cd526-41aa-4819-b6f0-e2d0371c89e3)
- [https://access.redhat.com/security/cve/CVE-2025-14287](https://access.redhat.com/security/cve/CVE-2025-14287)
- [https://bugzilla.redhat.com/show_bug.cgi?id=2447690](https://bugzilla.redhat.com/show_bug.cgi?id=2447690)
- [https://security.access.redhat.com/data/csaf/v2/vex/2025/cve-2025-14287.json](https://security.access.redhat.com/data/csaf/v2/vex/2025/cve-2025-14287.json)

## Related threats

- [MLflow arbitrary code execution in third-party scorer deserialization](https://junglewise.ai/threats/cve-2026-116692-mlflow-is-an-open-source-ai-engineering-platform-for-agents)
- [MLflow credential leak in CrewAI autolog](https://junglewise.ai/threats/cve-2026-116691-mlflow-is-an-open-source-ai-engineering-platform-for-agents)
- [MLflow path traversal in prompt model version artifact access](https://junglewise.ai/threats/cve-2026-116690-mlflow-is-an-open-source-ai-engineering-platform-for-agents)
- [MLflow unsafe deserialization in scorer endpoints](https://junglewise.ai/threats/cve-2026-115886-mlflow-is-an-open-source-ai-engineering-platform-for-agents)
- [MLflow FileStore path traversal in trace storage](https://junglewise.ai/threats/cve-2026-53995-mlflow-3-17-1-and-earlier-contains-a-path-traversal-vulnerability)
