6.5medium
Apache Airflow: Rendered template truncation bypasses nested sensitive-key masking
- Severity
- 6.5medium CVSS:3.1 by CISA-ADP
- Exploit likelihood
- 0.35% (higher than 30% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- apache
- Also known as
- GHSA-cg3x-89rc-x9mwBIT-AIRFLOW-2026-42360PYSEC-2026-172
Description
A bug in Apache Airflow's rendered-template field handling caused nested sensitive-key masking (e.g. nested `password` / `token` / `secret` / `api_key` keys inside a JSON template structure) to be bypassed when the rendered field exceeded `[core] max_templated_field_length`: Airflow stringified the structure before redaction, losing the nested key context, and persisted the plaintext value into `rendered_fields`. An authenticated UI/API user with permission to read rendered template fields could harvest secret values intended to be masked. Affects deployments where Dag authors pass structured JSON to operators with nested sensitive keys. This is a variant of `CWE-200` previously addressed for the user-registered `mask_secret()` patterns in CVE-2025-68438; that fix did not cover the nested sensitive-keyword allowlist. Users who already upgraded for CVE-2025-68438 should additionally upgrade to `apache-airflow` 3.2.2 or later to cover the nested-key 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 |
| 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 rendered-template field handling caused nested sensitive-key masking (e.g. nested `password` / `token` / `secret` / `api_key` keys inside a JSON template structure) to be bypassed when the rendered field exceeded `[core] max_templated_field_length`: Airflow stringified the structure before redaction, losing the nested key context, and persisted the plaintext value into `rendered_fields`. An authenticated UI/API user with permission to read rendered template fields could harvest secret values intended to be masked. Affects deployments where Dag authors pass structured JSON to operators with nested sensitive keys. This is a variant of `CWE-200` previously addressed for the user-registered `mask_secret()` patterns in CVE-2025-68438; that fix did not cover the nested sensitive-keyword allowlist. Users who already upgraded for CVE-2025-68438 should additionally upgrade to `apache-airflow` 3.2.2 or later to cover the nested-key path.
NVD (es)
Un error en el manejo de campos de plantilla renderizados de Apache Airflow causó que el enmascaramiento anidado de claves sensibles (por ejemplo, claves anidadas 'password' / 'token' / 'secret' / 'api_key' dentro de una estructura de plantilla JSON) fuera eludido cuando el campo renderizado excedía '[core] max_templated_field_length': Airflow convirtió la estructura a cadena antes de la redacción, perdiendo el contexto de la clave anidada, y persistió el valor en texto plano en 'rendered_fields'. Un usuario autenticado de UI/API con permiso para leer campos de plantilla renderizados podría recolectar valores secretos destinados a ser enmascarados. Afecta a implementaciones donde los autores de Dag pasan JSON estructurado a operadores con claves sensibles anidadas. Esta es una variante de 'CWE-200' previamente abordado para los patrones 'mask_secret()' registrados por el usuario en CVE-2025-68438; esa corrección no cubrió la lista de permitidos de palabras clave sensibles anidadas. Los usuarios que ya actualizaron para CVE-2025-68438 deberían actualizar adicionalmente a 'apache-airflow' 3.2.2 o posterior para cubrir la ruta de clave anidada.
References
| https://github.com/apache/airflow/pull/65906 | fix, issue-tracking, patch, web | |
| https://lists.apache.org/thread/obj79bpxnl7r5olz1gsn0g94y88glnl4 | advisory, mailing-list, vendor-advisory, web | |
| https://nvd.nist.gov/vuln/detail/CVE-2026-42360 | advisory, web | |
| https://github.com/apache/airflow | package | |
| https://github.com/pypa/advisory-database/tree/main/vulns/apache-airflow/PYSEC-2026-172.yaml | web | |
| https://github.com/advisories/GHSA-cg3x-89rc-x9mw | advisory | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-42360 changed 2026-11-03 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-cg3x-89rc-x9mw changed 2026-07-09 | CC-BY-4.0 |
| NVD | CVE-2026-42360 changed 2026-11-03 | Public domain |
| PyPA Advisory Database | PYSEC-2026-172 changed 2026-07-13 | CC-BY-4.0 |
| Bitnami Vulnerability Database | BIT-AIRFLOW-2026-42360 changed 2026-09-08 | Apache-2.0 |