CVE-2021-38540: Missing Authentication for Critical Function in Apache Airflow
9.8
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.9955%
CWE
Published
5/24/2022
Updated
9/11/2024
KEV Status
No
Technology
Python
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
| Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
|---|---|---|---|
| apache-airflow | pip | >= 2.0.0, < 2.1.3 | 2.1.3 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The GitHub patch shows the vulnerability was fixed by adding @auth.has_access to the varimport method in views.py. The original code had this endpoint in class_permissions but lacked explicit authentication enforcement. The removal from class_permissions and direct addition of the auth decorator indicates this was the unprotected critical function. The added test (test_import_variables_anon) confirms authentication was missing for this endpoint.