NewApp Monitoring is liveSign up free
AgentbeamBeta
AI agent vulnerability · MLflow

CVE-2023-6014: MLflow authentication requirement bypass can allow a user to arbitrarily create an account

criticalCVSS 3.0 9.1GHSA-4qq5-mxxx-m6gg

MLflow before 2.8.0 lets anyone create an account on a server that uses its built-in basic authentication, because the user creation route skips authentication. No credentials are needed. MLflow 2.8.0 makes user creation an admin-only action.

Published Nov 16, 2023 · Updated Mar 11, 2024 · Analysis Nov 2, 2026

What an attacker can do

In the MLflow auth module, UNPROTECTED_ROUTES listed both CREATE_USER and SIGNUP. The route behind POST /api/2.0/mlflow/users/create was therefore reachable without any authentication. A maintainer wrote in the upstream issue that anyone can create a new user, whether the sender is authenticated or not.

The attacker needs only network access to the tracking server. They send a create-user request and get a working account. In the issue, a reporter showed that a basic-auth user expected to be read-only could make another account. The reporter also confirmed the new account is not an admin.

A new account is not admin, but it has the default permission level, which on a standard setup lets it read and write experiments and models. That is the confidentiality and integrity impact in the CVSS vector. The weakness is tagged CWE-598, though the issue describes a POST request, not a query string. Servers started without the basic-auth app are not covered by this account feature.

Who is affected

The pip package mlflow below 2.8.0, on servers running the built-in basic-auth app (mlflow.server.auth). Check your version:

pip show mlflow

To test a server, send an unauthenticated POST to /api/2.0/mlflow/users/create on a test copy and see whether it creates an account.

mlflow

Ecosystem
PyPI
Affected
< 2.8.0
Fixed in
2.8.0
Check
pip show mlflow

How to fix it

Upgrade to mlflow 2.8.0 or later.

pip install -U "mlflow>=2.8.0"

The maintainers' stated plan, in the issue, was to remove user creation from the unprotected routes so that only an admin can create users. The sources list no workaround. Until you upgrade, keep the server off untrusted networks, and check the user list for accounts you did not create.

How to tell if you were hit

List the users known to the auth database and look for accounts you do not recognize, especially ones created around unexpected times. Search the server access logs for POST requests to /api/2.0/mlflow/users/create from unfamiliar addresses with no Authorization header. Check experiment and model activity attributed to unknown users.

Original advisory

From the GitHub Advisory Database (CC BY 4.0).

An attacker is able to arbitrarily create an account in MLflow bypassing any authentication requirement.

Credited to MarkLee131, yoshizawa-masatoshi.

Questions

Which MLflow version fixes CVE-2023-6014?

MLflow 2.8.0. Versions below it are affected.

Do new accounts get admin rights?

No. The upstream issue's reporter confirmed that admin was false. The new account gets the default permissions, which still allow access to your data on a typical setup.

Does this affect servers without authentication enabled?

The flaw is in the basic-auth module's user creation route. A server without the auth app has no accounts to create, but it also has no access control at all.

Is it exploited in the wild?

No source I read says so, and the entry has no CISA KEV data.

References

How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. The analysis is written by an AI model from the sources listed above and checked by automated rules before it is published. Check versions against the vendor's advisory before you act. Methodology

More MLflow vulnerabilities

All MLflow entries