CVE-2026-42358
Apache Airflow: Variable masker depth-limit bypass returns cleartext nested secrets
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.
INFO
Published Date :
June 1, 2026, 9:16 a.m.
Last Modified :
July 21, 2026, 7:10 p.m.
Remotely Exploit :
Yes !
Source :
[email protected]
CVSS Scores
| Score | Version | Severity | Vector | Exploitability Score | Impact Score | Source |
|---|---|---|---|---|---|---|
| CVSS | 134c704f-9b21-4f2e-91b3-4a467353bcc0 | |||||
| CVSS 3.1 | MEDIUM | [email protected] | ||||
| CVSS 3.1 | MEDIUM | 134c704f-9b21-4f2e-91b3-4a467353bcc0 |
Solution
- Upgrade Apache Airflow to version 3.2.2 or later.
- Ensure sensitive data is not stored in deeply nested JSON.
- Review and update masker configurations if applicable.
References to Advisories, Solutions, and Tools
Here, you will find a curated list of external links that provide in-depth
information, practical solutions, and valuable tools related to
CVE-2026-42358.
| URL | Resource |
|---|---|
| https://github.com/apache/airflow/pull/65912 | Issue Tracking Patch |
| https://lists.apache.org/thread/33635mv3zjb75wn5453c5yf9trs8x2om | Mailing List Vendor Advisory |
CWE - Common Weakness Enumeration
While CVE identifies
specific instances of vulnerabilities, CWE categorizes the common flaws or
weaknesses that can lead to vulnerabilities. CVE-2026-42358 is
associated with the following CWEs:
Common Attack Pattern Enumeration and Classification (CAPEC)
Common Attack Pattern Enumeration and Classification
(CAPEC)
stores attack patterns, which are descriptions of the common attributes and
approaches employed by adversaries to exploit the CVE-2026-42358
weaknesses.
We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).
Results are limited to the first 15 repositories due to potential performance issues.
The following list is the news that have been mention
CVE-2026-42358 vulnerability anywhere in the article.
The following table lists the changes that have been made to the
CVE-2026-42358 vulnerability over time.
Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.
-
CVE Translated by [email protected]
Jul. 21, 2026
Action Type Old Value New Value Added Translation Title: Apache Airflow de Apache Software Foundation, Description: 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. -
CVE Modified by [email protected]
Jun. 17, 2026
Action Type Old Value New Value Added Affected [{'vendor': 'Apache Software Foundation', 'product': 'Apache Airflow', 'versions': [{'status': 'affected', 'version': '0', 'lessThan': '3.2.2', 'versionType': 'semver'}], 'packageName': 'apache-airflow', 'collectionURL': 'https://pypi.python.org', 'defaultStatus': 'unaffected'}] -
CVE Modified by 134c704f-9b21-4f2e-91b3-4a467353bcc0
Jun. 17, 2026
Action Type Old Value New Value Added SSVC {'id': 'CVE-2026-42358', 'role': 'CISA Coordinator', 'options': [{'exploitation': 'none'}, {'automatable': 'no'}, {'technicalImpact': 'partial'}], 'version': '2.0.3', 'timestamp': '2026-06-02T16:04:11.831017Z'} -
CVE Modified by 134c704f-9b21-4f2e-91b3-4a467353bcc0
Jun. 02, 2026
Action Type Old Value New Value Added CVSS V3.1 AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N -
Initial Analysis by [email protected]
Jun. 01, 2026
Action Type Old Value New Value Added CVSS V3.1 AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N Added CPE Configuration OR *cpe:2.3:a:apache:airflow:*:*:*:*:*:*:*:* versions up to (excluding) 3.2.2 Added Reference Type Apache Software Foundation: https://github.com/apache/airflow/pull/65912 Types: Issue Tracking, Patch Added Reference Type Apache Software Foundation: https://lists.apache.org/thread/33635mv3zjb75wn5453c5yf9trs8x2om Types: Mailing List, Vendor Advisory -
New CVE Received by [email protected]
Jun. 01, 2026
Action Type Old Value New Value Added 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. Added CWE CWE-200 Added Reference https://github.com/apache/airflow/pull/65912 Added Reference https://lists.apache.org/thread/33635mv3zjb75wn5453c5yf9trs8x2om