Skip to main content
Mallory
HighPublic exploitVulnerability

CVE-2026-4035: MLflow AI Gateway Environment Variable Credential Exfiltration

Published Jun 3, 2026 · Updated 2 months ago
Trending this weekNot trendingOutside this week’s top 100
Mention activity · 30 daysNo mention activity in the last 30 days.
CVSS7.7High · v3.1
EPSS0.52%45th percentile
CISA KEVNoNot listed
In the wildReported2 exploitation records in Mallory
Vendor
Lfprojects
IdentifiersCVE-2026-4035CWE-201 · Insertion of Sensitive Information…

CVE-2026-4035 affects MLflow versions before 3.11.0 with AI Gateway APIs enabled. AI Gateway secret handling resolved an api_key value prefixed with "$" as a reference to an environment variable in the MLflow server process. The resolved value was subsequently included in provider authentication headers for requests sent to the user-configured upstream API base. An attacker can create a gateway secret referencing a sensitive server-side environment variable, configure an attacker-controlled upstream endpoint, and invoke a gateway request to receive the resolved secret. MLflow 3.11.0 changes this behavior by making environment-based API-key resolution conditional on the MLFLOW_GATEWAY_RESOLVE_API_KEY_FROM_ENV setting, which defaults to disabled for API-driven gateway deployments.

Do you run this?See affected versions in your environment and whether adversaries are exploiting this vulnerability against assets like yours.
Check your exposure
Analyst brief

Impact, mitigation & remediation

What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.

Impact

What an attacker gets, and what they’ve been doing with it.

Attackers can exfiltrate arbitrary environment variables available to the MLflow server, including cloud credentials used to access model-artifact storage. Compromised artifact-storage credentials may permit replacement or poisoning of model artifacts. Where downstream consumers deserialize poisoned Python model artifacts, this can lead to arbitrary code execution in those downstream environments. The reported CVSS v3.1 vector is AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:L/A:L; default deployments without authentication may permit unauthenticated exploitation.

Mitigation

If you can’t patch tonight, do this now.

Until remediation is complete, disable AI Gateway functionality where feasible; restrict gateway-secret creation and gateway invocation to trusted administrators; enable and enforce authentication rather than exposing a default unauthenticated MLflow deployment; and apply outbound egress controls so the MLflow service cannot reach untrusted upstream endpoints. Restrict the MLflow process environment to only required secrets and monitor gateway configuration changes and outbound authentication requests.

Remediation

Patch, then assume compromise.

Upgrade MLflow to version 3.11.0 or later. Ensure MLFLOW_GATEWAY_RESOLVE_API_KEY_FROM_ENV is set to False. This setting is automatically enabled for backward compatibility in legacy YAML gateway deployments launched with the legacy gateway command, so operators of such deployments must explicitly disable it after upgrading. Rotate potentially exposed server and cloud credentials, review gateway secrets for environment-variable API-key references, and audit model artifacts and artifact-storage access for unauthorized modification.

Public exploits

Exploits

No public exploits tracked yet. Mallory keeps watching.

View more in app →
No public exploit code observed for this vulnerability. Mallory keeps watching.
Exposure surface

Affected products & vendors

Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.

VendorProductType
LfprojectsMlflowapplication
FAQ

Frequently asked questions

Is CVE-2026-4035 exploited in the wild?
Yes. As of Sep 25, 2026, Mallory has reports of exploitation in the wild.
Is there a public exploit for CVE-2026-4035?
Yes. As of Sep 25, 2026, Mallory has reports of a public exploit for CVE-2026-4035.
Is there a patch for CVE-2026-4035?
Upgrade MLflow to version 3.11.0 or later. Ensure MLFLOW_GATEWAY_RESOLVE_API_KEY_FROM_ENV is set to False.
What products are affected by CVE-2026-4035?
Lfprojects Mlflow.
How severe is CVE-2026-4035?
CVE-2026-4035 has a CVSS v3.1 score of 7.7 (High) and an EPSS score of 0.52% (45th percentile) as of Sep 25, 2026.
Mallory platform

The version that knows your environment.

This page is what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which adversaries are exploiting it right now, and which detections to deploy tonight.
Exposure mappingQuery your assets running an affected version, and investigate the blast radius.
Threat actor evidenceEvery report linking this CVE to a named adversary.
Associated malwareMalware families linked to this CVE, with evidence and IOCs.
Detection signaturesYARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.
Vendor-by-vendor mappingCross-references every affected SKU, including bundled OEM variants.
Social activity6Community discussion across Reddit, Mastodon, and other social sources.