GHSA-cg3x-89rc-x9mw
Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAuthenticate as low-privilege Airflow user
-
DeliveryIdentify DAG with large nested template dict embedding sensitive keys
-
ExploitTask executes and template field exceeds max_templated_field_length threshold
-
ExecutionTruncation path stringifies dict before masker runs, bypassing nested-key redaction
-
ImpactAccess rendered template view to read cleartext secret value
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V14 - Data Protection Data exposure prevention
MITRE ATT&CK
2 techniques across 2 tactics: Collection, Discovery The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires a low-privilege Airflow account (confirmed by CVSS PR:L) with read access to rendered template views for a target task instance. The vulnerable code path is triggered only when a rendered template field value exceeds the AIRFLOW__CORE__MAX_TEMPLATED_FIELD_LENGTH threshold (default 4096 characters) AND the field contains a nested dictionary structure where a sensitive key (password, token, secret, api_key) appears at a non-top-level depth. Deployments where template fields never exceed the length threshold are not affected by this specific code path, as non-truncated fields use the correct structured-redact order. Deployments where all Airflow users are fully trusted administrators face no incremental access risk. DAGs that retrieve secrets from external backends at execution time without embedding raw values in template fields are also not directly affected. |
| Impact | The CVSS 3.1 score of 6.5 (AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N) is consistent with the described mechanism: network-reachable, low complexity, low privilege required, no user interaction, high confidentiality impact with no integrity or availability effect. The PR:L factor meaningfully limits the attack surface - an attacker must possess a valid Airflow account. EPSS at 0.02% (5th percentile) and the absence of a CISA KEV entry indicate no confirmed widespread or automated exploitation at time of analysis. Despite the low exploitation probability, the confidentiality impact is rated High: credentials, API tokens, or database passwords stored in nested DAG template fields could be exposed in plaintext via the rendered template view. Risk is elevated in multi-tenant Airflow deployments where low-trust users share an instance with DAGs that embed sensitive values in large template dictionaries. A related CVE (CVE-2026-42358) describes a similar variable masker depth-limit bypass, suggesting a pattern of masking failures addressed in the 3.2.2 release; defenders should treat both as related findings. Organizations where all Airflow users hold equivalent administrative trust face lower practical risk. |
| Exploit ScenarioDerived | A low-privilege user on a shared Airflow instance identifies a DAG that passes a large nested dictionary (e.g., env_vars or templates_dict containing DB credentials alongside padding data) as a template field to an operator. When the task runs and the total serialized size of that field exceeds the max_templated_field_length threshold, the truncation code path fires - stringifying the dict before redaction - and the nested password or token value appears unmasked in the rendered template view accessible via the Airflow UI or API. No public exploit code is identified at time of analysis. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Jun 01, 2026
Rendered template field serialization in Apache Airflow before 3.2.2 exposes nested secrets in cleartext when template field values exceed the configured max_templated_field_length threshold. Authenticated low-privilege users with access to rendered template views can read values stored under documented sensitive keys (password, token, secret, api_key) embedded in nested dictionaries - the pre-fix code stringified the structured object before invoking the secrets masker, destroying the nested key context required for recursive redaction. No public exploit is identified at time of analysis; EPSS is 0.02% (5th percentile), and this CVE is not listed in the CISA KEV catalog.
RemediationAI
Upgrade to Apache Airflow 3.2.2 or later, which contains the fix applied via GitHub PR #65906 (https://github.com/apache/airflow/pull/65906) to both airflow-core and task-sdk serialization helpers. The Apache advisory thread is at https://lists.apache.org/thread/obj79bpxnl7r5olz1gsn0g94y88glnl4. Where immediate upgrade is not possible, two compensating controls may reduce exposure: first, lower AIRFLOW__CORE__MAX_TEMPLATED_FIELD_LENGTH to a value smaller than any expected nested template dict in use, which prevents triggering the truncation code path entirely - note this may cause legitimate large template fields to be silently truncated and reduce observability into rendered fields. Second, restrict rendered-template view access via Airflow RBAC to administrators only, limiting the audience who can observe any cleartext leakage - this does not fix the underlying masking failure but reduces who can exploit it. As a defense-in-depth measure independent of patching, avoid embedding raw plaintext secrets directly in DAG template fields; use Airflow Connections or Variables backed by an external secret store (HashiCorp Vault, AWS Secrets Manager) so that sensitive values are retrieved at runtime rather than rendered into template fields.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in pypi
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
The vulnerability is rooted in the serialization helpers used by two Airflow components: airflow-core/src/airflow/serialization/helpers.py and task-sdk/src/airflow/sdk/execution_time/task_runner.py. Both files implement a serialize_object function that handles rendered template fields. When a template field value - such as a nested dictionary passed via an operator's template_fields (e.g., templates_dict, env_vars) - exceeds the AIRFLOW__CORE__MAX_TEMPLATED_FIELD_LENGTH threshold (default 4096 characters), the truncation code path is triggered. In the vulnerable version, the code called redact(str(serialized), name): the structured Python object was converted to a string first, then passed to the secrets masker. The masker's recursive walker traverses key-value structure to identify sensitive field names, but once the dict is stringified, that structural context is destroyed - the masker sees only the outer field name and cannot recurse into nested keys. The fix, applied in PR #65906, reverses the order to redact(serialized, name), redacting while the value remains a structured object before stringifying the result. CWE-200 (Exposure of Sensitive Information to an Unauthorized Actor) correctly classifies this root cause: a code path ordering defect causes the masking mechanism to silently fail for nested structures on the truncation path.
Know when Airflow gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
Primary rating from Vendor (CNA) · only source for this CVE.
CVSS VectorVendor
Lifecycle Timeline
4Description PRE-NVD
Blast Radius
ecosystem impact- 9 pypi packages depend on apache-airflow (5 direct, 4 indirect)
Ecosystem-wide dependent count for version 3.2.2.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.
The previous default setting for Airflow's Experimental API was to allow all API requests without authentication, but th
An issue was found in Apache Airflow versions 1.10.10 and below. Rated high severity (CVSS 8.8), this vulnerability is r
The variable import endpoint was not protected by authentication in Airflow >=2.0.0, <2.1.3. Rated critical severity (CV
A vulnerability in Example Dags of Apache Airflow allows an attacker with UI access who can trigger DAGs, to execute arb
In Apache Airflow, prior to version 2.2.4, some example DAGs did not properly sanitize user-provided params, making them
In Apache Airflow versions prior to 2.4.3, there was an open redirect in the webserver's `/login` endpoint. Rated medium
An issue was found in Apache Airflow versions 1.10.10 and below. Rated critical severity (CVSS 9.8), this vulnerability
Incorrect Session Validation in Apache Airflow Webserver versions prior to 1.10.14 with default config allows a maliciou
An issue was found in Apache Airflow versions 1.10.10 and below. Rated critical severity (CVSS 9.8), this vulnerability
In Apache Airflow < 1.10.12, the "origin" parameter passed to some of the endpoints like '/trigger' was vulnerable to XS
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') vulnerability in Apache Airfl
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') vulnerability in Apache Airfl
EUVD-2026-33590
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB