MLflow: Environment variable injection in AI Gateway secrets enables server-side credential exfiltrationGHSA-g35p-px32-whv6
CRITICALFix: mlflow/mlflow@4a3f2f7GHSA-g35p-px32-whv6 is a critical-severity (CVSS 9.1) CWE-201 vulnerability in mlflow. A fix is available for mlflow — see the affected versions and patch details below.
Exploitation Status
Proof-of-concept exploit code exists
- CISA’s SSVC triage found public proof-of-concept exploit code for this CVE, though no confirmed active exploitation.
Exploitation and automatability from CISA’s SSVC triage for GHSA-g35p-px32-whv6.
EPSS Exploitation Probability
Probability of exploitation in the next 30 days, from FIRST.org EPSS.
How urgent is this, really
Where this sits among everything scored
Real-World Exposure
mlflowReal-time download stats are indexed for npm and PyPI packages. This vulnerability affects PyPI packages — download data is not available via public APIs for these ecosystems.
Description
A vulnerability in mlflow/mlflow versions prior to 3.11.0 allows for the resolution of environment variables in AI Gateway secrets, which can be exploited to exfiltrate sensitive server-side environment credentials to an attacker-controlled endpoint. This issue arises because the api_key field in gateway secrets can accept $ENV_VAR references, which are resolved against the MLflow server's environment during runtime. The resolved secrets are then sent in provider authentication headers to the configured upstream api_base. This vulnerability can be exploited by low-privileged authenticated users in basic-auth deployments or by unauthenticated users in default deployments without basic-auth. The impact includes potential leakage of sensitive credentials such as cloud artifact credentials (AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY), which could lead to artifact poisoning and cross-boundary code execution in downstream environments. The issue is fixed in version 3.11.0.
Affected Packages
| Ecosystem | Package | Vulnerable range | Fix |
|---|---|---|---|
| 🐍PyPI | mlflow | all versions | 3.11.0pip install --upgrade 'mlflow==3.11.0' |
Affected Products
mlflowlfprojectsDetection & mitigation playbook
Open-source dependencyDetect
Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for mlflow, including transitive dependencies — a direct dependency you never call can still pull in a vulnerable version.
Fix
Update mlflow to 3.11.0 or later, then make sure no transitive (indirect) dependency still pins the vulnerable range — O3 confirms GHSA-g35p-px32-whv6 is resolved across your whole dependency graph.
Workarounds
If you can't upgrade right away: gate or disable the affected feature, validate untrusted input at the boundary, and avoid passing attacker-controlled data into the vulnerable path. O3's runtime protection blocks exploitation in production as an interim safeguard until the upgrade lands.
Fixing This On Your OS
If you run this on a Linux distribution, patch through your package manager against the distro's own security advisory below — it tracks the exact backported fix for your release, which can ship on a different timeline (and sometimes a different severity) than the upstream project.
This is a flaw in MLflow Server’s AI Gateway: if a gateway secret’s api_key uses a $ENV_VAR form, the server resolves it from pod environment variables and can send those values to a configured upstream api_base. The primary impact is credential disclosure (CWE-201), not direct remote code execution on the…
To mitigate this issue, restrict network access to the MLflow server to trusted clients only. Additionally, ensure that authentication mechanisms, such as basic-auth, are properly configured and enabled for MLflow deployments to prevent unauthenticated or low-privileged access to the AI Gateway. Consult MLflow documentation for specific configuration steps related to network access control and authentication. A restart or reload of the MLflow service may be required for changes to take effect.Source: Red Hat security advisory for GHSA-g35p-px32-whv6 (CC BY 4.0)
Frequently Asked Questions
Is GHSA-g35p-px32-whv6 in your dependencies?
Find it across PyPI, including transitive dependencies.