# CVE-2021-38540: Apache Airflow: Variable Import endpoint missed authentication check

- Severity: Critical 9.8 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- 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): 80.5%, higher than 99% of CVEs (2026-12-01)
- Published: 2021-09-09T15:05:09.000Z
- Modified: 2026-11-27T13:17:16.947Z
- Also known as: GHSA-h88f-r7cw-8fv3, BIT-AIRFLOW-2021-38540, PYSEC-2021-326
- Weaknesses: CWE-269, CWE-306
- Assigned by: apache

## Description

The variable import endpoint was not protected by authentication in Airflow >=2.0.0, <2.1.3. This allowed unauthenticated users to hit that endpoint to add/modify Airflow variables used in DAGs, potentially resulting in a denial of service, information disclosure or remote code execution. This issue affects Apache Airflow >=2.0.0, <2.1.3.

(As written by CVE List.)

## Affected

- Apache Software Foundation Apache Airflow: before 2.1.3
- apache-airflow (PyPI): from 2.0.0 before 2.1.3
- apache airflow: from 2.0.0 before 2.1.3
- airflow (Bitnami): from 2.0.0 before 2.1.3

## Every score

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

## References

- <https://lists.apache.org/thread.html/rb34c3dd1a815456355217eef34060789f771b6f77c3a3dec77de2064%40%3Cusers.airflow.apache.org%3E> (advisory, mailing-list, vendor-advisory, web)
- <https://lists.apache.org/thread.html/rac2ed9118f64733e47b4f1e82ddc8c8020774698f13328ca742b03a2%40%3Cannounce.apache.org%3E> (mailing-list, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2021-38540> (advisory, web)
- <https://github.com/apache/airflow/commit/bcec1df703cd4a01520a90c3f801cca6f97d9bfd> (web)
- <https://github.com/advisories/GHSA-h88f-r7cw-8fv3> (advisory)
- <https://github.com/apache/airflow> (package)
- <https://github.com/pypa/advisory-database/tree/main/vulns/apache-airflow/PYSEC-2021-326.yaml> (web)
- <https://lists.apache.org/thread.html/rac2ed9118f64733e47b4f1e82ddc8c8020774698f13328ca742b03a2@%3Cannounce.apache.org%3E> (web)

## Sources

- CVE List: [CVE-2021-38540](https://www.cve.org/CVERecord?id=CVE-2021-38540), CVE Terms of Use, modified 2026-11-27
- GitHub Advisory Database: [GHSA-h88f-r7cw-8fv3](https://github.com/advisories/GHSA-h88f-r7cw-8fv3), CC-BY-4.0, modified 2024-09-11
- NVD: [CVE-2021-38540](https://nvd.nist.gov/vuln/detail/CVE-2021-38540), Public domain, modified 2026-11-27
- PyPA Advisory Database: [PYSEC-2021-326](https://osv.dev/vulnerability/PYSEC-2021-326), CC-BY-4.0, modified 2023-12-06
- Bitnami Vulnerability Database: [BIT-AIRFLOW-2021-38540](https://osv.dev/vulnerability/BIT-AIRFLOW-2021-38540), Apache-2.0, modified 2026-09-08

---

Page: https://cve.day/CVE-2021-38540 · Whole record: https://cve.day/CVE-2021-38540.json · Rebuilt by cve.day 2026-11-27T13:32:15.742Z
