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

CVE-2025-54941: Apache Airflow has a command injection vulnerability in "example_dag_decorator"

October 30, 2025

An example dag example_dag_decorator had non-validated parameter that allowed the UI user to redirect the example to a malicious server and execute code on worker. This however required that the example dags are enabled in production (not default) or the example dag code copied to build your own similar dag. If you used the example_dag_decorator please review it and apply the changes implemented in Airflow 3.0.5 accordingly.

References

  • github.com/advisories/GHSA-v3c9-j6h9-66v4
  • github.com/apache/airflow
  • lists.apache.org/thread/c6q6nofc6xl5bms039ks9b34v0v36df1
  • nvd.nist.gov/vuln/detail/CVE-2025-54941

Code Behaviors & Features

Detect and mitigate CVE-2025-54941 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 3.0.0 before 3.0.5

Fixed versions

  • 3.0.5

Solution

Upgrade to version 3.0.5 or above.

Weakness

  • CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')

Source file

pypi/apache-airflow/CVE-2025-54941.yml

Spotted a mistake? Edit the file on GitLab.

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

Page generated Tue, 04 Nov 2025 12:19:00 +0000.