# CVE-2026-4035: Environment Variable Resolution Vulnerability in mlflow/mlflow

- Severity: High 7.7 (CVSS:3.1, scored by redhat-SADP) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.52%, higher than 45% of CVEs (2026-12-02)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-06-03T07:18:08.512Z
- Modified: 2026-09-10T16:01:43.090Z
- Also known as: GHSA-g35p-px32-whv6, BIT-MLFLOW-2026-4035, PYSEC-2026-2222
- Weaknesses: CWE-201
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: @huntr_ai

## 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.

(As written by CVE List.)

## Affected

- mlflow mlflow/mlflow: from unspecified before 3.11.0
- rhoai/odh-mlflow-rhel9: no versions given
- rhoai/odh-pipeline-runtime-datascience-cpu-py312-rhel9: no versions given
- rhoai/odh-pipeline-runtime-pytorch-cuda-py312-rhel9: no versions given
- rhoai/odh-pipeline-runtime-pytorch-llmcompressor-cuda-py312-rhel9: no versions given
- rhoai/odh-pipeline-runtime-pytorch-rocm-py312-rhel9: no versions given
- rhoai/odh-pipeline-runtime-tensorflow-cuda-py312-rhel9: no versions given
- rhoai/odh-pipeline-runtime-tensorflow-rocm-py312-rhel9: no versions given
- rhoai/odh-th06-cpu-torch210-py312-rhel9: no versions given
- rhoai/odh-th06-cuda130-torch210-py312-rhel9: no versions given
- rhoai/odh-th06-rocm64-torch291-py312-rhel9: no versions given
- rhoai/odh-training-cuda128-torch29-py312-rhel9: no versions given
- rhoai/odh-workbench-codeserver-datascience-cpu-py312-rhel9: no versions given
- rhoai/odh-workbench-jupyter-datascience-cpu-py312-rhel9: no versions given
- rhoai/odh-workbench-jupyter-pytorch-cuda-py312-rhel9: no versions given
- rhoai/odh-workbench-jupyter-pytorch-llmcompressor-cuda-py312-rhel9: no versions given
- rhoai/odh-workbench-jupyter-pytorch-rocm-py312-rhel9: no versions given
- rhoai/odh-workbench-jupyter-tensorflow-cuda-py312-rhel9: no versions given
- rhoai/odh-workbench-jupyter-tensorflow-rocm-py312-rhel9: no versions given
- rhoai/odh-workbench-jupyter-trustyai-cpu-py312-rhel9: no versions given
- mlflow (PyPI): before 3.11.0
- lfprojects mlflow: before 3.11.0
- mlflow (Bitnami): before 3.11.0

## Every score

- @huntr_ai: CVSS:3.0 9.1 Critical `CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:L/A:L`
- redhat-SADP: CVSS:3.1 7.7 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:N/A:N`
- GitHub: CVSS:3.0 9.1 Critical `CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:L/A:L`
- NVD: CVSS:3.1 7.7 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:N/A:N`
- PyPA Advisory Database: CVSS:3.1 7.7 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:N/A:N`
- Bitnami Vulnerability Database: rating Critical

## References

- <https://huntr.com/bounties/f8e591a0-0f19-4910-b82e-16c9956f2233> (exploit, advisory, evidence, third-party-advisory, web)
- <https://github.com/mlflow/mlflow/commit/4a3f2f720cb4f058c9e0c5b883e0acc9ab64a7f3> (fix, patch, web)
- <https://access.redhat.com/security/cve/CVE-2026-4035> (vdb-entry, web)
- <https://bugzilla.redhat.com/show_bug.cgi?id=2484318> (issue-tracking, report, web)
- <https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-4035.json> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-4035> (advisory, web)
- <https://github.com/mlflow/mlflow> (package)
- <https://github.com/advisories/GHSA-g35p-px32-whv6> (advisory)

## Sources

- CVE List: [CVE-2026-4035](https://www.cve.org/CVERecord?id=CVE-2026-4035), CVE Terms of Use, modified 2026-08-14
- GitHub Advisory Database: [GHSA-g35p-px32-whv6](https://github.com/advisories/GHSA-g35p-px32-whv6), CC-BY-4.0, modified 2026-07-13
- NVD: [CVE-2026-4035](https://nvd.nist.gov/vuln/detail/CVE-2026-4035), Public domain, modified 2026-08-14
- PyPA Advisory Database: [PYSEC-2026-2222](https://osv.dev/vulnerability/PYSEC-2026-2222), CC-BY-4.0, modified 2026-07-13
- Bitnami Vulnerability Database: [BIT-MLFLOW-2026-4035](https://osv.dev/vulnerability/BIT-MLFLOW-2026-4035), Apache-2.0, modified 2026-09-10

---

Page: https://cve.day/CVE-2026-4035 · Whole record: https://cve.day/CVE-2026-4035.json · Rebuilt by cve.day 2026-11-25T22:59:23.625Z
