Trace API endpoints in MLflow lacked authorization validators, so any authenticated user could read, delete or modify traces on experiments they had no permission to access. This exposed sensitive data, allowed destruction of audit logs and unauthorised modifications.
The AI Gateway secrets feature resolved environment variable references in the api_key field against the MLflow server's own environment, then sent the resolved value in authentication headers to a user-configured upstream endpoint. A low-privileged or unauthenticated user could therefore direct server-side credentials such as cloud access keys to an attacker-controlled host.
MLflow's basic-auth mode did not check permissions on three Gateway list endpoints, so any logged-in user could list all gateway secrets, endpoints and model definitions. This exposed API keys, endpoint configurations and proprietary model definitions to users who should not see them.
The multipart upload endpoints under the artifacts service did not check resource-level permissions, so any authenticated user could overwrite other users' artifacts. An attacker could poison models in the supply chain and potentially achieve code execution when a compromised model is loaded.
The SearchModelVersions REST API endpoint and the mlflowSearchModelVersions GraphQL query lacked per-model authorization checks when basic authentication was enabled. Any authenticated user could enumerate all model versions across all registered models, exposing model names, descriptions, source URIs, tags and other metadata.
The MLflow Assistant's /ajax-api endpoints did not properly validate request origins, so a malicious webpage could send cross-origin requests to an Assistant running on a victim's local machine. By bypassing the loopback-only restriction, an attacker could change the Assistant's configuration to enable full access and then run arbitrary commands through the Claude Code sub-agent.
The MLFlow library creates temporary directories with overly permissive permissions (world-writable or group-writable), allowing local attackers to modify model artifacts. When these tampered artifacts are later deserialised, an attacker can achieve arbitrary code execution.
When MLflow is run with basic authentication enabled and served via uvicorn, the FastAPI permission middleware only checks authentication for /gateway/ routes. An unauthenticated attacker can therefore reach other FastAPI routes such as the Job API and the OpenTelemetry trace ingestion API, allowing them to submit, read and cancel jobs and to inject arbitrary trace data.
A model version creation handler accepted a tag that skipped validation of the model source path, letting an unauthenticated attacker store any local filesystem path as the source. A later artifact handler served files from that path without checking prompt status, so the attacker could read arbitrary files from the server.
The webhook creation function in MLflow accepted a user-supplied URL without validation, and the delivery function then sent HTTP POST requests to that URL. An authenticated attacker could make the MLflow backend send requests to internal services, cloud metadata endpoints, or arbitrary external servers.
The model_uri parameter is inserted unsanitised into a shell command run via bash -c, so shell metacharacters allow command substitution. An attacker who can control the model_uri could execute arbitrary commands, potentially escalating privileges if a higher-privileged service serves models from a writable directory.
MLflow's model serving container initialization directly interpolates dependency specifications from a model artifact's python_env.yaml into a shell command without sanitisation. An attacker who supplies a malicious model artifact could achieve arbitrary command execution on systems that deploy the model.
The archive extraction function in MLflow did not validate the paths of tar members, so a crafted tar.gz could write files outside the intended directory. An attacker who controls the archive could overwrite arbitrary files or gain elevated privileges, potentially escaping the sandbox in shared environments.
Tracing and assessment endpoints in MLflow's basic-auth app lack permission checks, so any authenticated user, even with no permissions on an experiment, can read trace information and create assessments for traces they should not access. This exposes trace metadata and allows unauthorised creation of assessments.
MLflow's pyfunc extraction uses tarfile.extractall without validating archive entry paths, so a crafted tar.gz with traversal sequences or absolute paths can write files outside the intended directory. This could lead to arbitrary file overwrites and potentially remote code execution in multi-tenant or untrusted-artifact scenarios.
MLflow built a shell command by pasting a user-supplied container image name straight into it and ran that command through the operating system shell. An attacker who could pass a crafted value to the CLI's container option could therefore run arbitrary commands on the host.
The temporary directory used by mlflow for Python virtual environments was created with world-writable permissions, allowing an attacker with write access to /tmp to race and overwrite .py files. This could lead to arbitrary code execution.
MLFlow's REST server did not validate the Origin header, allowing a malicious website to bypass Same-Origin Policy and make unauthorised calls to REST endpoints. An attacker could query, update, and delete experiments, leading to data exfiltration, destruction, or manipulation.
MLflow allowed an admin to create a user account without setting a password, which could lead to unauthorised access. The issue was fixed in version 2.19.0.
The signup feature of MLflow versions 2.17.0 to 2.20.1 is vulnerable to cross-site request forgery, allowing an attacker to create a new account. This could let the attacker perform unauthorised actions as that new user.
A path traversal vulnerability in MLflow's dbfs service allows an attacker to read arbitrary local files when the service is configured and mounted to a local directory. The issue arises because only the path portion of the URL is validated, while query and parameters are not handled.
The application failed to validate URI fragments for directory traversal sequences, allowing an attacker to read arbitrary local files. This was a bypass of a previous patch that only checked the query string.
The mlflow HTTP dataset loader used an unsanitised filename from the Content-Disposition header or URL path to build the destination file path, allowing path traversal or absolute paths. An attacker could write files to arbitrary locations and potentially execute commands on the vulnerable machine.
A path traversal bypass in MLflow 2.11.0 allows an attacker to read arbitrary files by inserting a '#' character into an artifact URL, which skips validation and causes the application to use the fragment as a filesystem path. This enables reading sensitive files such as SSH and cloud keys.
A low-privilege user with only EDIT permission on an experiment could delete any artifact, despite documentation stating EDIT users can only read and update. An attacker could therefore delete arbitrary artifacts without proper authorisation.
The is_local_uri function in MLflow misclassifies URIs with empty or 'file' schemes as non-local, allowing attackers to bypass checks and read arbitrary files. Attackers can craft malicious model versions with specially crafted 'source' parameters to read sensitive files within at least two directory levels from the server's root.
A path traversal flaw in MLflow's handling of the artifact_location parameter when creating an experiment allows an attacker to read arbitrary files on the server. By including a fragment component in the URI, an attacker can bypass restrictions and access files with the server process's permissions.