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 TaskFlow decorator arguments
The Apache Airflow TaskFlow decorators @task.bash, @task.sql, @task.analytics, @task.kubernetescmd and the common.ai decorators (@task.llm, @task.agent, @task.llmsql, @task.llmbranch, @task.llmfileanalysis, @task.llmschemacompare) rendered Jinja templates a second time after the task runner had already rendered them, so any value copied into env, opargs, opkwargs 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.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
apache-airflow-providers-standardto a version that resolves this vulnerability.Fixed in 1.22.0 - Upgrade
Upgrade
apache-airflow-providers-cncf-kubernetesto a version that resolves this vulnerability.Fixed in 11.0.0 - Upgrade
Upgrade
apache-airflow-providers-common-sqlto a version that resolves this vulnerability.Fixed in 3.0.0 - Upgrade
Upgrade
apache-airflow-providers-common-aito a version that resolves this vulnerability.Fixed in 1.2.0
Event History
Frequently Asked Questions
Who is exposed to exploitation?
Deployments are exposed when a DAG uses an affected TaskFlow decorator and passes attacker-controlled input through env, parameters, or a prompt. This includes users who can trigger DAG runs with supplied run configuration and external content sources such as tickets or downloaded documents that flow into decorator arguments or prompts.
What access does an attacker need?
An attacker does not need direct worker access. They need either permission to trigger a DAG run with controlled run configuration, or control over text that the DAG passes into an affected decorator's arguments or prompt.
What could an attacker do after successful exploitation?
They could run arbitrary commands on the Airflow worker. They could also read connection passwords and Airflow Variables available to that worker.
Which decorators and provider packages need review or upgrade?
Review DAGs using @task.bash, @task.sql, @task.analytics, @task.kubernetes_cmd, or the common.ai decorators @task.llm, @task.agent, @task.llm_sql, @task.llm_branch, @task.llm_file_analysis, and @task.llm_schema_compare. Upgrade the applicable providers to standard 1.22.0, cncf-kubernetes 11.0.0, common-sql 3.0.0, and common-ai 1.2.0, or later.