{"schemaVersion":3,"id":"CVE-2021-38540","aliases":["GHSA-h88f-r7cw-8fv3","BIT-airflow-2021-38540","PYSEC-2021-326"],"status":"published","duplicateOf":null,"title":null,"description":"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.","dates":{"published":"2021-09-09T15:05:09.000Z","modified":"2024-08-04T01:44:23.448Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":9.8,"severity":"critical","version":"3.1","versionLabel":"v3.1","source":"NVD","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","computed":false,"selection":"backend-summary"},"metrics":[{"version":"4.0","versionLabel":"v4.0","source":"OSV · Pypi","score":9.3,"severity":"critical","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N","exploitability":null,"impact":null,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Pypi","score":9.8,"severity":"critical","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","exploitability":10,"impact":9.8,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":9.8,"severity":"critical","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","exploitability":null,"impact":null,"computed":false},{"version":"2.0","versionLabel":"v2.0","source":"NVD","score":7.5,"severity":"high","vector":"AV:N/AC:L/Au:N/C:P/I:P/A:P","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.80938,"percentile":0.99629,"severity":"critical","asOf":"2026-10-18T00:00:00.000Z","change":{"pp":0,"baselineDate":"2026-09-18T00:00:00.000Z","baselineScore":0.80938},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.80938,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.80938,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.80938,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.80938,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.80938,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.80938,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.80938,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.80938,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.80938,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.80938,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.80938,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.80938,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.80938,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.80938,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.80938,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.80938,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.80938,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.80938,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.80938,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.80938,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.80938,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.80938,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.80938,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.80938,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.80938,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.80938,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.80938,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.80938,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.80938,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.80938,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.80938,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.80938,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.80938,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.80938,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.80938,"percentile":0.99629}],"last30":[{"date":"2026-09-18T00:00:00.000Z","score":0.80938,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.80938,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.80938,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.80938,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.80938,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.80938,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.80938,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.80938,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.80938,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.80938,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.80938,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.80938,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.80938,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.80938,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.80938,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.80938,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.80938,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.80938,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.80938,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.80938,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.80938,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.80938,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.80938,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.80938,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.80938,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.80938,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.80938,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.80938,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.80938,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.80938,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.80938,"percentile":0.99629}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[],"exploitCount":0,"weaknesses":[{"id":"CWE-269","name":"Improper Privilege Management","description":"The product does not properly assign, modify, track, or check privileges for an actor, creating an unintended sphere of control for that actor.","type":"weakness","status":"Draft","abstraction":"Class","likelihoodOfExploit":"Medium","url":"https://cwe.mitre.org/data/definitions/269.html"},{"id":"CWE-306","name":"Missing Authentication for Critical Function","description":"The product does not perform any authentication for functionality that requires a provable user identity or consumes a significant amount of resources.","type":"weakness","status":"Draft","abstraction":"Base","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/306.html"}],"affected":[{"vendor":"apache software foundation","product":"apache airflow","name":"Apache Airflow","label":"apache airflow","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≥ Apache Airflow, < 2.1.3","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ Apache Airflow, < 2.1.3","eol":null,"hubHref":"/vendor/apache_software_foundation/apache_airflow"},{"vendor":"apache","product":"airflow","name":"Airflow","label":"airflow","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≥ 2.0.0, < 2.1.3","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 2.0.0, < 2.1.3","eol":{"isEol":null,"eolDate":null,"matchMethod":"cpe","cycle":null,"product":{"name":"apache-airflow","label":"Apache Airflow","category":"framework"}},"hubHref":"/vendor/apache/airflow"},{"vendor":"PyPI","product":"apache-airflow","name":"apache-airflow","label":"apache-airflow","ecosystem":"PyPI","cpePart":null,"purl":"pkg:pypi/apache-airflow","purlType":"pypi","versions":[{"text":"≥ 2.0.0, < 2.1.3","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 2.0.0, < 2.1.3","eol":null,"hubHref":null}],"affectedCount":3,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://lists.apache.org/thread.html/rb34c3dd1a815456355217eef34060789f771b6f77c3a3dec77de2064%40%3Cusers.airflow.apache.org%3E","label":"lists.apache.org/thread.html/…","hostname":"lists.apache.org","tags":["X Refsource MISC","WEB","Mailing List","Vendor Advisory"]},{"url":"https://lists.apache.org/thread.html/rac2ed9118f64733e47b4f1e82ddc8c8020774698f13328ca742b03a2%40%3Cannounce.apache.org%3E","label":"lists.apache.org/thread.html/…","hostname":"lists.apache.org","tags":["Mailing List","X Refsource MLIST"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-38540","label":"nvd.nist.gov/vuln/detail/CVE-2021-38540","hostname":"nvd.nist.gov","tags":["Advisory"]},{"url":"https://github.com/apache/airflow/commit/bcec1df703cd4a01520a90c3f801cca6f97d9bfd","label":"github.com/apache/airflow/commit/bcec1df703cd4a01520a90c3f801cca6f97d9bfd","hostname":"github.com","tags":["WEB"]},{"url":"https://github.com/advisories/GHSA-h88f-r7cw-8fv3","label":"github.com/advisories/GHSA-h88f-r7cw-8fv3","hostname":"github.com","tags":["Advisory"]},{"url":"https://github.com/apache/airflow","label":"github.com/apache/airflow","hostname":"github.com","tags":["PACKAGE"]},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/apache-airflow/PYSEC-2021-326.yaml","label":"github.com/pypa/advisory-database/tree/main/vulns/apache-airflow/PYSEC-2021-326.yaml","hostname":"github.com","tags":["WEB"]},{"url":"https://lists.apache.org/thread.html/rac2ed9118f64733e47b4f1e82ddc8c8020774698f13328ca742b03a2@%3Cannounce.apache.org%3E","label":"lists.apache.org/thread.html/…","hostname":"lists.apache.org","tags":["WEB"]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2021-09-09T15:05:09.000Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2024-08-04T01:44:23.448Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":70,"level":"high","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-19T00:51:58.927Z","stale":false,"partial":false}}