---
id: CVE-2024-39877
aliases:
  - GHSA-g5hv-r743-v8pm
  - BIT-airflow-2024-39877
  - PYSEC-2024-190
title: Apache Airflow has DAG Author Code Execution possibility in airflow-scheduler
summary: Apache Airflow has DAG Author Code Execution possibility in airflow-scheduler
severity: high
cvss: 8.8
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H'
vendor: apache-airflow
product: apache-airflow
ecosystem: pip
affected:
  - 'apache-airflow >= 2.4.0, < 2.9.3'
patched:
  - apache-airflow 2.9.3
published: '2024-07-17'
updated: '2026-09-10'
sourceUpdated: '2026-09-10T03:50:16.767279384Z'
source: OSV
sourceUrl: 'https://osv.dev/vulnerability/GHSA-g5hv-r743-v8pm'
references:
  - url: 'https://nvd.nist.gov/vuln/detail/CVE-2024-39877'
  - url: 'https://github.com/apache/airflow/pull/40522'
  - url: >-
      https://github.com/apache/airflow/commit/8159f6e24704f5e0e3b3217cf79ecf5083dce531
  - url: 'https://github.com/apache/airflow'
  - url: >-
      https://github.com/pypa/advisory-database/tree/main/vulns/apache-airflow/PYSEC-2024-190.yaml
  - url: 'https://lists.apache.org/thread/1xhj9dkp37d6pzn24ll2mf94wbqnb2y1'
  - url: 'http://www.openwall.com/lists/oss-security/2024/07/16/7'
tags:
  - osv
  - pip
epss: 0.01726
epssPercentile: 0.76541
ingestedAt: '2026-09-12T03:13:01.694Z'
---

## Overview

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 packages

- `apache-airflow >= 2.4.0, < 2.9.3`

## Remediation

Upgrade to a patched release:

- `apache-airflow 2.9.3`
