Unpatched MLflow Scorer Endpoints Enable Unauthenticated SSRF Attacks

MLflow, the widely used open source platform for AI agents, large language models, and machine learning workflows, shipped a vulnerable deserialization path in its scorer endpoints.

The Bottom Line

MLflow, the widely used open source platform for AI agents, large language models, and machine learning workflows, shipped a vulnerable deserialization path in its scorer endpoints. The flaw affects versions 3.12.0rc0 through versions prior to 3.17.0. MLflow fixed the issue in version 3.17.0.

The vulnerability lets an attacker reach an unauthenticated endpoint and force the MLflow server to send outbound requests to a host of their choosing. That host can be internal infrastructure. The attacker also controls the headers and body of that outbound request.

No authentication is required to trigger the core issue. Teams running MLflow in production AI pipelines should treat this as a priority patch.

What Happened

MLflow exposes several endpoints that accept scorer configuration data, including an unauthenticated POST endpoint at /ajax-api/3.0/mlflow/scorer/invoke. These endpoints also cover scorer register and GenAI evaluate functionality. All of them accept serialized third-party scorer data from the caller.

That data gets processed by Scorer.model_validate_json, which resolves the scorer class using a module-path allowlist. The problem is that the allowlist only checks the module path. It does not constrain which class gets selected within that module, and it does not restrict the constructor arguments passed to that class.

When the optional trulens and trulens-providers-litellm packages are installed, this gap becomes exploitable. An attacker can specify mlflow.genai.scorers.trulens as the target class. They then choose a model URI that falls outside MLflow's native provider registry. That choice forces MLflow to route execution through the LiteLLM fallback path instead of its built-in providers.

From there, the attacker supplies their own api_base and api_key values. Those values are not validated against any destination allowlist. The server then sends an outbound request to whatever host the attacker specified, carrying headers and body content the attacker also controls. This can include internal, non-routable addresses that the server can reach but the attacker cannot reach directly.

The deserialization itself happens before any tracking-store lookup or job submission occurs. That sequencing matters. It means the dangerous object construction happens early in the request lifecycle, before MLflow applies any of its normal tracking or job-related checks.

Who Is Affected

Any MLflow deployment running a version between 3.12.0rc0 and the release immediately before 3.17.0 is in the vulnerable window. Version 3.17.0 contains the fix. Organizations should confirm their exact running version rather than assuming based on release cadence.

Exploitation depends on the optional trulens and trulens-providers-litellm packages being installed alongside MLflow. Deployments that never installed these packages are not exposed to this specific attack chain through the trulens scorer path. Teams should inventory their MLflow environment's installed package set before ruling themselves out.

Because the primary trigger point is an unauthenticated POST endpoint, any MLflow server reachable over the network is a candidate for probing, regardless of whether it sits behind application-level authentication for other parts of the UI. This includes self-hosted MLflow instances in cloud environments, on-prem GPU clusters running AI training and evaluation pipelines, and internal MLOps platforms that expose MLflow's tracking server to internal networks or, in weaker configurations, to the internet.

By the Numbers

The vulnerable version range runs from 3.12.0rc0 up to, but not including, 3.17.0. MLflow fixed the issue in version 3.17.0. The vulnerable endpoint path is /ajax-api/3.0/mlflow/scorer/invoke. Three endpoint categories carry the flaw: scorer invoke, scorer register, and GenAI evaluate. Exploitation requires two specific optional packages, trulens and trulens-providers-litellm, to be present in the environment. The source does not provide a CVSS score, record count, or financial impact figure for this disclosure.

Why It Matters

This is a server-side request forgery vulnerability rooted in insecure deserialization, a pattern that keeps surfacing in AI and ML tooling as these platforms rapidly add integrations with third-party providers. MLflow's allowlist approach checked the module path but trusted everything inside it. That is a common design mistake when platforms extend trust to an entire namespace instead of validating individual classes and their inputs.

The fact that the primary trigger sits behind an unauthenticated endpoint raises the stakes. Attackers do not need valid credentials to reach the vulnerable code path. In environments where MLflow servers can reach internal services, databases, or cloud metadata endpoints, this flaw gives attackers a pivot point into infrastructure that was never meant to be internet-facing.

AI infrastructure platforms like MLflow sit at the center of training and evaluation pipelines across many organizations. A flaw that lets outside parties force the server to make requests on their behalf, with attacker-controlled headers and body content, fits the broader supply-chain and lateral-movement risk pattern security teams are already tracking in MLOps stacks.

What To Do Now

First, upgrade MLflow to version 3.17.0 or later immediately. This is the only confirmed fix for the deserialization and SSRF chain described here. Second, audit your MLflow environment for the trulens and trulens-providers-litellm packages. If they are installed and you cannot patch immediately, consider removing them as a temporary mitigation. Third, review network access controls around any MLflow tracking server. Confirm the /ajax-api/3.0/mlflow/scorer/invoke endpoint, along with scorer register and GenAI evaluate endpoints, is not reachable from untrusted networks. Fourth, check outbound request logs from your MLflow server for connections to unexpected internal hosts or unusual external destinations. Fifth, if your MLflow server has network access to cloud metadata services or sensitive internal systems, segment it now regardless of patch status. Treat any MLflow server with these optional packages installed as a priority asset until the upgrade is confirmed complete across your fleet.

Read the source →