{"id":"CVE-2021-38540","aliases":["CVE-2021-38540","GHSA-h88f-r7cw-8fv3","BIT-AIRFLOW-2021-38540","PYSEC-2021-326"],"related":[],"kind":"vulnerability","state":"published","title":"Apache Airflow: Variable Import endpoint missed authentication check","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 service, information disclosure or remote code execution. This issue affects Apache Airflow >=2.0.0, <2.1.3.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"es","text":"El endpoint de importación de variables no estaba protegido por autenticación en Airflow versiones posteriores a 2.0.0 incluyéndola, versiones anteriores a 2.1.3. Esto permitía a usuarios no autenticados acceder a ese endpoint para añadir y modificar las variables de Airflow usadas en los DAG, resultando en una denegación de servicio, una divulgación de información o una ejecución de código remota. Este problema afecta a Apache Airflow versiones posteriores a 2.0.0 incluyéndola, versiones anteriores a 2.1.3","source":"nvd"}],"published":"2021-09-09T15:05:09.000Z","modified":"2026-11-27T13:17:16.947Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},"severities":[{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},{"scorer":"GitHub","scheme":"CVSS:4.0","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","rating":"CRITICAL"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:L/Au:N/C:P/I:P/A:P","score":7.5,"rating":"HIGH"},{"scorer":"Bitnami Vulnerability Database","scheme":"rating","rating":"CRITICAL"}],"cwes":["CWE-269","CWE-306"],"affected":[{"ranges":[{"type":"semver","introduced":"0","fixed":"2.1.3","status":"affected"}],"vendor":"Apache Software Foundation","product":"Apache Airflow","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"2.0.0","status":"affected","fixed":"2.1.3"}],"ecosystem":"PyPI","package":"apache-airflow","purl":"pkg:pypi/apache-airflow","source":"ghsa"},{"ranges":[{"status":"affected","introduced":"2.0.0","fixed":"2.1.3"}],"vendor":"apache","product":"airflow","cpe":"cpe:2.3:a:apache:airflow:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"type":"ecosystem","introduced":"2.0.0","status":"affected","fixed":"2.1.3"}],"ecosystem":"PyPI","package":"apache-airflow","purl":"pkg:pypi/apache-airflow","source":"pysec"},{"ranges":[{"type":"semver","introduced":"2.0.0","status":"affected","fixed":"2.1.3"}],"ecosystem":"Bitnami","package":"airflow","purl":"pkg:bitnami/airflow","source":"bitnami"}],"references":[{"url":"https://lists.apache.org/thread.html/rb34c3dd1a815456355217eef34060789f771b6f77c3a3dec77de2064%40%3Cusers.airflow.apache.org%3E","tags":["advisory","mailing-list","vendor-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec","bitnami"]},{"url":"https://lists.apache.org/thread.html/rac2ed9118f64733e47b4f1e82ddc8c8020774698f13328ca742b03a2%40%3Cannounce.apache.org%3E","tags":["mailing-list","web","x-refsource-mlist","x-transferred"],"sources":["cvelist","nvd","bitnami"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-38540","tags":["advisory","web"],"sources":["ghsa","bitnami"]},{"url":"https://github.com/apache/airflow/commit/bcec1df703cd4a01520a90c3f801cca6f97d9bfd","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/advisories/GHSA-h88f-r7cw-8fv3","tags":["advisory"],"sources":["ghsa","pysec"]},{"url":"https://github.com/apache/airflow","tags":["package"],"sources":["ghsa"]},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/apache-airflow/PYSEC-2021-326.yaml","tags":["web"],"sources":["ghsa"]},{"url":"https://lists.apache.org/thread.html/rac2ed9118f64733e47b4f1e82ddc8c8020774698f13328ca742b03a2@%3Cannounce.apache.org%3E","tags":["web"],"sources":["ghsa","pysec"]}],"credits":["Apache Airflow would like to thank Nathan Jones, National Australia Bank’s Offensive Security Team"],"assigner":"apache","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2021-38540","url":"https://www.cve.org/CVERecord?id=CVE-2021-38540","licence":"CVE Terms of Use","modified":"2026-11-27T12:56:13.796Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-h88f-r7cw-8fv3","url":"https://github.com/advisories/GHSA-h88f-r7cw-8fv3","licence":"CC-BY-4.0","modified":"2024-09-11T20:02:06.795Z"},{"source":"nvd","name":"NVD","id":"CVE-2021-38540","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-38540","licence":"Public domain","modified":"2026-11-27T13:17:16.947Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2021-326","url":"https://osv.dev/vulnerability/PYSEC-2021-326","licence":"CC-BY-4.0","modified":"2023-12-06T01:01:25.686Z"},{"source":"bitnami","name":"Bitnami Vulnerability Database","id":"BIT-AIRFLOW-2021-38540","url":"https://osv.dev/vulnerability/BIT-AIRFLOW-2021-38540","licence":"Apache-2.0","modified":"2026-09-08T08:45:21.267Z"}],"updatedAt":"2026-11-27T13:32:15.742Z","epss":{"score":0.80498,"percentile":0.99628,"date":"2026-12-01T12:00:22.000Z"}}