# CVE-2023-40712: Apache Airflow: Secrets can be unmasked in the "Rendered Template"

- Severity: Medium 6.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 2.00%, higher than 81% of CVEs (2026-12-01)
- Published: 2023-09-12T11:05:48.763Z
- Modified: 2026-09-08T08:45:20.284Z
- Also known as: GHSA-mjqh-v5f2-g2mw, BIT-AIRFLOW-2023-40712, PYSEC-2023-171
- Weaknesses: CWE-200
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: apache

## Description

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.

(As written by CVE List.)

## Affected

- Apache Software Foundation Apache Airflow: before 2.7.1
- apache-airflow (PyPI): before 2.7.1
- apache airflow: before 2.7.1
- airflow (Bitnami): before 2.7.1

## Every score

- GitHub: CVSS:3.1 6.5 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N`
- GitHub: CVSS:4.0 High `CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N`
- NVD: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N`
- Bitnami Vulnerability Database: rating Medium

## References

- <https://github.com/apache/airflow/pull/33512> (advisory, patch, vendor-advisory, web)
- <https://github.com/apache/airflow/pull/33516> (advisory, patch, vendor-advisory, web)
- <https://lists.apache.org/thread/jw1yv4lt6hpowqbb0x4o3tdp0jhx2bts> (advisory, mailing-list, vendor-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2023-40712> (advisory, web)
- <https://github.com/apache/airflow/commit/4390524a41fdfd2d57f1d2dc98ad7b4009c8399e> (web)
- <https://github.com/apache/airflow/commit/d9814eb3a2fc1dbbb885a0a2c1b7a23ce1cfa148> (web)
- <https://github.com/apache/airflow> (package)
- <https://github.com/pypa/advisory-database/tree/main/vulns/apache-airflow/PYSEC-2023-171.yaml> (web)
- <https://github.com/advisories/GHSA-mjqh-v5f2-g2mw> (advisory)

## Sources

- CVE List: [CVE-2023-40712](https://www.cve.org/CVERecord?id=CVE-2023-40712), CVE Terms of Use, modified 2024-09-25
- GitHub Advisory Database: [GHSA-mjqh-v5f2-g2mw](https://github.com/advisories/GHSA-mjqh-v5f2-g2mw), CC-BY-4.0, modified 2024-11-22
- NVD: [CVE-2023-40712](https://nvd.nist.gov/vuln/detail/CVE-2023-40712), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2023-171](https://osv.dev/vulnerability/PYSEC-2023-171), CC-BY-4.0, modified 2026-06-10
- Bitnami Vulnerability Database: [BIT-AIRFLOW-2023-40712](https://osv.dev/vulnerability/BIT-AIRFLOW-2023-40712), Apache-2.0, modified 2026-09-08

---

Page: https://cve.day/CVE-2023-40712 · Whole record: https://cve.day/CVE-2023-40712.json · Rebuilt by cve.day 2026-11-25T22:58:27.836Z
