Remote code executionin Apache Airflow.
Weaponized: a Nuclei exploit is public.
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.
- Upgrade Apache Airflow to 2.1.3 or later.
- Upgrade apache-airflow (PyPI) to 2.1.3 or later.
- Can't upgrade today? Upgrade to Apache Airflow >=2.1.3
Affected and fixed versions
From the CVE record, NVD and package advisories. When no source has versions yet, this table says "not confirmed" instead of guessing.
From first report to first attacks
- 11 Aug 2021CVE ID reserved by apache.
- 9 Sep 2021Published in the CVE List.
- 13 Jun 2022First public proof of concept on GitHub.
- 27 Nov 2026CVE record last updated.
Attack code anyone can find
Exploit maturity: Weaponized (Nuclei).
Listed so defenders can judge how urgent this is and test systems they are authorised to test. Patchminder does not host exploit code; links open the source page. Labels for GitHub repositories come from their public details and are never a promise about the code. Run anything only in an isolated lab.
Report a link
Other Airflow vulnerabilities
Same weakness: Improper privilege management
- lists.apache.org x_refsource_MISC
- lists.apache.org mailing-list, x_refsource_MLIST
Patchminder. CVE-2021-38540: Remote code execution in Apache Airflow. https://patchminder.com/cve/cve-2021-38540/ (accessed 5 December 2026).