Command injection in Apache Airflow - CVE-2026-42252

 

Command injection in Apache Airflow - CVE-2026-42252

Published: June 4, 2026


Vulnerability identifier: #VU133380
CSH Severity: Medium
CVSS v4: 8.7 [CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N]
CVE-ID: CVE-2026-42252
CWE-ID: CWE-77
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote user to execute arbitrary code.

The vulnerability exists due to command injection in BashOperator bash_command templating when processing user-supplied dag_run.conf values from the trigger API. A remote user can supply a specially crafted conf value to execute arbitrary code.

Exploitation requires a deployment whose DAG code copied the documented pattern and a user with Dag.can_trigger permission on the affected DAG.


Affected software

Apache Airflow

How to mitigate CVE-2026-42252

Install security update from vendor's website.

Apache Airflow - update to 3.2.2

External References

Related Security Bulletins