← All security advisories

CVE-2024-39877: Apache Airflow: DAG Author Code Execution possibility in airflow-scheduler

Severity Important
Affects Apache Airflow
Weakness CWE-94 Improper Control of Generation of Code ('Code Injection')
Published July 17, 2024
Record updated November 4, 2026
CVE record CVE-2024-39877 on cve.org

Description

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.

Affected versions

ProductPackageVersions
Apache Airflow apache-airflow from 2.4.0 before 2.9.3

Credits

  • Seokchan Yoon (https://github.com/ch4n3-yoon) (finder)
  • Wei Lee (remediation developer)

References