CVE-2026-42358
JSON

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 packageVersionsReported by
apache-airflowbefore 3.0.0CVE List
apache-airflow-corefrom 3.0.0 before 3.2.2CVE List
apache-airflow (PyPI)before 3.2.2GitHub Advisory Database, PyPA Advisory Database
apache airflowbefore 3.2.2NVD
airflow (Bitnami)before 3.2.2Bitnami Vulnerability Database

All scores

CISA-ADP6.5medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
GitHub6.5medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
NVD6.5medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
PyPA Advisory Database6.5medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
Bitnami Vulnerability Databasemedium rating

Classification

CWE-200

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

Sources

SourceRecordLicence
CVE ListCVE-2026-42358 changed 2026-11-03CVE Terms of Use
GitHub Advisory DatabaseGHSA-33g2-gx67-c2h3 changed 2026-07-13CC-BY-4.0
NVDCVE-2026-42358 changed 2026-11-03Public domain
PyPA Advisory DatabasePYSEC-2026-2343 changed 2026-07-13CC-BY-4.0
Bitnami Vulnerability DatabaseBIT-AIRFLOW-2026-42358 changed 2026-09-08Apache-2.0