# CVE-2026-42358: Apache Airflow: Variable masker depth-limit bypass returns cleartext nested secrets

- Severity: Medium 6.5 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/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.34%, higher than 28% of CVEs (2026-12-01)
- Published: 2026-06-01T07:49:57.728Z
- Modified: 2026-11-03T07:20:16.510Z
- Also known as: GHSA-33g2-gx67-c2h3, BIT-AIRFLOW-2026-42358, PYSEC-2026-2343
- Weaknesses: CWE-200
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: apache

## Description

A bug in Apache Airflow's Variable response masker caused nested-key redaction (triggered by secret-suffixed key names like `password`, `token`, `secret`, `api_key`) to be bypassed when the JSON value's nesting depth exceeded the shared secrets masker's recursion limit: the masker returned the original nested item before checking the sensitive key name. An authenticated UI/API user with Variable read permission could harvest plaintext secret values stored under sensitive keys nested deep enough to exceed the masker's depth cap. Affects deployments that store sensitive values inside deeply-nested JSON Variables. This is a residual gap in the fix for CVE-2026-32690 (which covered shallower nesting via `max_depth=1`); the depth-limit boundary itself was not raised, so the same key-name bypass pattern reappears beyond the recursion cap. Users who already upgraded for CVE-2026-32690 should additionally upgrade to `apache-airflow` 3.2.2 or later to cover the deep-nesting path.

(As written by CVE List.)

## Affected

- apache-airflow: before 3.0.0
- apache-airflow-core: from 3.0.0 before 3.2.2
- apache-airflow (PyPI): before 3.2.2
- apache airflow: before 3.2.2
- airflow (Bitnami): before 3.2.2

## Every score

- CISA-ADP: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N`
- GitHub: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N`
- NVD: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N`
- PyPA Advisory Database: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N`
- Bitnami Vulnerability Database: rating Medium

## References

- <https://github.com/apache/airflow/pull/65912> (fix, issue-tracking, patch, web)
- <https://lists.apache.org/thread/33635mv3zjb75wn5453c5yf9trs8x2om> (advisory, mailing-list, vendor-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-42358> (advisory, web)
- <https://github.com/apache/airflow> (package)
- <https://pypi.org/project/apache-airflow> (package)
- <https://github.com/advisories/GHSA-33g2-gx67-c2h3> (advisory)

## Sources

- CVE List: [CVE-2026-42358](https://www.cve.org/CVERecord?id=CVE-2026-42358), CVE Terms of Use, modified 2026-11-03
- GitHub Advisory Database: [GHSA-33g2-gx67-c2h3](https://github.com/advisories/GHSA-33g2-gx67-c2h3), CC-BY-4.0, modified 2026-07-13
- NVD: [CVE-2026-42358](https://nvd.nist.gov/vuln/detail/CVE-2026-42358), Public domain, modified 2026-11-03
- PyPA Advisory Database: [PYSEC-2026-2343](https://osv.dev/vulnerability/PYSEC-2026-2343), CC-BY-4.0, modified 2026-07-13
- Bitnami Vulnerability Database: [BIT-AIRFLOW-2026-42358](https://osv.dev/vulnerability/BIT-AIRFLOW-2026-42358), Apache-2.0, modified 2026-09-08

---

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