{"id":"CVE-2021-38540","title":"The variable import endpoint was not protected by authentication in Airflow >=2.0.0, <2.1.3","summary":"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 servi…","severity":"critical","cvss":9.8,"cvssVector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","cwe":["CWE-269","CWE-306"],"vendor":"apache","product":"airflow","affected":["airflow >= 2.0.0, < 2.1.3"],"patched":["airflow 2.1.3"],"published":"2021-09-09","updated":"2026-11-27","sourceUpdated":"2026-11-27T13:17:16.947","source":"NVD","sourceUrl":"https://nvd.nist.gov/vuln/detail/CVE-2021-38540","references":[{"url":"https://lists.apache.org/thread.html/rac2ed9118f64733e47b4f1e82ddc8c8020774698f13328ca742b03a2%40%3Cannounce.apache.org%3E","label":"security@apache.org"},{"url":"https://lists.apache.org/thread.html/rb34c3dd1a815456355217eef34060789f771b6f77c3a3dec77de2064%40%3Cusers.airflow.apache.org%3E","label":"security@apache.org"},{"url":"https://lists.apache.org/thread.html/rac2ed9118f64733e47b4f1e82ddc8c8020774698f13328ca742b03a2%40%3Cannounce.apache.org%3E","label":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"https://lists.apache.org/thread.html/rb34c3dd1a815456355217eef34060789f771b6f77c3a3dec77de2064%40%3Cusers.airflow.apache.org%3E","label":"af854a3a-2127-422b-91ae-364da2661108"}],"tags":["nvd","exploit-available"],"epss":0.80498,"epssPercentile":0.99741,"exploits":{"github":1,"githubRepos":["https://github.com/Captain-v-hook/PoC-for-CVE-2021-38540-"],"nuclei":["CVE-2021-38540"],"checkedAt":"2026-11-27T15:13:51.335Z"},"exploitAvailable":true,"ingestedAt":"2026-11-27T13:44:44.666Z","slug":"CVE-2021-38540","body":"## Overview\n\nThe 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.\n\n## Affected\n\n- `airflow >= 2.0.0, < 2.1.3`\n\n## Remediation\n\nUpgrade past the affected range:\n\n- `airflow 2.1.3`","depth":"abyssal","depthScore":82,"depthScoreParts":{"impact":53.9,"likelihood":16.1,"exploitation":12,"ransomware":0},"changes":[]}