CVE-2021-38540
CRITICAL 9.8CVSS 3.1Apache Airflow: Variable Import endpoint missed authentication check
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.
- Published
- 9 Sep 2021
- Last modified
- 27 Nov 2026
- Assigned by
- security@apache.org
- NVD status
- Modified
- Weakness
- CWE-269CWE-306
- Also known as
- BIT-airflow-2021-38540GHSA-h88f-r7cw-8fv3PYSEC-2021-326
- Sources
- NVDJSONCVE ListJSONOSV GHSA-h88f-r7cw-8fv3JSONOSV PYSEC-2021-326JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| OSV | GitHub | CVSS 4.0 | 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 | nvd@nist.gov (Primary) | CVSS 3.1 | CRITICAL 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| OSV | GitHub | CVSS 3.1 | CRITICAL 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | HIGH 7.5 | AV:N/AC:L/Au:N/C:P/I:P/A:P |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | apache | airflowcpe:2.3:a:apache:airflow:*:*:*:*:*:*:*:* |
>= 2.0.0, < 2.1.3 | 2.1.3 |
| CVE List | Apache Software Foundation | Apache Airflow | < 2.1.3 | 2.1.3 |
| OSV | PyPI | apache-airflow | >= 2.0.0, < 2.1.3 | 2.1.3 |
References
- https://lists.apache.org/thread.html/rac2ed9118f64733e47b4f1e82ddc8c8020774698f13328ca742b03a2%40%3Cannounce.apache.org%3E · mailing-list, x_refsource_MLIST
- https://lists.apache.org/thread.html/rb34c3dd1a815456355217eef34060789f771b6f77c3a3dec77de2064%40%3Cusers.airflow.apache.org%3E · Mailing List, Vendor Advisory, x_refsource_MISC, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2021-38540 · ADVISORY
- 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
History
- 27 Nov 2026 14:57 UTC · NVD: updated (other details)
- 27 Nov 2026 13:57 UTC · CVE List: first stored (published 9 Sep 2021)
- 25 Nov 2026 20:33 UTC · NVD: first stored (published 9 Sep 2021)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 9 Sep 2021)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 24 May 2022)