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

- Priority: **Routine**
- Reason: Not severe (CVSS 6.5, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2026-06-01 · Modified: 2026-11-03
- Aliases: GHSA-33g2-gx67-c2h3, BIT-airflow-2026-42358, PYSEC-2026-2343, CGA-3rx3-65c2-v3c2, CGA-7qgg-838x-9j9c, CGA-hcwc-2q8c-p28j, CGA-q2qw-xmv6-8mf8
- Record: https://cvemate.com/vulnerability/CVE-2026-42358 · JSON: https://cvemate.com/vulnerability/CVE-2026-42358/json

## Description

```text
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.
```

## Signals

- CVSS: 6.5 medium (v3.1, CVE.org) CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
- EPSS: 0.335%, percentile 28.788%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- apache software foundation apache airflow: \< 3.0.0 \| ≥ 3.0.0, \< 3.2.2
- apache airflow: \< 3.2.2
- chainguard airflow-2 (Chainguard): All versions (No fix recorded)
- chainguard airflow-core-2 (Chainguard): All versions (No fix recorded)
- PyPI apache-airflow (PyPI): \< 3.2.2

## References

- <https://github.com/apache/airflow/pull/65912>
- <https://lists.apache.org/thread/33635mv3zjb75wn5453c5yf9trs8x2om>
- <https://nvd.nist.gov/vuln/detail/CVE-2026-42358>
- <https://github.com/apache/airflow>
- <https://pypi.org/project/apache-airflow>
- <https://github.com/advisories/GHSA-33g2-gx67-c2h3>
- <https://pypi.python.org>
- <https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/42xxx/CVE-2026-42358.json>

---

Data as of 2026-12-05T07:38:05.953Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
