CVE-2024-27906: Apache Airflow: DAG Code and Import Error Permissions Ignored
Apache Airflow, versions before 2.8.2, has a vulnerability that allows authenticated users to view DAG code and import errors of DAGs they do not have permission to view through the API and the UI. Users of Apache Airflow are recommended to upgrade to version 2.8.2 or newer to mitigate the risk associated with this vulnerability
Published Feb 29, 2024 · Updated Mar 22, 2026
Affected packages
apache-airflow
- Ecosystem
- PyPI
- Affected
- <= 2.8.1
- Fixed in
- 2.8.2
- Check
pip show apache-airflow
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
Apache Airflow, versions before 2.8.2, has a vulnerability that allows authenticated users to view DAG code and import errors of DAGs they do not have permission to view through the API and the UI.
Users of Apache Airflow are recommended to upgrade to version 2.8.2 or newer to mitigate the risk associated with this vulnerability
Credited to oscerd, sunSUNQ.
References
- https://nvd.nist.gov/vuln/detail/CVE-2024-27906
- https://github.com/apache/airflow/pull/37290
- https://github.com/apache/airflow/pull/37468
- https://lists.apache.org/thread/on4f7t5sqr3vfgp1pvkck79wv7mq9st5
- https://github.com/apache/airflow/commit/08d25607abe8593ecb90a84e338896bb79692d7b
- https://github.com/apache/airflow/commit/0a95299691e2d6a9b874adfae94d246a7f681ec9
- https://github.com/apache/airflow/commit/2adbe882e68df0e2b1084bc869616bb01e416aa7
- https://github.com/apache/airflow/commit/2cb6027280bcf5e2b561f3ee7f55980f6ec4cc3a
- https://github.com/apache/airflow/commit/90255d9d44a649025f588497f6c82177dad48326
- https://github.com/apache/airflow/commit/9c4defa08268322b9db80123a22d7b56b2063446
- https://github.com/apache/airflow/commit/a7fa258ba1c69a18e0f620499625f6026768dc24
- https://github.com/apache/airflow/commit/bc2646be043f71b4d1ab7eefd2af65a60bf919f2
- https://github.com/apache/airflow/commit/d944eb0de216d9e1d125fae5ce4af7440154deb4
- https://github.com/pypa/advisory-database/tree/main/vulns/apache-airflow/PYSEC-2024-245.yaml
- https://github.com/advisories/GHSA-6v6w-h8m6-7mv2
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
More PyPI vulnerabilities
All PyPI entriesCVE-2026-54183
Apache Airflow Variables UI fails to mask sensitive values in deeply nested iterables
medium4.3Aug 12, 2026CVE-2026-58076
Apache Airflow exception-node deserialization permits arbitrary callable execution
high8.8Aug 12, 2026CVE-2026-59242
Apache Airflow XCom API permits unsafe deserialization through JSON string literals
medium5.4Aug 12, 2026CVE-2026-59244
Apache Airflow exposes dict-valued var.json secrets in Rendered Templates
medium6.5Aug 12, 2026CVE-2026-65017
Apache Airflow Config API exposes team-scoped sensitive configuration values
medium6.5Aug 12, 2026CVE-2026-67260
Apache Airflow scheduler unsafely deserializes human-in-the-loop task next_kwargs
high7.3Aug 12, 2026
