CVE-2026-116692: MLflow vulnerable to remote code execution on unauthenticated servers via third-party scorer deserialization importing caller-placed artifact modules
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:
- Create an experiment whose local artifact location points to a writable allowed scorer package.
- Create a run, causing MLflow to allocate
<artifact_location>/<run_id>/artifacts/. - Upload a Python module into that run artifact directory.
- Submit a serialized third-party scorer whose module path resolves to the uploaded file.
- 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.
References
Code Behaviors & Features
Detect and mitigate CVE-2026-116692 with GitLab Dependency Scanning
Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →