CVE-2022-27949: Apache Airflow subject to Exposure of Sensitive Information
7.5
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.38104%
CWE
Published
11/14/2022
Updated
9/11/2024
KEV Status
No
Technology
Python
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
| Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
|---|---|---|---|
| apache-airflow | pip | < 2.3.1 | 2.3.1 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems from two key issues:
- In TaskInstance.get_rendered_template_fields, the pre-2.3.1 code path for unmasked template rendering of pending tasks (via RenderedTaskInstanceFields initialization without proper redaction) exposed secrets.
- The mask_secret function's conditional logic (checking settings.MASK_SECRETS_IN_LOGS) prevented secret masking in non-running task contexts. The patch removed this conditional check and enforced redaction through direct calls to redact() in template rendering. The commit diff and CVE description explicitly show these functions were modified to address the exposure mechanism.