NewApp Monitoring is liveSign up free
AgentbeamBeta
AI agent vulnerability · MLflow

CVE-2024-3848: MLflow has a Local File Read/Path Traversal bypass

highCVSS 3.0 7.5GHSA-rfqq-wq6w-72jm

MLflow 2.9.2 up to 2.12.0 has a path traversal that bypasses the earlier fix for CVE-2023-6909. A '#' in an artifact URL slips a filesystem path past validation, so an unauthenticated network attacker can read arbitrary files such as SSH and cloud keys. Upgrade to MLflow 2.12.1.

Published May 16, 2024 · Updated Apr 8, 2025 · Analysis Nov 2, 2026

What an attacker can do

MLflow checks the artifact location URL for traversal, but not its fragment, the part after '#'. An attacker builds a URL whose fragment holds a filesystem path. When MLflow converts the URL to a local path, it ignores the scheme and uses the fragment path. The validation never sees it.

The attack creates an experiment or run whose artifact location carries the crafted URL, then reads artifacts through the tracking server. The CVSS vector (7.5) shows network access, no privileges and no interaction, with a loss of confidentiality only. The advisory names SSH keys and cloud credentials as targets: any file the server process can read is exposed.

Tracking servers are often shared by data science teams and sit on internal networks with cloud credentials on the host. A leaked cloud key or SSH key then opens other systems. This flaw has a high EPSS score (about 43 percent), which marks it as a likely target for scanning.

Who is affected

The pip package mlflow from 2.9.2 up to, but not including, 2.12.1. Only servers that run the tracking server and accept network requests are exposed. A purely local library use with no server is not. Check the version:

pip show mlflow

mlflow

Ecosystem
PyPI
Affected
>= 2.9.2, < 2.12.1
Fixed in
2.12.1
Check
pip show mlflow

How to fix it

Upgrade to MLflow 2.12.1.

pip install --upgrade "mlflow>=2.12.1"

The fix commit changes mlflow/server/handlers.py. _create_experiment() now rejects an artifact_location with a fragment and raises an MlflowException saying the URL can't include a fragment part. _validate_source() now resolves a local path only for local artifact URIs. A regression test, test_local_file_read_write_by_pass_vulnerability, covers both. The sources give no workaround besides upgrading; until then keep the tracking server off untrusted networks.

How to tell if you were hit

Look in tracking server and proxy logs for experiment creation or artifact requests where artifact_location or a source URI contains a '#' followed by a path such as /etc/ or ~/.ssh. Check the experiments table for artifact locations that are not your configured store. Review access to sensitive files on the host. If you find a hit, rotate any SSH and cloud keys the MLflow process could read.

Original advisory

From the GitHub Advisory Database (CC BY 4.0).

A path traversal vulnerability exists in mlflow/mlflow version 2.11.0, identified as a bypass for the previously addressed CVE-2023-6909. The vulnerability arises from the application's handling of artifact URLs, where a '#' character can be used to insert a path into the fragment, effectively skipping validation. This allows an attacker to construct a URL that, when processed, ignores the protocol scheme and uses the provided path for filesystem access. As a result, an attacker can read arbitrary files, including sensitive information such as SSH and cloud keys, by exploiting the way the application converts the URL into a filesystem path. The issue stems from insufficient validation of the fragment portion of the URL, leading to arbitrary file read through path traversal.

Questions

How does CVE-2024-3848 differ from CVE-2023-6909?

It is a bypass of the earlier fix. The earlier check missed the URL fragment, so a path after '#' skipped validation.

Does an attacker need to log in?

The CVSS vector lists no privileges required, so a default MLflow server without an authentication layer is open to it.

Which version fixes it?

MLflow 2.12.1. Versions from 2.9.2 up to 2.12.0 are affected.

References

How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. The analysis is written by an AI model from the sources listed above and checked by automated rules before it is published. Check versions against the vendor's advisory before you act. Methodology

More MLflow vulnerabilities

All MLflow entries