MLflow can run attacker code during scorer deserialization
What this means
An attacker with network access can run code with the same privileges as the MLflow server. On default setups, this means unauthenticated remote code execution as root, allowing data theft, service takeover, and lateral movement into connected systems.
SecurityElites Manager Brief: the decision in one minute
MLflow versions 3.12 through 3.16 allow anyone with network access to run arbitrary code on the server. If your company runs MLflow, you must upgrade to version 3.17.0 immediately or block network access until you can patch. This is a critical remote code execution vulnerability with no authentication required.
| SecurityElites Fix-First Score | 51 of 100 Our own ranking of what to fix first. Real attacks count most, then the chance of attack, then severity. |
|---|---|
| SecurityElites fix window | Within 7 days Critical severity. This is our suggestion from common practice; your own policy comes first. |
| Who should own the fix | Platform engineering or infrastructure team responsible for MLflow deployments. |
| Likely effort | About 15 minutes per server: download and install version 3.17.0 or later, restart the MLflow service, and verify the fix. Downtime depends on how the service is deployed. If you cannot upgrade immediately, you must restrict network access to MLflow until you |
Questions to ask your team or supplier
- Which versions of MLflow are currently deployed in production, and have any of them been confirmed to be on 3.17.0 or later?
- Is network access to MLflow restricted to trusted internal machines only, or is it exposed to untrusted networks? If exposed, what is the plan to patch within the next business hour?
- Do you have logs and audit trails from the period when vulnerable versions were running? Can you search for unusual scorer registrations, artifact uploads, or scorer invocations during that time?
Message you can forward to the owning team
Security notice: MLflow can run attacker code during scorer deserialization (CVE-2026-116692)
Severity: Critical
SecurityElites Fix-First Score: 51 of 100
SecurityElites fix window: Within 7 days
Action: upgrade to mlflow 3.17.0 or later.
What we need from you: confirm whether we run this software, who owns it, and the date it will be fixed.
Full guide: https://securityelites.com/ai-vulnerabilities/cve-2026-116692-mlflow-can-run-attacker-code-during-scorer-deserialization/
Source: SecurityElites AI Vulnerabilities Database, record SE-AIV-00651What is at stake in your AI setup
- Model files in experiment artifacts: attacker code could read, modify, or delete trained models stored in MLflow's artifact system.
- Keys for AI providers: if MLflow stores API keys for language model services or model registries in environment variables or configuration, running code with server privileges allows theft.
- Tools and systems the MLflow agent can access: if MLflow integrates with orchestration systems, model registries, or data pipelines, arbitrary code execution gives an attacker access to those systems.
- Training and retrieval data: if experiments store training datasets or retrieval context in artifacts, the attacker can read this data.
Who is exposed
- Teams running MLflow 3.12.0rc0 through 3.16.x with network access from untrusted sources
- Services using the default MLflow Docker image without authentication enabled
- Any system that MLflow can reach (databases, model registries, cloud storage) through its server credentials
- Systems NOT affected: MLflow versions before 3.12.0rc0, or 3.17.0 and later
Upgrades you need
| Software | Affected versions | Move to |
|---|---|---|
| mlflow PyPI | 3.12.0rc0 up to, but not including, 3.17.0 | 3.17.0 or later |
Am I affected?
Enter the version you run. Nothing you type is stored.
SecurityElites Developer Brief: the technical picture
| Is it being attacked | Working attack code is public, so expect attacks to follow |
|---|---|
| Can attackers automate it at scale | Yes, according to CISA |
| How much control an attacker gains | Total control of the affected software, according to CISA |
Read from the official severity rating
Kind of coding mistake
- CWE-470
- CWE-94: code can be injected
Where it sits in the standards
OWASP Top 10 for LLM Applications 2025: LLM03 Supply Chain (unsafe model and data files)
If you cannot upgrade today
- Until you can upgrade: block all network access to MLflow ports (commonly 5000, 8080) using firewall rules or security groups. Allow access only from specific trusted machines or disable the network listener entirely.
- Disable third-party scorer support if not needed: check MLflow configuration and documentation to see if scorer deserialization can be disabled or restricted to built-in scorers only.
- Run MLflow with restricted file permissions: ensure the MLflow process and its artifact directories are not world-writable, and that the service does not run as root if possible. This reduces what an attacker can do after code execution.
Signs it may already have been used against you
- Artifact storage: Look in experiment artifact directories (especially those with allowed scorer package names like `mlflow.genai.scorers.*`) for unexpected `.py` files, especially in run subdirectories created after the vulnerable version w
- HTTP logs: Search for POST requests to `/ajax-api/3.0/mlflow/scorer/invoke` or `/api/2.0/mlflow/runs/log-artifact` from IP addresses or times you do not recognize.
- Scorer configuration: Query the MLflow backend for registered scorers with module paths pointing to run artifact directories rather than installed packages (paths containing `artifacts/` or run identifiers).
- Process behavior: Check whether the MLflow server process spawned unexpected child processes or made outbound network connections during the vulnerable period.
Log searches to start from
POST requests to scorer invoke endpoint (adapt field names for your logs)Splunk
index=mlflow (http_method=POST AND http_path="/ajax-api/3.0/mlflow/scorer/invoke") | stats count by src_ip, timestampLog artifact uploads to run directories (adapt field names for your logs)Elastic
http.method:POST AND http.url:*log-artifact* AND http.url:*artifacts* | stats count by source.ip, @timestampWritten with AI as a starting point. Review them and change the index and field names to match your own logs before you rely on the result.
SecurityElites Fix Guide: step by step
- Find all running MLflow servicesList every machine, container, and cloud service where MLflow is running. Check Docker containers with `docker ps | grep mlflow`, Python processes with `ps aux | grep mlflow`, and cloud provider dashboards for managed MLflow services. Document the version of each using `pip show mlflow` or the service API.
- Check if each MLflow instance uses network accessVerify whether each MLflow service is reachable from outside the machine it runs on. Check firewall rules, cloud security groups, and service listeners. If the port is open to any untrusted network (including the public internet or any network segment you do not fully control), it is at risk.
- Isolate affected services immediatelyFor any MLflow service running versions 3.12.0rc0 through 3.16.x that is network-accessible, block network access now. Use firewall rules, security groups, or service shut-down. This is the most urgent step if you cannot upgrade within the hour.
- Upgrade to MLflow 3.17.0 or laterInstall the fixed version using `pip install --upgrade mlflow==3.17.0` (or later) on each affected machine. For Docker images, use `mlflow==3.17.0` or pull the latest official image. For cloud-managed services, check the provider's console for available version upgrades.
- Restart each MLflow serviceStop and start the MLflow service on each affected system to load the new code. For Docker, restart the container. For systemd services, run `systemctl restart mlflow`. For cloud services, follow the provider's restart procedure.
- Verify the fix is in placeConfirm that each service reports version 3.17.0 or later using `pip show mlflow` or by querying the service API. Check the running process with `ps aux | grep mlflow` to confirm the new version is loaded. Restart any service that still reports an old version.
- Check for signs of prior exploitationReview logs and artifact storage for unusual activity that occurred during the vulnerable period: unexpected Python files in scorer package directories, authentication logs showing unusual access to experiment or run endpoints, or new scorer configurations you do not recognize. See the detect section below.
- Re-enable network access after patchingOnce all affected services are confirmed to be on version 3.17.0 or later, restore firewall rules and security group settings to allow normal network traffic. Document that the service is now safe for untrusted network access.
How to confirm it is fixed: Confirm that all MLflow services report version 3.17.0 or later with `pip show mlflow`, that the service has been restarted, and that a test request to the `/ajax-api/3.0/mlflow/scorer/invoke` endpoint either fails or behaves safely compared to the vulnerable
SecurityElites Quick Fixes: copy and paste
Upgrade mlflow with pipupgrade
pip install --upgrade "mlflow>=3.17.0"
pip show mlflow | grep VersionPin it in requirements.txtupgrade
mlflow>=3.17.0Check installed MLflow versionfor this issue
pip show mlflow | grep VersionList all Python processes running MLflowfor this issue
ps aux | grep mlflow | grep -v grepCheck which network ports MLflow is listening onfor this issue
netstat -tuln | grep -E ':(5000|8080)' || ss -tuln | grep -E ':(5000|8080)'Load PyTorch weights without running codegeneral hardening
import torch
state = torch.load("model.pt", weights_only=True)Load safetensors weightsgeneral hardening
from safetensors.torch import load_file
state = load_file("model.safetensors")Test in a non-production environment first. General hardening examples use placeholder names and ports; change them to match your setup.
Let your AI coding assistant do the upgrade
Paste this into the coding assistant you already use, inside the project. It checks first and asks before it changes anything.
Instruction for your coding assistant
You are helping me fix a security vulnerability (CVE-2026-116692) in this project.\n\n1. Search the whole repository, including lock files, container files and CI configuration, for these packages and list every place they are pinned or installed:\n - mlflow (PyPI): must be 3.17.0 or later
2. Tell me which version we use now and whether it is affected. Stop and ask me before changing anything.
3. After I agree, raise each one to the safe version, update the lock files, and keep every other dependency as it is.
4. Run the tests and tell me what failed.
5. Give me a short summary of the files you changed that I can put in the pull request.SecurityElites Incident Drill: could your team handle this?
Four questions to ask in your next team meeting. If any has no clear answer, that is the gap to close.
Ticket for your backlog
Paste into Jira, GitHub Issues or any tracker that reads Markdown.
Ready-made ticket
## MLflow can run attacker code during scorer deserialization (CVE-2026-116692)
**Severity:** Critical | **SE Fix-First Score:** 51/100 | **Fix window:** Within 7 days
**Record:** SE-AIV-00651 https://securityelites.com/ai-vulnerabilities/cve-2026-116692-mlflow-can-run-attacker-code-during-scorer-deserialization/
### Why this matters
An attacker with network access can run code with the same privileges as the MLflow server. On default setups, this means unauthenticated remote code execution as root, allowing data theft, service takeover, and lateral movement into connected systems.
### What to do
1. Find all running MLflow services: List every machine, container, and cloud service where MLflow is running. Check Docker containers with `docker ps | grep mlflow`, Python processes with `ps aux | grep mlflow`, and cloud provider dashboards for managed MLflow services. Document the version of each using `pip show mlflow` or the service API.
2. Check if each MLflow instance uses network access: Verify whether each MLflow service is reachable from outside the machine it runs on. Check firewall rules, cloud security groups, and service listeners. If the port is open to any untrusted network (including the public internet or any network segment you do not fully control), it is at risk.
3. Isolate affected services immediately: For any MLflow service running versions 3.12.0rc0 through 3.16.x that is network-accessible, block network access now. Use firewall rules, security groups, or service shut-down. This is the most urgent step if you cannot upgrade within the hour.
4. Upgrade to MLflow 3.17.0 or later: Install the fixed version using `pip install --upgrade mlflow==3.17.0` (or later) on each affected machine. For Docker images, use `mlflow==3.17.0` or pull the latest official image. For cloud-managed services, check the provider's console for available version upgrades.
5. Restart each MLflow service: Stop and start the MLflow service on each affected system to load the new code. For Docker, restart the container. For systemd services, run `systemctl restart mlflow`. For cloud services, follow the provider's restart procedure.
6. Verify the fix is in place: Confirm that each service reports version 3.17.0 or later using `pip show mlflow` or by querying the service API. Check the running process with `ps aux | grep mlflow` to confirm the new version is loaded. Restart any service that still reports an old version.
7. Check for signs of prior exploitation: Review logs and artifact storage for unusual activity that occurred during the vulnerable period: unexpected Python files in scorer package directories, authentication logs showing unusual access to experiment or run endpoints, or new scorer configurations you do not recognize. See the detect section below.
8. Re-enable network access after patching: Once all affected services are confirmed to be on version 3.17.0 or later, restore firewall rules and security group settings to allow normal network traffic. Document that the service is now safe for untrusted network access.
### Done when
- [ ] mlflow is at 3.17.0 or later everywhere it is installed
- [ ] Lock files, container images and CI configuration are updated
- [ ] Confirm that all MLflow services report version 3.17.0 or later with `pip show mlflow`, that the service has been restarted, and that a test request to the `/ajax-api/3.0/mlflow/scorer/invoke` endpoint either fails or behaves safely compared to the vulnerable
- [ ] Logs were checked for signs of earlier use
SecurityElites Fix Tracker
Record who owns this fix, the date it is due and when it is done, and see everything still open in one list. Free with a SecurityElites account.
Related vulnerabilities
In the same software
- MLflow can read files outside its data folder via model version prompts High · CVE-2026-116690
- MLflow can write files outside trace directory via crafted trace ID High · CVE-2026-53995
- MLflow statsmodels flavor bypasses pickle deserialization security control High · GHSA-gqvg-gmmx-x4hm
The same kind of mistake in other AI tools
- RVC-Boss GPT-SoVITS can be made to run code when loading model files Critical · CVE-2026-140281
Change history
- 27 Oct 2026: Made public
- 1 Dec 2026: Published
Official record
## SummaryMLflow 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:1. Create an experiment whose local artifact location points to a writable allowed scorer package. 2. Create a run, causing MLflow to allocate `<artifact_location>/<run_id>/artifacts/`. 3. Upload a Python module into that run artifact directory. 4. Submit a serialized third-party scorer whose module path resolves to the uploaded file. 5. Trigger server-side import and class construction through `/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.## Technical details### 1. The allow-list accepts attacker-created descendantsAt release commit `86cd7f5a1dc25a1387ad07c87811bbc30f62951c`, `mlflow/genai/scorers/scorer_utils.py` defines these allowed roots:```python 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:```python module_path == m or module_path.startswith(m + ".") ```It then performs the following operations using request-controlled values:```python 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 modules * `mlflow/genai/scorers/base.py`, third-party scorer deserialization and construction### 2. Deserialization occurs before trace processingIn `mlflow/server/handlers.py`, `_invoke_scorer_handler()` parses the supplied serialized scorer and calls:```python scorer = Scorer.model_validate_json(serialized_scorer) ```Only after deserialization and construction does the handler call:```python 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.### 3. MLflow's artifact layout places the module under the trusted prefixThe experiment creation endpoint accepts an `artifact_location`. For file-backed experiments, MLflow derives each run artifact directory as:```text <artifact_location>/<run_id>/artifacts/ ```The proof of concept selects this package directory in the official v3.14.0 image:```text file:///usr/loc
Weakness type: CWE-470, CWE-94
Use this record in your own tools
Get this record as JSON
curl https://securityelites.com/wp-json/se-aivd/v1/vulns/CVE-2026-116692For scanners and pipelines: OSV format · CycloneDX format · API guide · Email alerts · Fix tracker
The plain-language sections were written with AI from the official record, and the upgrade versions come directly from the official data. Last updated 17 Nov 2026. Read the vendor advisory before changing a production system.