---
id: CVE-2025-54941
aliases:
  - GHSA-v3c9-j6h9-66v4
  - BIT-airflow-2025-54941
  - PYSEC-2026-1135
title: >-
  Apache Airflow has a command injection vulnerability in
  "example_dag_decorator"
summary: >-
  Apache Airflow has a command injection vulnerability in
  "example_dag_decorator"
severity: medium
vendor: apache-airflow
product: apache-airflow
ecosystem: pip
affected:
  - 'apache-airflow >= 3.0.0, < 3.0.5'
patched:
  - apache-airflow 3.0.5
published: '2025-10-30'
updated: '2026-07-07'
source: OSV
sourceUrl: 'https://osv.dev/vulnerability/GHSA-v3c9-j6h9-66v4'
references:
  - url: 'https://nvd.nist.gov/vuln/detail/CVE-2025-54941'
  - url: 'https://github.com/apache/airflow'
  - url: 'https://lists.apache.org/thread/c6q6nofc6xl5bms039ks9b34v0v36df1'
  - url: 'http://www.openwall.com/lists/oss-security/2025/10/29/6'
tags:
  - osv
  - pip
epss: 0.00459
epssPercentile: 0.39091
ingestedAt: '2026-07-08T18:25:53.059Z'
---

## Overview

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.

## Affected packages

- `apache-airflow >= 3.0.0, < 3.0.5`

## Remediation

Upgrade to a patched release:

- `apache-airflow 3.0.5`
