Code execution via Jinja in Apache Airflow TaskFlow decorators
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
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| Apache | Apache Airflow Standard provider | 0.3.0 to before 1.22.0 | 1.22.0 | Patch available | CNA |
| Apache | Apache Airflow CNCF Kubernetes provider | 10.5.0 to before 11.0.0 | 11.0.0 | Patch available | CNA |
| Apache | Apache Airflow Common SQL provider | 1.32.0 to before 3.0.0 | 3.0.0 | Patch available | CNA |
| Apache | Apache Airflow Common Ai provider | 0.1.0 to before 1.2.0 | 1.2.0 | Patch available | CNA |
- 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
- 2026-11-26 Threatist record created from CVE-2026-120353
- 2026-11-27 Alias added: GHSA-rghf-2qx4-h6p2
References
More Apache vulnerabilities
- 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
Sources
- CVE-2026-120353 · CVE Program
- CVE-2026-120353 · NVD
- FIRST EPSS
- GHSA-rghf-2qx4-h6p2 · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences