cbcvebase.
CVE-2021-38540
published 2021-09-09

CVE-2021-38540: The variable import endpoint was not protected by authentication in Airflow >=2.0.0, =2.0.0, <2.1.3.

PriorityP180critical9.8CVSS 3.1
AVNACLPRNUINSUCHIHAH
EXPLOIT
EPSS
80.94%
99.6th percentile
The variable import endpoint was not protected by authentication in Airflow >=2.0.0, =2.0.0, <2.1.3.

Affected

2 ranges
VendorProductVersion rangeFixed in
apacheairflow>= 2.0.0 < 2.1.32.1.3
apache_software_foundationapache_airflow>= Apache Airflow < 2.1.32.1.3

Detection & IOCsextracted from sources · hover to see the quote

othercsrf_token extracted via regex: type="hidden" value="(.*?)">
  • The /variable/varimport endpoint accepts unauthenticated POST requests in Apache Airflow >=2.0.0, <2.1.3. Monitor for POST requests to this path without a valid session/auth header.
  • Exploit chains a GET to /login to harvest a CSRF token (hidden field), then POSTs a variable import payload to /variable/varimport — detect two-step sequences from the same source IP hitting both paths.
  • ·Vulnerability only affects Apache Airflow versions >=2.0.0 and <2.1.3; versions outside this range are not affected.
  • ·The exploit requires a valid CSRF token harvested from the /login page before the unauthenticated import POST will succeed; detection logic should account for this two-request pattern.

CVSS provenance

nvdv3.19.8CRITICALCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
nvdv2.07.5HIGHAV:N/AC:L/Au:N/C:P/I:P/A:P
CVEs like this are exactly what “Exploited This Week” covers.

Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.