News · Apache Software Foundation (Apache Airflow) · 2 min read
Event date: · Published:
Apache Airflow patches template-injection flaw in AI agent task decorators
The Apache Software Foundation disclosed CVE-2026-120353 on November 26, 2026, a template-injection bug in Airflow's new common.ai task decorators that could let attackers run commands on workers.
The Apache Software Foundation disclosed CVE-2026-120353 on November 26, 2026, a template-injection vulnerability in Apache Airflow's TaskFlow decorators that lets attacker-controlled values get re-rendered as Jinja templates on the worker, reaching the project's new common.ai provider decorators used to build LLM and agent tasks inside Airflow pipelines. Details are published in the GitHub Security Advisory for Apache Airflow.
What the vulnerability affects
- The flaw hits task decorators including
@task.bash,@task.sql,@task.kubernetes_cmd,@task.llm,@task.agent,@task.llm_sql,@task.llm_branch,@task.llm_file_analysisand@task.llm_schema_compare. - The root cause is that the task runner re-renders Jinja templates a second time after the initial rendering pass.
- Any attacker-controlled value placed into
env,op_args,op_kwargs, or a returned prompt, command or SQL string gets evaluated as a template on the worker. - The impact includes arbitrary command execution on the worker and exposure of connection passwords and Airflow Variables, classified under CWE-94 and CWE-1336.
Why it matters for AI builders
Airflow's common.ai provider is a new entry point for wiring LLM agents into production data pipelines, so a worker-side code-execution bug there affects anyone who just adopted agentic task decorators rather than a niche audience. This is also the first disclosed RCE-class flaw in the common.ai provider's LLM and agent orchestration decorators, since the provider itself is new.
Fix and affected versions
apache-airflow-providers-standardneeds version 1.22.0 or later.apache-airflow-providers-cncf-kubernetesneeds version 11.0.0 or later.apache-airflow-providers-common-sqlneeds version 3.0.0 or later.apache-airflow-providers-common-aineeds version 1.2.0 or later.
The vulnerability is also tracked as CVE-2026-120353 in the CVE Program's record.
Sources
- GHSA-rghf-2qx4-h6p2: Apache Airflow TaskFlow decorator template injection (GitHub Security Advisories, November 26, 2026, official)
- CVE-2026-120353 (CVE Program, November 26, 2026, official)
Written with AI assistance, strictly from the sources listed above. Before it went live, automated checks verified its dates, sources and every language edition.