Skip to content

Security advisoryMedium

MLflow: judge inference_params bypass the scorer SSRF check

MLflow judge inference_params could set api_base and send the server's LLM call to any host. Fixed on master by #27763.

On this page

MLflow scorer payloads - judge inference_params could set api_base, so the server's LLM judge call went to a host the caller chose (GHSA-vp65-hfh3-2q6m)

Severity
Medium
Status
Patched
Published
Report to public
29 days
Product
MLflow (open source platform for ML and GenAI apps) in mlflow/mlflow
Affected versions
MLflow tracking servers through 3.18.0 (the latest release on 2026-11-26) that accept scorer registration or invocation. Fixed on master by #27763 (merged 2026-11-13); not yet in a release.
GitHub advisory
GHSA-vp65-hfh3-2q6mPrivate; closed by the maintainer after the fix, not published
CVE
Pending (requested via MITRE CNA-LR)
Weaknesses (1)
  • CWE-918 Server-Side Request Forgery (SSRF)
Assigned by us; the advisory was closed without a CWE.
Credit
Finder: Aaron Elijah Mars of Aeon. Tool: Aeon (https://www.aeon.fun).

What users should do now#

  1. Upgrade to the first MLflow release after 3.18.0 as soon as it is out; it will carry the fix. Until then, a build from master at or after #27763 is fixed.
  2. Do not expose the tracking server to untrusted users or networks without authentication. Scorer registration and invocation (RegisterScorer, InvokeScorer, GenAI evaluation jobs) are the paths that reach this.
  3. Route judges through an MLflow AI Gateway endpoint (gateway:/NAME) or provider environment variables, and restrict the server's outbound network access to the LLM providers you use.
  4. Review registered scorers for api_base, base_url or similar keys inside inference_params. The fix also re-checks stored scorers when an optimize job loads them.

Summary#

MLflow lets clients register and invoke scorers (LLM judges) on the tracking server. The server rebuilds each scorer from a serialized payload and runs the judge itself. After GHSA-2wqp-q3c6-ccj5 (CVE-2026-115886), the server rejects keys that pick the LLM endpoint, such as api_base and base_url, inside third_party_scorer_data.kwargs.

That check did not look at inference_params on instructions_judge_pydantic_data or builtin_scorer_pydantic_data. Those params are meant for sampling settings such as temperature, but the LiteLLM judge adapter applies them with kwargs.update(inference_params) right before litellm.completion(**kwargs), after the server has set its own api_base and api_key. A value supplied by the caller therefore wins, and the server sends the judge request, prompt included, to the caller's host.

Affected versions#

MLflow tracking servers through 3.18.0 that serve the scorer endpoints. Versions before 3.17.0 are also affected by the related GHSA-2wqp-q3c6-ccj5. The fix is on master and not yet released.

Impact#

  • Server-side request forgery. A caller who can register or invoke a scorer picks the host the server connects to, including internal services the caller cannot reach directly.
  • Response leaks back. The response from that host comes back to the caller in the error message, so internal responses can be read, not only reached.
  • Other LiteLLM options. The same merge could also replace api_key, model or the provider, so the judge call can be pointed at a different model or account.
  • Who can reach it. Anyone who can call the scorer endpoints. On a server without authentication, that is anyone who can reach it.

Affected code#

Permalinks at 8171679, the commit on master just before the fix.

Fix#

  • #27763 ("Validate judge inference_params in serialized scorer payloads", merged 2026-11-13) adds _validate_judge_inference_params, which rejects the same endpoint keys in the inference_params of every judge in a payload, at any depth and inside wrapping scorers, and requires inference_params to be a JSON object.
  • The check runs on scorer registration and invocation, and again on registered scorers when an optimize job loads them, so scorers stored before the fix are caught too.
  • Merge commit: mlflow/mlflow@7e30b6d. Not yet in a release; 3.18.0 does not include it.

Timeline#

  1. We report the issue privately via GitHub PVR (GHSA-vp65-hfh3-2q6m).
  2. Maintainers merge the fix (#27763).
  3. The maintainer closes the advisory as resolved by the fix, without publishing it. We ask for it to be published with a CVE.
  4. We check the fix on master and confirm it closes the issue.
  5. Public write-up; CVE requested from MITRE.

Credit#

Finder: Aaron Elijah Mars of Aeon. Tool: Aeon. Thanks to the MLflow maintainers for the quick fix.

References#

One agent was never enough.

Run Aeon (opens in a new tab)