CVE-2026-2652: MLflow < 3.10.0 - Authentication Bypass on FastAPI Routes
- Template: CVE-2026-2652
- Name: MLflow < 3.10.0 - Authentication Bypass on FastAPI Routes
- Description: A vulnerability in mlflow/mlflow versions 3.9.0 and earlier allows unauthenticated access to certain FastAPI routes when the server is started with authentication enabled (`--app-name basic-auth`) and served via uvicorn (ASGI). The FastAPI permission middleware only enforces authentication on `/gateway/` routes, leaving other routes such as the Job API (`/ajax-api/3.0/jobs/*`) and the OpenTelemetry trace ingestion API (`/v1/traces`) unprotected. This allows unauthenticated remote attackers to submit jobs, read job results, cancel running jobs, and inject arbitrary trace data into experiments. The issue arises from an architectural mismatch between Flask and FastAPI authentication mechanisms, where the `_find_fastapi_validator()` function fails to handle non-`/gateway/` paths, resulting in a complete authentication bypass. This vulnerability is fixed in version 3.10.0.
- Impact: An unauthenticated attacker can bypass authentication to access job management APIs and inject arbitrary trace data, potentially leading to data integrity compromise and unauthorized job execution.
- Remediation: Upgrade MLflow to version 3.10.0 or later.
- Severity: high
- Authors: DhiyaneshDk
- Tags: cve, cve2026, mlflow, auth-bypass, lfprojects, vuln, vkev
- References: https://huntr.com/bounties/5aeff5f0-49c7-4180-b5cb-c9a046f16756, https://nvd.nist.gov/vuln/detail/CVE-2026-2652
- Cves: CVE-2026-2652
- Verified: yes
- Max requests: 2
- Directory: http/cves
- Path: http/cves/2026/CVE-2026-2652.yaml
- Digest: 4a0a00473045022100c33aae92af2fb47855f17c02c03a3d8054edbd4c51240751d3be271d2628473102206ab54391a2661377da9caff63ba9631268bc8f31b0064526ddf36fc150b947bf
- Created at: 2026-06-04T11:16:30Z
- Updated at: 2026-11-23T02:03:43Z
- Age in days: 173
- Template url: https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2026/CVE-2026-2652.yaml
Classification
- Cwe: CWE-306
- Cvss score: 8.6
- Cvss vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:H/A:L
- Epss score: 0.20783
- Epss percentile: 0.97605
- Cpe: cpe:2.3:a:lfprojects:mlflow:*:*:*:*:*:*:*:*
Metadata
- Fofa-query: app="mlflow"
- Max-request: 2
- Product: mlflow
- Shodan-query: http.title:"mlflow"
- Vendor: lfprojects
- Verified: yes
Products
| Product | Indexed | Url |
|---|---|---|
| lfprojects:mlflow | yes | /v1/products/lfprojects/mlflow |
Labels
- Name: mlflow/mlflow - Authentication Bypass
- Impact: Unauthenticated attackers can submit and manage jobs and inject trace data, potentially compromising experiment integrity and system operations.
- Remediation: Update to version 3.10.0 or later.
- Vulnerability type: broken_access_control
- Vulnerability impact: broken_access_control
- Requirements: Server must be started with basic-auth and served via uvicorn
- Labels source: projectdiscovery
- From cve: CVE-2026-2652
- Not known: requirement type
```yaml
id: CVE-2026-2652
info:
name: MLflow < 3.10.0 - Authentication Bypass on FastAPI Routes
author: DhiyaneshDk
severity: high
description: |
A vulnerability in mlflow/mlflow versions 3.9.0 and earlier allows unauthenticated access to certain FastAPI routes when the server is started with authentication enabled (`--app-name basic-auth`) and served via uvicorn (ASGI). The FastAPI permission middleware only enforces authentication on `/gateway/` routes, leaving other routes such as the Job API (`/ajax-api/3.0/jobs/*`) and the OpenTelemetry trace ingestion API (`/v1/traces`) unprotected. This allows unauthenticated remote attackers to submit jobs, read job results, cancel running jobs, and inject arbitrary trace data into experiments. The issue arises from an architectural mismatch between Flask and FastAPI authentication mechanisms, where the `_find_fastapi_validator()` function fails to handle non-`/gateway/` paths, resulting in a complete authentication bypass. This vulnerability is fixed in version 3.10.0.
impact: |
An unauthenticated attacker can bypass authentication to access job management APIs and inject arbitrary trace data, potentially leading to data integrity compromise and unauthorized job execution.
remediation: |
Upgrade MLflow to version 3.10.0 or later.
reference:
- https://huntr.com/bounties/5aeff5f0-49c7-4180-b5cb-c9a046f16756
- https://nvd.nist.gov/vuln/detail/CVE-2026-2652
classification:
cvss-metrics: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:H/A:L
cvss-score: 8.6
cve-id: CVE-2026-2652
epss-score: 0.20783
epss-percentile: 0.97605
cwe-id: CWE-306
cpe: cpe:2.3:a:lfprojects:mlflow:*:*:*:*:*:*:*:*
metadata:
verified: true
max-request: 2
vendor: lfprojects
product: mlflow
shodan-query: http.title:"mlflow"
fofa-query: app="mlflow"
tags: cve,cve2026,mlflow,auth-bypass,lfprojects,vuln,vkev
flow: http(1) && http(2)
http:
- raw:
- |
GET /api/2.0/mlflow/experiments/list HTTP/1.1
Host: {{Hostname}}
matchers:
- type: dsl
dsl:
- 'status_code == 401'
internal: true
- raw:
- |
POST /ajax-api/3.0/jobs/search HTTP/1.1
Host: {{Hostname}}
Content-Type: application/json
{}
matchers:
- type: dsl
dsl:
- status_code == 200
- contains(body, "\"jobs\":")
- contains(content_type, 'application/json')
condition: and
digest: 4a0a00473045022100c33aae92af2fb47855f17c02c03a3d8054edbd4c51240751d3be271d2628473102206ab54391a2661377da9caff63ba9631268bc8f31b0064526ddf36fc150b947bf:922c64590222798bb761d5b6d8e72950
```