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

- Priority: **Routine**
- Reason: Not severe (CVSS 8.8, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2024-07-17 · Modified: 2026-11-04
- Aliases: GHSA-g5hv-r743-v8pm, BIT-airflow-2024-39877, PYSEC-2024-190, CGA-cj2c-wrj6-g7fc, CGA-cxcg-jc96-pwjp, CGA-qx9m-4fx3-346c, CGA-wwfp-8778-gv4f
- Record: https://cvemate.com/vulnerability/CVE-2024-39877 · JSON: https://cvemate.com/vulnerability/CVE-2024-39877/json

## Description

```text
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.
```

## Signals

- CVSS: 8.8 high (v3.1, CVE.org) CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- EPSS: 1.627%, percentile 77.009%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- apache software foundation apache airflow: ≥ 2.4.0, \< 2.9.3
- apache airflow: ≥ 2.4.0, \< 2.9.3
- chainguard airflow (Chainguard): \< 2.9.3-r0
- chainguard airflow-bitnami-compat (Chainguard): \< 2.9.3-r0
- wolfi airflow (Wolfi): \< 2.9.3-r0
- wolfi airflow-bitnami-compat (Wolfi): \< 2.9.3-r0
- PyPI apache-airflow (PyPI): ≥ 2.4.0, \< 2.9.3

## References

- <https://github.com/apache/airflow/pull/40522>
- <https://lists.apache.org/thread/1xhj9dkp37d6pzn24ll2mf94wbqnb2y1>
- <http://www.openwall.com/lists/oss-security/2024/07/16/7>
- <https://nvd.nist.gov/vuln/detail/CVE-2024-39877>
- <https://github.com/apache/airflow/commit/8159f6e24704f5e0e3b3217cf79ecf5083dce531>
- <https://github.com/apache/airflow>
- <https://github.com/pypa/advisory-database/tree/main/vulns/apache-airflow/PYSEC-2024-190.yaml>
- <https://github.com/advisories/GHSA-g5hv-r743-v8pm>
- <https://pypi.python.org>
- <https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/39xxx/CVE-2024-39877.json>

---

Data as of 2026-12-05T08:28:31.870Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
