CVE-2021-38540
CRITICAL9.8EPSS 91.8%Apache Airflow: Variable Import endpoint missed authentication check
Published: 5/24/2022Modified: 5/20/2025
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.
Affected packages (3)
- Bitnami/airflow>= 2.0.0, < 2.1.3
- PyPI/apache-airflow>= 2.0.0, < 2.1.3
- PyPI/apache-airflow>= 2.0.0, < 2.1.3
CVSS scores
| Source | Version | Severity | Vector |
|---|---|---|---|
| osv | 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 |
| osv | CVSS 3.1 | CRITICAL9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
References (8)
- ADVISORYhttps://github.com/advisories/GHSA-h88f-r7cw-8fv3
- ADVISORYhttps://nvd.nist.gov/vuln/detail/CVE-2021-38540
- PATCHhttps://github.com/apache/airflow
- WEBhttps://github.com/apache/airflow/commit/bcec1df703cd4a01520a90c3f801cca6f97d9bfd
- WEBhttps://github.com/pypa/advisory-database/tree/main/vulns/apache-airflow/PYSEC-2021-326.yaml
- WEBhttps://lists.apache.org/thread.html/rac2ed9118f64733e47b4f1e82ddc8c8020774698f13328ca742b03a2@%3Cannounce.apache.org%3E
- WEBhttps://lists.apache.org/thread.html/rac2ed9118f64733e47b4f1e82ddc8c8020774698f13328ca742b03a2%40%3Cannounce.apache.org%3E
- WEBhttps://lists.apache.org/thread.html/rb34c3dd1a815456355217eef34060789f771b6f77c3a3dec77de2064%40%3Cusers.airflow.apache.org%3E