patchminder
Weaponized · Nuclei CVE-2021-38540

Remote code executionin Apache Airflow.

Published 9 Sep 2021 · Updated 27 Nov 2026 · Every fact sourced

JSONCite
Is it exploited?
Not confirmed

Weaponized: a Nuclei exploit is public.

Attack code is public
Severity
Critical 9.8
CVSSA severity score from 0 to 10. 9 and higher is critical. 3.1 · no login needed
Attack likelihood
Very high
EPSSA daily score from FIRST: the chance a hole is attacked in the next 30 days. 80.5% chance in 30 days · 4 Dec 2026
Fix
Available
Upgrade to 2.1.3 or later
In plain words

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.

What to do now
  • 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
Versions

Affected and fixed versions

Product or package
Affected
Fixed in
Source
Apache Airflow
before 2.1.3
2.1.3
CVE record
apache-airflow (PyPI)
2.0.0 to before 2.1.3
2.1.3
GitHub advisory

From the CVE record, NVD and package advisories. When no source has versions yet, this table says "not confirmed" instead of guessing.

Timeline

From first report to first attacks

  1. 11 Aug 2021
    CVE ID reserved by apache.
  2. 9 Sep 2021
    Published in the CVE List.
  3. 13 Jun 2022
    First public proof of concept on GitHub.
  4. 27 Nov 2026
    CVE record last updated.
Exploit code

Attack code anyone can find

Exploit maturity: Weaponized (Nuclei).

Metasploit module
None known
Nuclei scan template
Available
Exploit-DB
None known
GitHub proof of concepts
1 repository
GitHubno warning signs foundCaptain-v-hook/PoC-for-CVE-2021-38540-4 stars · created 13 Jun 2022Missing Authentication on Critical component CVE-2021-38540

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.

Related

Other Airflow vulnerabilities

Same weakness: Improper privilege management

All CWE-269 vulnerabilities

References
Cite this page

Patchminder. CVE-2021-38540: Remote code execution in Apache Airflow. https://patchminder.com/cve/cve-2021-38540/ (accessed 5 December 2026).