Urgent
Apache Airflow re-renders task templates, allowing code execution on workers
CVE-2026-120353
The Airflow task scheduler can be made to run hidden commands!
- CVE
- CVE-2026-120353 (opens in a new tab)
- Score
- CVSS 9.8
- First seen
Mitigation
Update each product you use to its fixed version listed below. Find your product's fixed version in the list below.
Fixed version by product
- Apache Airflow Standard provider
- 1.22.0 or later
- Apache Airflow CNCF Kubernetes provider
- 11.0.0 or later
- Apache Airflow Common SQL provider
- 3.0.0 or later
- Apache Airflow Common Ai provider
- 1.2.0 or later
Summary
Several Apache Airflow TaskFlow decorators render Jinja templates a second time, so user-supplied input runs as a template on the worker. An attacker can run commands and read connection passwords and Variables, affecting users of the Airflow provider packages that include these decorators.
Affected when
- A DAG uses an affected @task decorator and passes input through env, op_args, op_kwargs or prompt
- An attacker can trigger a DAG run or control text passed into a DAG
Incidents by product: Apache Airflow CNCF Kubernetes provider · Apache Airflow Common Ai provider · Apache Airflow Common SQL provider · Apache Airflow Standard provider
Read the advisory · lists.apache.org (opens in a new tab)
- Advisory: lists.apache.org (opens in a new tab)
- CVE record: cve.org (opens in a new tab)
- Discussion: CVE-2026-120353: Apache Airflow Standard provider, Apache Airflow CNCF Kubernetes provider, Apache Airflow Common SQL provider, Apache Airflow Common Ai provider: Code execution on the worker via Jinja in Dag run conf or task arguments passed to @task.bash and similar TaskFlow decorators (opens in a new tab)