Skip to content
Vulnerability RCE CVE-2026-120353

CVE-2026-120353: Apache Airflow TaskFlow decorators allow code execution on the worker

Apache Airflow TaskFlow decorators rendered Jinja templates twice, letting users who can trigger a Dag run execute commands on the worker.

Reported by oss-security

First reported Summary updated

Read the coverage
Public PoC
Not known
Exploited
Not known
Severity
Not rated

What happened

The Apache Airflow TaskFlow decorators @task.bash, @task.sql, @task.analytics, @task.kubernetes_cmd and the common.ai decorators rendered Jinja templates a second time after the task runner had already rendered them.1

As a result, any value copied into env, op_args, op_kwargs or the returned prompt, command or SQL was evaluated as a template on the worker.1

An attacker who can only trigger a Dag run, such as a user with trigger permission supplying run conf, could run arbitrary commands on the worker and read connection passwords and Variables.1

The same was possible for anyone who controls text that a Dag passes into one of these decorators as an argument or prompt, such as a ticket or a downloaded document.1

Who is affected

  • Apache Airflow Standard provider, 0.3.0 before 1.22.01
  • Apache Airflow CNCF Kubernetes provider, 10.5.0 before 11.0.01
  • Apache Airflow Common SQL provider, 1.32.0 before 3.0.01
  • Apache Airflow Common Ai provider, 0.1.0 before 1.2.01

Is there a public exploit?

Not known None of the sources mentions public exploit code yet.

Exploited in the wild?

Not known None of the sources reports attacks using it so far.

What to do

  • Upgrade apache-airflow-providers-standard to 1.22.0 or later.1
  • Upgrade apache-airflow-providers-cncf-kubernetes to 11.0.0 or later.1
  • Upgrade apache-airflow-providers-common-sql to 3.0.0 or later.1
  • Upgrade apache-airflow-providers-common-ai to 1.2.0 or later.1

For bug hunters

This is a template injection flaw: user-controlled values are rendered a second time as Jinja templates on the worker. In bug bounty programmes, look for places where input is passed into a templating engine after an initial render, such as workflow definitions, notification templates, report builders or any feature that lets users supply parameters to scheduled jobs. Test whether values you control in run configuration, task arguments or prompts are evaluated as templates, and whether that evaluation can reach command execution or secret access.

What to test

  • Submit a Dag run conf value containing a Jinja expression and check whether it is evaluated on the worker.
  • Pass a template expression through a task argument or prompt and observe whether it renders a second time.
  • Check whether rendered output can read connection passwords or Variables from the worker environment.
  • Look for features that accept user text into scheduled jobs, reports or notifications and test for template evaluation.

The RCE lesson Every RCE report

Written by bugbounty.wiki with AI from its source. Every statement above comes with a quote we checked against the source it cites (the numbers link to it); anything we could not check was left out. It can still be wrong, so read the coverage before relying on a detail.

Coverage

The article this story is based on. Each headline opens the outlet's own article.

  1. 1

    oss-security

    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
    “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…”

Reports about RCE

View all

Disclosed reports of the same bug class, clearest first.

More news

View all

Other stories from the last month, RCE first.