Live › vulnerability › CVE-2026-116692
Go to dashboardMLflow 3.12.0 through 3.16.x imports a Python module whose path comes from a scorer request, and the module path only needs to start with an allowed package name. An attacker can upload their own Python file into a run artifact directory inside an allowed package, then reference it in a scorer request so the server imports and runs it, giving code execution as the MLflow process.
Summary written from the sources below. Check the originals before acting.
First seen by InfraStack 2026-10-27 21:29 UTC. All times on this page are UTC.
Any MLflow tracking server running 3.12.0rc0 up to but not including 3.17.0 that is reachable by untrusted callers is exposed, with the default no-auth configuration being the reproduced case. The exact chain needs the server process to be able to write under an allowed scorer package, which the stock official image allows because it runs as root. Servers with authentication enabled still need an authenticated user who can create experiments and runs, and deployments with read-only package trees are not affected by this exact placement.
| Product | Ecosystem | Affected | Fixed in |
|---|---|---|---|
| mlflow | pypi | >= 3.12.0rc0, < 3.17.0 | 3.17.0 |
pip show mlflow or python -c "import mlflow; print(mlflow.__version__)" on each MLflow server and check whether the version is at least 3.12.0rc0 and below 3.17.0.mlflow/genai/scorers/ are writable by the server user.3.17.0./ajax-api/3.0/mlflow/scorer/invoke at the proxy or restrict the tracking server to trusted networks.Each row is the first time that source carried this signal. The analyst’s rows are its own findings.
MLflow 3.12.0 introduced registration and deserialization support for third-party scorers in OSS MLflow. During scorer deserialization, the server accepts a request-controlled Python module path beneath one of four allowed package prefixes, imports that module, obtains a request-controlled class, and instantiates it synchronously.
An HTTP caller can combine this behavior with MLflow's built-in experiment, run, and artifact-upload endpoints:
<artifact_location>/<run_id>/artifacts/./ajax-api/3.0/mlflow/scorer/invoke.On the default no-auth server using the official MLflow v3.14.0 image, this produces unauthenticated arbitrary Python code execution with the privileges of the MLflow server process. The reproduced image runs the process as uid 0 and permits writes to its installed Python package tree.
The attached proof of concept is intentionally harmless. The uploaded constructor performs one action only: it writes a random marker beside its own uploaded run artifact. The marker is then downloaded through MLflow's run-artifact endpoint and checked for an exact match.
At release commit 86cd7f5a1dc25a1387ad07c87811bbc30f62951c, mlflow/genai/scorers/scorer_utils.py defines these allowed roots:
THIRD_PARTY_SCORER_ALLOWED_MODULES = frozenset({
"mlflow.genai.scorers.ragas",
"mlflow.genai.scorers.deepeval",
"mlflow.genai.scorers.trulens",
"mlflow.genai.scorers.phoenix",
})
In mlflow/genai/scorers/base.py, the deserializer accepts either an exact root or any descendant:
module_path == m or module_path.startswith(m + ".")
It then performs the following operations using request-controlled values:
module = importlib.import_module(module_path)
scorer_class = getattr(module, class_name, None)
scorer_instance = scorer_class(**init_kwargs)
A package-name prefix is not a provenance boundary. If the server process can write below an allowed package, an attacker-created descendant can satisfy the string-prefix check and become importable Python code.
Relevant source locations at the v3.14.0 release commit:
mlflow/genai/scorers/scorer_utils.py, allowed third-party scorer modulesmlflow/genai/scorers/base.py, third-party scorer deserialization and constructionIn mlflow/server/handlers.py, _invoke_scorer_handler() parses the supplied serialized scorer and calls:
scorer = Scorer.model_validate_json(serialized_scorer)
Only after deserialization and construction does the handler call:
batches = get_trace_batches_for_scorer(trace_ids, scorer, tracking_store)
The attacker-controlled constructor therefore runs before the server validates or resolves the supplied trace IDs.
The minimal proof class is deliberately not a complete MLflow scorer. After its constructor writes the marker, later trace-batching logic accesses scorer attributes that the proof class does not implement. The resulting HTTP 500 occurs after code execution and does not invalidate the proof.
No background job execution or special job-execution server option is required to reach the constructor.
The experiment creation endpoint accepts an artifact_location. For file-backed experiments, MLflow derives each run artifact directory as:
<artifact_location>/<run_id>/artifacts/
The proof of concept selects this package directory in the official v3.14.0 image:
file:///usr/local/lib/python3.10/site-packages/mlflow/genai/scorers/trulens
After creating a run and uploading audit_<token>.py, the resulting filesystem location is:
/usr/local/lib/python3.10/site-packages/mlflow/genai/scorers/trulens/<run_id>/artifacts/audit_<token>.py
The corresponding import path is:
mlflow.genai.scorers.trulens.<run_id>.artifacts.audit_<token>
The attack does not overwrite an existing package module. It creates a new run-scoped module in the normal file-backed artifact layout. The run ID is returned to the caller.
With authentication disabled, as in the default reproduced server configuration, no credentials are required.
When MLflow basic authentication is enabled, authentication still applies. However, the scorer-invocation AJAX endpoint is assigned to validate_gateway_proxy, which returns True without performing an experiment- or scorer-level resource permission check.
Practical exploitation in an authenticated deployment still requires the caller to create an experiment and run and upload artifacts to them. The key authorization issue is that scorer deserialization itself is not gated by a resource-specific permission check for the supplied experiment before the import occurs.
The attached reproduction is intentionally isolated:
Run:
./run-official-image.sh
Expected output:
MLFLOW_VERSION=3.14.0
PACKAGE_DIR=/usr/local/lib/python3.10/site-packages/mlflow/genai/scorers/trulens
CREATE_EXPERIMENT_STATUS=200
CREATE_RUN_STATUS=200
UPLOAD_STATUS=200
INVOKE_STATUS=500
PROOF_DOWNLOAD_STATUS=200
PROOF_MATCH=1
RESULT=AFFECTED
The security-relevant result is:
PROOF_MATCH=1
RESULT=AFFECTED
This proves that the attacker-controlled constructor executed in the MLflow server process before the later scorer-processing failure.
86cd7f5a1dc25a1387ad07c87811bbc30f62951cghcr.io/mlflow/mlflow:v3.14.0sha256:967de3ca34b6a5751718e380a0a383eb0ce1a6f5b484f363bd0da7559117a5f8127.0.0.1:5000sqlite:////work/mlflow.db/work/artifactsServer command inside the disposable container:
mlflow server \
--host 127.0.0.1 \
--port 5000 \
--backend-store-uri sqlite:////work/mlflow.db \
--default-artifact-root /work/artifacts
The vulnerable third-party scorer deserialization behavior was introduced by commit:
02eea26035b9d8e65af31e6e8f058ca195f62cdd
Enable third-party scorer registration in OSS MLflow (#22634)
The feature is absent from v3.11.1 and first appears in v3.12.0.
Runtime reproduction succeeds on v3.14.0. The relevant mlflow/genai/scorers/base.py content is unchanged at master commit:
20858c9426a9644dfcf9545a92cbb534376779eb
No fixed release was identified as of 2026-07-12.
On the reproduced stock no-auth image, any network caller who can reach the tracking server can execute Python code as the MLflow process without credentials or user interaction.
Successful exploitation provides confidentiality, integrity, and availability impact over all data, credentials, network access, and filesystem locations
This page as .md · .json · in your agent: get_signal("CVE-2026-116692")
NVD data is provided by NIST and is public domain · GitHub Advisory Database, CC-BY 4.0. Posts quoted belong to their authors.