MLflow can write files outside the trace directory via crafted trace ID
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 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 | Platform or ML infrastructure team (whoever runs the MLflow server). |
| Likely effort | About 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-00730What 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.
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
| Software | Affected versions | Move to |
|---|---|---|
| mlflow PyPI | Every version before 3.18.0 | 3.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 attacked | Working attack code is public, so expect attacks to follow |
|---|---|
| Where the attacker must be | Anywhere that can reach it over a network, including the internet if it is exposed |
| Account needed | None. No login is needed |
| Does a person have to do something | No. It works without anyone clicking or opening anything |
| How hard it is to do | Easy. It works reliably once the attacker can reach it |
| Risk of: data being read | None |
| Risk of: data or settings being changed | High |
| Risk of: the service being taken down | Limited |
| 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: 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
- 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.
- 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.
- 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.
- Stop the MLflow serverShut down the MLflow service cleanly. Wait for any running processes to finish.
- 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.).
- 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.
- Confirm the fixRun `python -c "import mlflow; print(mlflow.__version__)"` again and confirm it shows version 3.18.0 or later.
- 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 VersionPin it in requirements.txtupgrade
mlflow>=3.18.0Check 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 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.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.
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.
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
- MLflow server and ui can read files they should not access Critical · GHSA-83fm-w79m-64r5
The same kind of mistake in other AI tools
- Nik Voice Ticketing AI allows upload and run of harmful files without login Critical · CVE-2026-143966
- NLTK can write files outside its data directory through hardlinks during package extraction High · CVE-2026-128135
- LiteLLM proxy can be made to read local files by authenticated users High · GHSA-g5ff-637f-6q2m
- Flowise can run commands and read files outside its sandbox Critical · CVE-2026-119978
- Flowise allows authenticated users to write files anywhere on the server High · GHSA-88pr-878c-24wf
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-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 4 Dec 2026. Read the vendor advisory before changing a production system.