Apache Airflow: Secrets can be unmasked in the "Rendered Template"
Key facts
- Attack vector
- Network
- Privileges required
- Low
- User interaction
- None
- Attack complexity
- Low
- Impact type
- Information disclosure
- Confidentiality · integrity · availability
- High · None · None
- Fix status
- Fixed
Attack profile from CVSS 3.1 · NVD. Fix status from CNA and GitHub. Impact type from CWE-200.
Summary
Apache Airflow, versions before 2.7.1, is affected by a vulnerability that allows authenticated users who have access to see the task/dag in the UI, to craft a URL, which could lead to unmasking the secret configuration of the task that otherwise would be masked in the UI. Users are strongly advised to upgrade to version 2.7.1 or later which has removed the vulnerability.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| Apache | Apache Airflow | before 2.7.1 | 2.7.1 | Patch available | CNA |
| — | apache-airflow (PyPI) | before 2.7.1 | 2.7.1 | Patch available | GHSA-mjqh-v5f2-g2mw |
- Apache Airflow VendorApache Affected before 2.7.1 Fixed in 2.7.1 Patch available CNA
- apache-airflow (PyPI) Vendor— Affected before 2.7.1 Fixed in 2.7.1 Patch available GHSA-mjqh-v5f2-g2mw
Remediation
- Fix · CNA Apache Airflow (Apache Software Foundation) Fixed in 2.7.1
- Fix · GHSA-mjqh-v5f2-g2mw apache-airflow (PyPI) Fixed in 2.7.1 Advisory →
Fixed in the same release
Records fixed by the same vendor advisory or release, as the CNA lists them.
- Release ·
Apache Airflow 2.7.1
2 records Highest priority Priority LOW 2 LOW
Other records, highest priority first
- TI-2023-21409 Apache Airflow Dag Runs Broken Access Control VulnerabilityPriority LOW 24
Vendor assessments
Timeline
- 2026-10-02 Threatist record created from CVE-2023-40712
- 2026-10-03 Alias added: GHSA-mjqh-v5f2-g2mw
References
Advisory 2
More Apache Airflow vulnerabilities
- TI-2020-10905 Missing authentication in Apache Airflow KEVCVSS 3.1CRITICAL 9.8
- TI-2020-09638 OS command injection in Apache Airflow KEVCVSS 3.1HIGH 8.8
- TI-2022-19017 Apache Airflow <2.4.0 has an RCE in a bash example CVSS 3.1HIGH 8.8
- TI-2021-16140 Apache Airflow: Variable Import endpoint missed authentication check CVSS 3.1CRITICAL 9.8
- TI-2022-08169 Apache Airflow: RCE in example DAGs CVSS 3.1HIGH 8.8
- TI-2024-26776 Apache Airflow: DAG Author Code Execution possibility in airflow-scheduler CVSS 3.1HIGH 8.8
Sources
- CVE-2023-40712 · CVE Program
- CVE-2023-40712 · NVD
- FIRST EPSS
- GHSA-mjqh-v5f2-g2mw · GitHub Advisory Database · CC BY 4.0
- CVE-2023-40712 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences