Read the docs

Code execution via Jinja in Apache Airflow TaskFlow decorators

Priority LOW 23CWE-1336Published · Updated

Key facts

Attack vector
—
Privileges required
—
User interaction
—
Attack complexity
—
Impact type
Code execution
Confidentiality · integrity · availability
—
Fix status
Fixed

No CVSS vector from any source. Fix status from CNA. Impact type from CWE-1336.

Summary

Apache Airflow providers are affected: Standard from 0.3.0 before 1.22.0, CNCF Kubernetes from 10.5.0 before 11.0.0, Common SQL from 1.32.0 before 3.0.0 and Common AI from 0.1.0 before 1.2.0. TaskFlow decorators render Jinja templates twice, so values in env, op_args, op_kwargs or prompts are evaluated on the worker (CWE-1336). An attacker who can trigger a Dag run or control such input can run commands on the worker and read connection passwords and Variables.

Written with Claude Haiku 5.5 from the sources below · 2026-11-27

Description from the CNA

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.

Why it matters now

EPSS 0.00383 24th percentileScored 2026-11-30
Fix Fixed Apache Airflow Standard provider (Apache Software Foundation): 1.22.0Apache Airflow CNCF Kubernetes provider (Apache Software Foundation): 11.0.0+2 more products

SSVC decision points

Not available: CISA has not published SSVC decision points for this record.

Affected products

VendorProductAffected versionsFixed inStatusSource
ApacheApache Airflow Standard provider0.3.0 to before 1.22.01.22.0Patch availableCNA
ApacheApache Airflow CNCF Kubernetes provider10.5.0 to before 11.0.011.0.0Patch availableCNA
ApacheApache Airflow Common SQL provider1.32.0 to before 3.0.03.0.0Patch availableCNA
ApacheApache Airflow Common Ai provider0.1.0 to before 1.2.01.2.0Patch availableCNA
  • Apache Airflow Standard provider VendorApache Affected 0.3.0 to before 1.22.0 Fixed in 1.22.0 Patch available CNA
  • Apache Airflow CNCF Kubernetes provider VendorApache Affected 10.5.0 to before 11.0.0 Fixed in 11.0.0 Patch available CNA
  • Apache Airflow Common SQL provider VendorApache Affected 1.32.0 to before 3.0.0 Fixed in 3.0.0 Patch available CNA
  • Apache Airflow Common Ai provider VendorApache Affected 0.1.0 to before 1.2.0 Fixed in 1.2.0 Patch available CNA

Remediation

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.

Written with Claude Haiku 5.5 from the sources below · 2026-11-27

  • Fix · CNA Apache Airflow Standard provider (Apache Software Foundation) Fixed in 1.22.0
  • Fix · CNA Apache Airflow CNCF Kubernetes provider (Apache Software Foundation) Fixed in 11.0.0
  • Fix · CNA Apache Airflow Common SQL provider (Apache Software Foundation) Fixed in 3.0.0
  • Fix · CNA Apache Airflow Common Ai provider (Apache Software Foundation) Fixed in 1.2.0

Timeline

  1. 2026-11-26 Threatist record created from CVE-2026-120353
  2. 2026-11-27 Alias added: GHSA-rghf-2qx4-h6p2

References

  • TI-2026-92478 Unauthenticated deserialization in Apache Roller XML-RPC endpoint KEVCVSS 3.1CRITICAL 9.8
  • TI-2026-85977 Remote class instantiation in Apache Axis via SOAP faults KEVCVSS 3.1CRITICAL 9.8
  • TI-2025-18529 Path equivalence in Apache Tomcat allows code execution via PUT KEVCVSS 3.1CRITICAL 10.0
  • TI-2024-30292 Forced browsing in Apache OFBiz bypasses controller-view authorization KEVCVSS 3.1CRITICAL 9.8
  • TI-2024-26062 Incorrect authorization in Apache OFBiz exposes screen rendering code KEVCVSS 3.1CRITICAL 9.8
  • TI-2024-21190 Path traversal in Apache OFBiz leads to remote code execution KEVCVSS 3.1CRITICAL 9.8
See all 4297 →

Sources