CVE-2024-39877: Apache Airflow: DAG Author Code Execution possibility in airflow-scheduler
Vulnerability summary
CVE-2024-39877 is a high (CVSS 8.8) Improper Control of Generation of Code vulnerability in apache software foundation apache airflow. EPSS estimates a 1.63% chance of exploitation in the next 30 days, higher than 77% of scored vulnerabilities.
Not severe (CVSS 8.8, network access); no exploitation reported by the 5 checked sources
Source freshness unavailable
How is this decided?Advisory lineage
Upstream 0 · Downstream 0 · Related 2Timeline
- 17-07-2024PublishedVulnerability first disclosed.
- 04-11-2026Last modifiedVulnerability information updated.
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.
CVSS metrics
5 scores · 5 sources · 1 version- OSV · PypiEcosystem advisory · calculated8.8HighCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- OSV · WolfiEcosystem advisory · calculated8.8HighCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- OSV · ChainguardEcosystem advisory · calculated8.8HighCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- NVDNIST8.8HighCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
EPSS trend
Probability
1.63%
Chance of exploitation in the next 30 days
Percentile
77%
Versus all other CVEs
30-day change
Decrease -0.10 pp
From 1.73% on 04-11-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root cause- CWE-94Improper Control of Generation of CodeThe product constructs all or part of a code segment using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the syntax or behavior of the intended code segment.
- CWE-277Insecure Inherited PermissionsA product defines a set of insecure permissions that are inherited by objects that are created by the program.
Affected systems
Known conditions: network-reachable, low-privilege account, no user interaction (CVSS vector). Other conditions: not stated in public data.
Chainguard2 products
- airflow< 2.9.3-r0
- airflow-bitnami-compat< 2.9.3-r0
Wolfi2 products
- airflow< 2.9.3-r0
- airflow-bitnami-compat< 2.9.3-r0
Apache1 product
- airflow≥ 2.4.0, < 2.9.3
Apache software foundation1 product
- apache airflow≥ 2.4.0, < 2.9.3
PyPI1 product
- apache-airflow≥ 2.4.0, < 2.9.3
5 vendors · 7 products
References
10 links- lists.apache.org/thread/1xhj9dkp37d6pzn24ll2mf94wbqnb2y1Vendor AdvisoryWEBARTICLEAdvisoryMailing List
- github.com/apache/airflowPACKAGE