MLflow has a command injection in mlflow/sagemaker/__init__.py
Published 16 Mar 2026 · Updated 10 Sept 2026
Is your project on an affected mlflow?
Look after several Python apps? Indie watches up to 15 repos, private ones too, for $5 a month. See Indie
Affected package
- Affected
- <3.8.0rc0
- Fixed in
- 3.8.0rc0
pip install 'mlflow>=3.8.0rc0'Details
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.
Is GHSA-xch3-2f9x-wh9f in any of your client repos?
Checking one package by hand is fine. Checking it across forty client projects is not. NPMscan reads the lockfiles in every GitHub repo you pick, finds each project with an affected mlflow, and gives you the command that fixes it.
More advisories for mlflow
- HighCVE-2026-116690MLflow vulnerable to arbitrary file read on unauthenticated servers via prompt model version source · 27 Oct 2026
- MediumCVE-2026-116691MLflow CrewAI autologging records LLM provider API keys in logged trace spans · 27 Oct 2026
- CriticalCVE-2026-116692MLflow vulnerable to remote code execution on unauthenticated servers via third-party scorer deserialization importing caller-placed artifact modules · 27 Oct 2026
- MediumCVE-2026-115886MLflow: SSRF on unauthenticated MLflow servers via third-party scorer kwargs in the scorer invoke, register, and GenAI evaluate endpoints · 23 Oct 2026
- HighCVE-2026-53995MLflow FileStore trace IDs allow path traversal and arbitrary file writes · 20 Oct 2026
- HighGHSA-gqvg-gmmx-x4hmMLFLOW_ALLOW_PICKLE_DESERIALIZATION=False safety control bypassed by mlflow.statsmodels flavor — RCE via crafted model artifact · 1 Sept 2026
References
- Advisorynvd.nist.gov/vuln/detail/CVE-2025-14287
- Linkgithub.com/mlflow/mlflow/pull/19277
- Linkgithub.com/mlflow/mlflow/commit/8b8792a7034fb33a14b0b31cabcaa9b912d3485f
- Packagegithub.com/mlflow/mlflow
- Linkgithub.com/mlflow/mlflow/releases/tag/v3.8.0rc0
- Linkhuntr.com/bounties/229cd526-41aa-4819-b6f0-e2d0371c89e3
Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.