Airflow TaskFlow Jinja inputs can run code on workers (CVE-2026-120353)
Four provider packages are affected; fixes are Standard 1.22.0, Kubernetes 11.0.0, Common SQL 3.0.0 and Common AI 1.2.0.
Double Jinja rendering RCE in Airflow TaskFlow decorators
Several Apache Airflow TaskFlow decorators render Jinja templates again after the task runner has already rendered them. A user who can trigger a Dag run (for example with trigger permission and run conf), or who controls text a Dag passes into env, parameters, a prompt, command, or SQL, can run arbitrary commands on the worker and read connection passwords and Variables. Only deployments that use an affected decorator this way are exposed.
What to do: Upgrade apache-airflow-providers-standard to 1.22.0, apache-airflow-providers-cncf-kubernetes to 11.0.0, apache-airflow-providers-common-sql to 3.0.0, and apache-airflow-providers-common-ai to 1.2.0 or later.
| Product | Affected | Fixed in |
|---|---|---|
| apache-airflow-providers-standard | — | 1.22.0 |
| apache-airflow-providers-cncf-kubernetes | — | 11.0.0 |
| apache-airflow-providers-common-sql | — | 3.0.0 |
| apache-airflow-providers-common-ai | — | 1.2.0 |
Order-of-magnitude estimate by the model from install counts, market share and public scan data it knows; verify before quoting.
The Apache Airflow TaskFlow decorators @task.bash, @task.sql, @task.analytics, @task.kubernetes_cmd and the common.ai decorators (@task.llm, @task.agent, @task.llm_sql, @task.llm_branch, @task.llm_file_analysis, @task.llm_schema_compare) rendered Jinja templates a second time after the task runner had already rendered them, so any value copied into env, op_args, op_kwargs or the returned prompt, command or SQL was evaluated as a template on the worker. An attacker who can only trigger a Dag run (for example a user with trigger permission supplying run conf), or who controls text that a Dag passes into one of these decorators as an argument or prompt (for example a ticket or a downloaded document), could run arbitrary commands on the worker and read connection passwords and Variables, in any deployment that uses an affected decorator in a Dag that passes such input through env, parameters or prompt. Users are recommended to upgrade apache-airflow-providers-standard to 1.22.0, apache-airflow-providers-cncf-kubernetes to 11.0.0, apache-airflow-providers-common-sql to 3.0.0 and apache-airflow-providers-common-ai to 1.2.0 or later.
Four provider packages are affected; fixes are Standard 1.22.0, Kubernetes 11.0.0, Common SQL 3.0.0 and Common AI 1.2.0.
Today 2.6K readers · 5.3K views · 346 reads · all time 290K views