MLflowにリモートコード実行の脆弱性、3.17.0で修正
Summary
MLflowのサーバーに、外部から任意のコードを実行されるおそれのある脆弱性が見つかりました。3.12.0rc0以上3.17.0未満を共有サーバーとして運用している組織が対象で、3.17.0への更新が修正になります。認証を有効にしていない環境を優先して確認してください。
AI summary
Written by an external AI model and may contain mistakes. Check the original description and references below before acting on it.
MLflowのサーバーに、外部から任意のコードを実行されるおそれのある脆弱性が見つかりました。3.12.0rc0以上3.17.0未満を共有サーバーとして運用している組織が対象で、3.17.0への更新が修正になります。認証を有効にしていない環境を優先して確認してください。
Affected packages
| Ecosystem | Package | Affected | Fixed |
|---|---|---|---|
| mlflow | mlflow | — | — |
| pip | mlflow |
< 3.17.0 |
3.17.0 |
| PyPI | mlflow |
≥ 3.12.0rc0, < 3.17.0 |
3.17.0 |
Original description The description as published by the source.
Summary
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
//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.
Technical details
1. The allow-list accepts attacker-created…
Source: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory