MLflow can write files outside the trace directory via crafted trace ID

HighSE Fix-First Score 43/100CVE-2026-53995SE-AIV-00730Reading or writing files it should notAI data and pipelinesMade public 20 Oct 2026

Download as PDF

What this means

An attacker with no login can write files anywhere the MLflow server process can access. This could overwrite important files, inject malicious code, or place data where it should not be. The risk is highest for older MLflow versions using FileStore, and for any version that explicitly chose FileStore as the storage backend.

SecurityElites Manager Brief: the decision in one minute

SecurityElites Fix-First Score43 of 100
Our own ranking of what to fix first. Real attacks count most, then the chance of attack, then severity.
SecurityElites fix windowWithin 30 days
High severity. This is our suggestion from common practice; your own policy comes first.
Who should own the fixPlatform or ML infrastructure team (whoever runs the MLflow server).
Likely effortAbout 15 to 30 minutes: check which tracking backend you use, update MLflow to version 3.18.0, restart the service, and verify the version. Longer if you need to test in a staging environment first or coordinate with other teams.

Questions to ask your team or supplier

  • Which version of MLflow are we running, and have we checked whether FileStore is explicitly enabled or in use?
  • Do we have network access controls in place to restrict who can send requests to the MLflow server, especially the traces endpoint?
  • What filesystem permissions does the MLflow server process run with, and can we reduce them to only what is necessary?

Message you can forward to the owning team

Security notice: MLflow can write files outside the 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.18.0 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-the-trace-directory-via/
Source: SecurityElites AI Vulnerabilities Database, record SE-AIV-00730

What is at stake in your AI setup

  • Trace files and metadata: attacker can write or overwrite trace logs that record model inputs, outputs, and execution details.
  • Experiment structure: attacker can inject files that corrupt the experiment directory layout or add malicious configuration.
  • Model artifacts: if the artifact store is on the same filesystem, attacker could potentially write files that interfere with model storage or retrieval.
  • Server code or plugins: if MLflow plugins or configuration are stored on the same filesystem, attacker could inject code that runs when MLflow starts.

Map where your company uses AI

Who is exposed

  • Teams running MLflow versions 3.7.0 to 3.17.1 with FileStore explicitly enabled.
  • Teams running any MLflow version before 3.7.0 (FileStore is the default).
  • MLflow servers exposed to untrusted networks or the public internet.
  • Systems where the MLflow server process runs with broad file permissions.

Upgrades you need

SoftwareAffected versionsMove to
mlflow
PyPI
Every version before 3.18.03.18.0 or later

Am I affected?

Enter the version you run. Nothing you type is stored.

SecurityElites Developer Brief: the technical picture

Is it being attackedWorking attack code is public, so expect attacks to follow
Where the attacker must beAnywhere that can reach it over a network, including the internet if it is exposed
Account neededNone. No login is needed
Does a person have to do somethingNo. It works without anyone clicking or opening anything
How hard it is to doEasy. It works reliably once the attacker can reach it
Risk of: data being readNone
Risk of: data or settings being changedHigh
Risk of: the service being taken downLimited
Can attackers automate it at scaleYes, according to CISA
How much control an attacker gainsPartial control, according to CISA

Read from the official severity rating: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:L

Kind of coding mistake

  • CWE-22: file paths can escape the allowed folder

If you cannot upgrade today

  • If you cannot upgrade immediately, restrict network access to the MLflow server so only trusted clients can reach the POST `/api/3.0/mlflow/traces` endpoint.
  • Run the MLflow server process with the minimum filesystem permissions necessary (use a dedicated user account with limited write access).
  • If not in use, do not select FileStore as the tracking backend; switch to SQLite or another remote backend if your MLflow version supports it.

Signs it may already have been used against you

  • Review MLflow server logs for POST requests to `/api/3.0/mlflow/traces` with trace IDs containing `../`, `..\`, or other path traversal patterns.
  • Scan the trace directory (usually `mlruns/` or the path in `--default-artifact-root`) and its parent directories for files or folders created around the time the server was running but not part of normal experiment structure.
  • Check filesystem access logs (if available) for unexpected write operations in directories outside the intended MLflow store location, especially near the MLflow process start time.
  • Look for `trace_info.yaml`, `request_metadata`, or `tag` files in unexpected locations outside the experiment trace structure.

Log searches to start from

POST requests to traces endpoint with path traversal characters in trace IDSplunk

source="mlflow_server_logs" method=POST path="*mlflow/traces*" | regex trace_id=".*(\.\./|\.\.\\)"

Unusual file writes outside MLflow trace directoryElastic

process.name:mlflow AND event.action:"file_write" AND NOT file.path:*mlruns* AND NOT file.path:*artifacts*

Written with AI as a starting point. Review them and change the index and field names to match your own logs before you rely on the result.

SecurityElites Fix Guide: step by step

  1. Find where MLflow is installedCheck where your MLflow server runs and which Python environment it uses. Look for the MLflow installation with `pip show mlflow` or check your container or deployment configuration.
  2. Check the current version and tracking backendRun `python -c "import mlflow; print(mlflow.__version__)"` to see the current version. Check your MLflow configuration or server startup logs for the `--backend-store-uri` and `--default-artifact-root` flags to see whether FileStore is in use.
  3. Review which tracking backend is activeIf the backend store URI points to a local filesystem path (for example, `./mlruns` or `/var/mlflow/mlruns`), FileStore is active and you are at risk. If it points to a SQL database or remote service, the risk is lower but you should still upgrade.
  4. Stop the MLflow serverShut down the MLflow service cleanly. Wait for any running processes to finish.
  5. Upgrade MLflow to version 3.18.0Use your package manager to install the fixed version: `pip install --upgrade mlflow==3.18.0` or the equivalent for your deployment method (Docker, conda, etc.).
  6. Restart the MLflow serverStart the service again with the same configuration you used before. Verify that it listens on the expected port and can connect to its backend store.
  7. Confirm the fixRun `python -c "import mlflow; print(mlflow.__version__)"` again and confirm it shows version 3.18.0 or later.
  8. Check for signs of prior exploitationReview the trace directory and surrounding filesystem for files or directories that should not be there, especially in locations outside the intended MLflow data directory. Check server logs from before the upgrade for requests to the `/api/3.0/mlflow/traces` endpoint with unusual trace IDs containing path characters like `../` or `..\`.

How to confirm it is fixed: Run `python -c "import mlflow; print(mlflow.__version__)"` and confirm the output is 3.18.0 or later.

SecurityElites Quick Fixes: copy and paste

Upgrade mlflow with pipupgrade

pip install --upgrade "mlflow>=3.18.0"
pip show mlflow | grep Version

Pin it in requirements.txtupgrade

mlflow>=3.18.0

Check MLflow version installedfor this issue

python -c "import mlflow; print('MLflow version:', mlflow.__version__)"

Check backend store type from MLflow configfor this issue

python -c "from mlflow.tracking import MlflowClient; client = MlflowClient(); print('Tracking URI:', client.tracking_uri)"

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 p

Test 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.18.0 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.

If an attacker sent a trace ID with path traversal sequences to the traces endpoint on an MLflow server before 3.18.0, what could happen?A good answer: The server could write trace files (trace_info.yaml, request_metadata, tags) to filesystem locations outside the intended trace directory, wherever the server process can write.
Which MLflow versions have FileStore as the default tracking backend?A good answer: Versions before 3.7.0 have FileStore as the default; versions 3.7.0 and later default to SQLite but can still use FileStore if explicitly configured.
What is the minimum version of MLflow that includes the fix for this vulnerability?A good answer: MLflow 3.18.0 and later are not vulnerable; any version before 3.18.0 is affected.
What should we check to see if this vulnerability was exploited against our MLflow server before we patched it?A good answer: Look for unexpected files or directories in and around the trace directory, and search server logs for POST requests to the traces endpoint with unusual trace IDs containing path traversal characters.

Run a full timed drill with your team

Ticket for your backlog

Paste into Jira, GitHub Issues or any tracker that reads Markdown.

Ready-made ticket

## MLflow can write files outside the 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-the-trace-directory-via/

### Why this matters
An attacker with no login can write files anywhere the MLflow server process can access. This could overwrite important files, inject malicious code, or place data where it should not be. The risk is highest for older MLflow versions using FileStore, and for any version that explicitly chose FileStore as the storage backend.

### What to do
1. Find where MLflow is installed
2. Check the current version and tracking backend
3. Review which tracking backend is active
4. Stop the MLflow server
5. Upgrade MLflow to version 3.18.0
6. Restart the MLflow server
7. Confirm the fix
8. Check for signs of prior exploitation

Full steps: https://securityelites.com/ai-vulnerabilities/cve-2026-53995-mlflow-can-write-files-outside-the-trace-directory-via/

### Done when
- [ ] mlflow is at 3.18.0 or later everywhere it is installed
- [ ] Lock files, container images and CI configuration are updated
- [ ] Run `python -c "import mlflow; print(mlflow.__version__)"` and confirm the output is 3.18.0 or later.
- [ ] 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.

Sign in to track this fix

Change history

  • 20 Oct 2026: Made public
  • 1 Dec 2026: Published
  • 3 Dec 2026: Guide updated

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-53995

For 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 4 Dec 2026. Read the vendor advisory before changing a production system.