Advisory Database
  • Advisories
  • Dependency Scanning
  1. pypi
  2. ›
  3. apache-airflow
  4. ›
  5. CVE-2024-39877

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

July 17, 2024 (updated January 21, 2025)

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.

References

  • github.com/advisories/GHSA-g5hv-r743-v8pm
  • github.com/apache/airflow
  • github.com/apache/airflow/commit/8159f6e24704f5e0e3b3217cf79ecf5083dce531
  • github.com/apache/airflow/pull/40522
  • github.com/pypa/advisory-database/tree/main/vulns/apache-airflow/PYSEC-2024-190.yaml
  • lists.apache.org/thread/1xhj9dkp37d6pzn24ll2mf94wbqnb2y1
  • nvd.nist.gov/vuln/detail/CVE-2024-39877

Code Behaviors & Features

Detect and mitigate CVE-2024-39877 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions starting from 2.4.0 before 2.9.3

Fixed versions

  • 2.9.3

Solution

Upgrade to version 2.9.3 or above.

Impact 8.8 HIGH

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-277: Insecure Inherited Permissions
  • CWE-94: Improper Control of Generation of Code ('Code Injection')

Source file

pypi/apache-airflow/CVE-2024-39877.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:15:22 +0000.