MLflow can write files outside trace directory via crafted trace ID
What this means
An attacker who can reach your MLflow server can write files to any location that the MLflow process can write to, using a specially crafted trace ID. This could overwrite important files, place malicious code where it will run, or corrupt experiment data. The attacker does not need to log in.
SecurityElites Manager Brief: the decision in one minute
MLflow has a flaw that lets anyone on the network write files anywhere on the server's disk. If your MLflow server faces the internet or an untrusted network, attackers could damage data or take control of the system. Update MLflow to version 3.17.2 or later immediately, or switch to the SQLite backend if you cannot update yet.
| SecurityElites Fix-First Score | 43 of 100 Our own ranking of what to fix first. Real attacks count most, then the chance of attack, then severity. |
|---|---|
| SecurityElites fix window | Within 30 days High severity. This is our suggestion from common practice; your own policy comes first. |
| Who should own the fix | MLflow operations or platform team. |
| Likely effort | About 30 minutes: check your MLflow version and backend setting, update the Python package, restart the service, and verify the fix. It could take longer if you have many MLflow servers or if the update needs scheduling during maintenance. |
Questions to ask your team or supplier
- Which version of MLflow are we running in production, and does it use FileStore as the tracking backend?
- Do we have any MLflow servers reachable from networks we do not control, and have we checked logs for exploitation attempts?
- What is our plan to upgrade to MLflow 3.17.2 or later, and when can we schedule it?
Message you can forward to the owning team
Security notice: MLflow can write files outside trace directory via crafted trace ID (CVE-2026-53995)
Severity: High
SecurityElites Fix-First Score: 43 of 100
SecurityElites fix window: Within 30 days
Action: upgrade to mlflow 3.17.2 or later.
What we need from you: confirm whether we run this software, who owns it, and the date it will be fixed.
Full guide: https://securityelites.com/ai-vulnerabilities/cve-2026-53995-mlflow-can-write-files-outside-trace-directory-via-crafted/
Source: SecurityElites AI Vulnerabilities Database, record SE-AIV-00730What is at stake in your AI setup
- Trace metadata and request logs could be overwritten or corrupted, making it impossible to audit model predictions or debug issues.
- Tag files and configuration could be modified to change how models are tracked or tagged, affecting reproducibility and governance.
- Files in adjacent directories could be overwritten if the MLflow process runs with broad write permissions, potentially affecting training data or model files.
Who is exposed
- Teams running MLflow 3.17.1 or earlier with FileStore as the tracking backend (the default before version 3.7.0).
- Teams running MLflow 3.7.0 or later that have FileStore explicitly enabled in their configuration.
- Any MLflow server reachable from an untrusted network, even one that allows only local network access.
- Teams not using FileStore (using SQLite or other backends instead) are not affected.
Upgrades you need
| Software | Affected versions | Move to |
|---|---|---|
| mlflow PyPI | Every version before 3.17.2 | 3.17.2 or later |
Am I affected?
Enter the version you run. Nothing you type is stored.
SecurityElites Developer Brief: the technical picture
| Is it being attacked | Working attack code is public, so expect attacks to follow |
|---|---|
| Can attackers automate it at scale | Yes, according to CISA |
| How much control an attacker gains | Partial control, according to CISA |
Read from the official severity rating
Kind of coding mistake
- CWE-22: file paths can escape the allowed folder
If you cannot upgrade today
- If you cannot upgrade MLflow immediately, disable the FileStore tracking backend and switch to the SQLite backend (the default in versions 3.7.0 and later).
- Restrict network access to the MLflow server: only allow connections from known, trusted machines or networks.
- Run the MLflow process with minimal filesystem permissions: create a dedicated user account with write access only to the directories MLflow needs.
Signs it may already have been used against you
- Review the POST /api/3.0/mlflow/traces endpoint logs for requests with trace IDs containing unusual characters like ../ or ..\.
- Check the filesystem directory where MLflow stores traces for files or directories created outside the standard experiment structure.
- Look for newly created YAML or metadata files with timestamps matching times when the server was vulnerable.
- Search MLflow server logs for error messages related to filesystem path operations around the time of potential attacks.
SecurityElites Fix Guide: step by step
- Find where MLflow is installed and runningList all servers or containers running MLflow in your environment. Note their versions and which tracking backend each one uses (FileStore, SQLite, or other). Check configuration files for the backend setting.
- Check the current MLflow version on each serverRun the command to display the installed MLflow version. Record the version number for each MLflow instance you found.
- Identify which servers use FileStoreFor each MLflow instance version 3.7.0 or later, check the configuration to see whether FileStore is set as the tracking backend. If the version is earlier than 3.7.0, FileStore is the default and the server is affected.
- Upgrade MLflow to version 3.17.2 or laterOn each affected server or container, upgrade the MLflow package to 3.17.2 or a later stable version. Follow your normal deployment process (pip upgrade, container rebuild, or package manager update).
- Restart the MLflow serviceAfter the upgrade, restart the MLflow server or restart the containers running MLflow. Wait for the service to report that it is ready.
- Verify the fix is in placeRun the version check command again on each server and confirm it shows 3.17.2 or later. Test that you can still submit traces and retrieve experiment data normally.
- Check for signs of prior exploitationReview filesystem permissions and directory structure where MLflow stores trace data. Look for files or directories created with unexpected names or in unexpected locations. Check MLflow logs for POST requests to the /api/3.0/mlflow/traces endpoint from before the upgrade.
- If you cannot upgrade now, switch to SQLite backendAs a temporary measure, reconfigure your MLflow server to use the default SQLite database instead of FileStore. This requires a configuration change and restart. This reduces the risk while you plan the upgrade.
How to confirm it is fixed: Run the version check command and confirm MLflow reports version 3.17.2 or later, then submit a test trace and confirm it is stored in the expected directory without any unexpected files nearby.
SecurityElites Quick Fixes: copy and paste
Upgrade mlflow with pipupgrade
pip install --upgrade "mlflow>=3.17.2"
pip show mlflow | grep VersionPin it in requirements.txtupgrade
mlflow>=3.17.2Check installed MLflow versionfor this issue
python -c "import mlflow; print(mlflow.__version__)"Check which tracking backend is in use in MLflow configfor this issue
grep -r "tracking_store" /path/to/mlflow/config/ 2>/dev/null || echo 'Not found in expected location'Keep file access inside one directory (Python)general hardening
from pathlib import Path
BASE = Path("/srv/app/data").resolve()
def safe_path(name: str) -> Path:
p = (BASE / name).resolve()
if not p.is_relative_to(BASE):
raise ValueError("path outside allowed directory")
return pTest in a non-production environment first. General hardening examples use placeholder names and ports; change them to match your setup.
Let your AI coding assistant do the upgrade
Paste this into the coding assistant you already use, inside the project. It checks first and asks before it changes anything.
Instruction for your coding assistant
You are helping me fix a security vulnerability (CVE-2026-53995) in this project.\n\n1. Search the whole repository, including lock files, container files and CI configuration, for these packages and list every place they are pinned or installed:\n - mlflow (PyPI): must be 3.17.2 or later
2. Tell me which version we use now and whether it is affected. Stop and ask me before changing anything.
3. After I agree, raise each one to the safe version, update the lock files, and keep every other dependency as it is.
4. Run the tests and tell me what failed.
5. Give me a short summary of the files you changed that I can put in the pull request.SecurityElites Incident Drill: could your team handle this?
Four questions to ask in your next team meeting. If any has no clear answer, that is the gap to close.
Ticket for your backlog
Paste into Jira, GitHub Issues or any tracker that reads Markdown.
Ready-made ticket
## MLflow can write files outside trace directory via crafted trace ID (CVE-2026-53995)
**Severity:** High | **SE Fix-First Score:** 43/100 | **Fix window:** Within 30 days
**Record:** SE-AIV-00730 https://securityelites.com/ai-vulnerabilities/cve-2026-53995-mlflow-can-write-files-outside-trace-directory-via-crafted/
### Why this matters
An attacker who can reach your MLflow server can write files to any location that the MLflow process can write to, using a specially crafted trace ID. This could overwrite important files, place malicious code where it will run, or corrupt experiment data. The attacker does not need to log in.
### What to do
1. Find where MLflow is installed and running: List all servers or containers running MLflow in your environment. Note their versions and which tracking backend each one uses (FileStore, SQLite, or other). Check configuration files for the backend setting.
2. Check the current MLflow version on each server: Run the command to display the installed MLflow version. Record the version number for each MLflow instance you found.
3. Identify which servers use FileStore: For each MLflow instance version 3.7.0 or later, check the configuration to see whether FileStore is set as the tracking backend. If the version is earlier than 3.7.0, FileStore is the default and the server is affected.
4. Upgrade MLflow to version 3.17.2 or later: On each affected server or container, upgrade the MLflow package to 3.17.2 or a later stable version. Follow your normal deployment process (pip upgrade, container rebuild, or package manager update).
5. Restart the MLflow service: After the upgrade, restart the MLflow server or restart the containers running MLflow. Wait for the service to report that it is ready.
6. Verify the fix is in place: Run the version check command again on each server and confirm it shows 3.17.2 or later. Test that you can still submit traces and retrieve experiment data normally.
7. Check for signs of prior exploitation: Review filesystem permissions and directory structure where MLflow stores trace data. Look for files or directories created with unexpected names or in unexpected locations. Check MLflow logs for POST requests to the /api/3.0/mlflow/traces endpoint from before the upgrade.
8. If you cannot upgrade now, switch to SQLite backend: As a temporary measure, reconfigure your MLflow server to use the default SQLite database instead of FileStore. This requires a configuration change and restart. This reduces the risk while you plan the upgrade.
### Done when
- [ ] mlflow is at 3.17.2 or later everywhere it is installed
- [ ] Lock files, container images and CI configuration are updated
- [ ] Run the version check command and confirm MLflow reports version 3.17.2 or later, then submit a test trace and confirm it is stored in the expected directory without any unexpected files nearby.
- [ ] Logs were checked for signs of earlier use
SecurityElites Fix Tracker
Record who owns this fix, the date it is due and when it is done, and see everything still open in one list. Free with a SecurityElites account.
Related vulnerabilities
In the same software
- MLflow can read files outside its data folder via model version prompts High · CVE-2026-116690
- MLflow can run attacker code during scorer deserialization Critical · CVE-2026-116692
- MLflow statsmodels flavor bypasses pickle deserialization security control High · GHSA-gqvg-gmmx-x4hm
The same kind of mistake in other AI tools
- LiteLLM proxy can be made to read files by authenticated users High · GHSA-g5ff-637f-6q2m
Change history
- 20 Oct 2026: Made public
- 1 Dec 2026: Published
Official record
MLflow 3.17.1 and earlier contains a path traversal vulnerability in the FileStore tracking backend that allows unauthenticated attackers to control filesystem paths by submitting a crafted trace ID containing traversal sequences to the POST /api/3.0/mlflow/traces endpoint. Attackers can exploit FileStore.start_trace() to write trace_info.yaml, request_metadata, and tag files with attacker-controlled metadata outside the intended experiment trace directory, subject to the server process's filesystem permissions. FileStore is the default tracking backend before MLflow 3.7.0 and opt-in thereafter (the default changed to a SQLite database), so deployments in the earlier part of the affected range are vulnerable without special configuration while later ones are affected only when FileStore is explicitly selected.
Weakness type: CWE-22
Use this record in your own tools
Get this record as JSON
curl https://securityelites.com/wp-json/se-aivd/v1/vulns/CVE-2026-53995For scanners and pipelines: OSV format · CycloneDX format · API guide · Email alerts · Fix tracker
The plain-language sections were written with AI from the official record, and the upgrade versions come directly from the official data. Last updated 26 Oct 2026. Read the vendor advisory before changing a production system.