Apache Airflow: DAG Author Code Execution possibility in airflow-scheduler
Key facts
- Attack vector
- Network
- Privileges required
- Low
- User interaction
- None
- Attack complexity
- Low
- Impact type
- Code execution
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CISA ADP. Fix status from CNA and GitHub. Impact type from CWE-94.
Summary
Apache Airflow 2.4.0, and versions before 2.9.3, has a vulnerability that allows authenticated DAG authors to craft a doc_md parameter in a way that could execute arbitrary code in the scheduler context, which should be forbidden according to the Airflow Security model. Users should upgrade to version 2.9.3 or later which has removed the vulnerability.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- Poc
- Automatable
- No
- Technical impact
- Total
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| Apache | Apache Airflow | 2.4.0 to before 2.9.3 | 2.9.3 | Patch available | CNA |
| — | apache-airflow (PyPI) | 2.4.0 to before 2.9.3 | 2.9.3 | Patch available | GHSA-g5hv-r743-v8pm |
- Apache Airflow VendorApache Affected 2.4.0 to before 2.9.3 Fixed in 2.9.3 Patch available CNA
- apache-airflow (PyPI) Vendor— Affected 2.4.0 to before 2.9.3 Fixed in 2.9.3 Patch available GHSA-g5hv-r743-v8pm
Remediation
- Fix · CNA Apache Airflow (Apache Software Foundation) Fixed in 2.9.3
- Fix · GHSA-g5hv-r743-v8pm apache-airflow (PyPI) Fixed in 2.9.3 Advisory →
Fixed in the same release
Records fixed by the same vendor advisory or release, as the CNA lists them.
- Release ·
Apache Airflow 2.9.3
2 records Highest priority Priority HIGH 1 HIGH, 1 LOW
Other records, highest priority first
- TI-2024-26762 Apache Airflow: Potential XSS VulnerabilityPriority LOW 37
Timeline
- 2026-10-02 Threatist record created from CVE-2024-39877
- 2026-10-03 Alias added: GHSA-g5hv-r743-v8pm
- 2026-11-03 CISA SSVC decision points changed
References
Advisory 2
More Apache Airflow vulnerabilities
- TI-2020-10905 Missing authentication in Apache Airflow KEVCVSS 3.1CRITICAL 9.8
- TI-2020-09638 OS command injection in Apache Airflow KEVCVSS 3.1HIGH 8.8
- TI-2022-19017 Apache Airflow <2.4.0 has an RCE in a bash example CVSS 3.1HIGH 8.8
- TI-2021-16140 Apache Airflow: Variable Import endpoint missed authentication check CVSS 3.1CRITICAL 9.8
- TI-2022-08169 Apache Airflow: RCE in example DAGs CVSS 3.1HIGH 8.8
- TI-2022-22368 Apache Airflow: Open redirect during login CVSS 3.1MEDIUM 6.1
Sources
- CVE-2024-39877 · CVE Program
- CVE-2024-39877 · NVD
- FIRST EPSS
- GHSA-g5hv-r743-v8pm · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences