6.5medium
Apache Airflow: Variable masker depth-limit bypass returns cleartext nested secrets
- Severity
- 6.5medium CVSS:3.1 by CISA-ADP
- Exploit likelihood
- 0.34% (higher than 28% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- apache
- Also known as
- GHSA-33g2-gx67-c2h3BIT-AIRFLOW-2026-42358PYSEC-2026-2343
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| apache-airflow | before 3.0.0 | CVE List |
| apache-airflow-core | from 3.0.0 before 3.2.2 | CVE List |
| apache-airflow (PyPI) | before 3.2.2 | GitHub Advisory Database, PyPA Advisory Database |
| apache airflow | before 3.2.2 | NVD |
| airflow (Bitnami) | before 3.2.2 | Bitnami Vulnerability Database |
All scores
| CISA-ADP | 6.5medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N |
| GitHub | 6.5medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N |
| NVD | 6.5medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N |
| PyPA Advisory Database | 6.5medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N |
| Bitnami Vulnerability Database | medium rating |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.
What each source says
CVE List
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.
NVD (es)
Un error en el enmascarador de respuesta de Variables de Apache Airflow causó que la redacción de claves anidadas (activada por nombres de clave con sufijo de secreto como 'password', 'token', 'secret', 'api_key') fuera eludida cuando la profundidad de anidamiento del valor JSON excedía el límite de recursión del enmascarador de secretos compartidos: el enmascarador devolvía el elemento anidado original antes de verificar el nombre de la clave sensible. Un usuario autenticado de UI/API con permiso de lectura de Variables podría recolectar valores de secretos en texto plano almacenados bajo claves sensibles anidadas lo suficientemente profundo como para exceder el límite de profundidad del enmascarador. Afecta a las implementaciones que almacenan valores sensibles dentro de Variables JSON profundamente anidadas. Esta es una brecha residual en la corrección para CVE-2026-32690 (que cubría anidamientos menos profundos a través de 'max_depth=1'); el propio límite de profundidad no fue elevado, por lo que el mismo patrón de elusión por nombre de clave reaparece más allá del límite de recursión. Los usuarios que ya actualizaron para CVE-2026-32690 deberían actualizar adicionalmente a 'apache-airflow' 3.2.2 o posterior para cubrir la ruta de anidamiento profundo.
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
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-42358 changed 2026-11-03 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-33g2-gx67-c2h3 changed 2026-07-13 | CC-BY-4.0 |
| NVD | CVE-2026-42358 changed 2026-11-03 | Public domain |
| PyPA Advisory Database | PYSEC-2026-2343 changed 2026-07-13 | CC-BY-4.0 |
| Bitnami Vulnerability Database | BIT-AIRFLOW-2026-42358 changed 2026-09-08 | Apache-2.0 |