{"slug": "cve-2026-120353-apache-airflow-standard-provider-apache-airflow-cncf-kubernetes", "title": "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…", "summary": "Apache Airflow disclosed CVE-2026-120353, a code-execution flaw in which the 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 values copied into env, op_args, op_kwargs or a returned prompt, command or SQL were evaluated as templates on the worker. An attacker able to trigger a Dag run, such as a user with trigger permission supplying run conf, or who controls text a Dag passes into one of these decorators, could run arbitrary commands on the worker and read connection passwords and Variables. Apache Airflow recommends upgrading 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; the flaw was found by Sonar and remediated by Jarek Potiuk, with Claude Security Scans credited as a tool.", "body_md": "[← All security advisories](https://airflow.apache.org/security/)\n\n# 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\n\n## Description\n\nThe 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.\n\n## Affected versions\n\n| Product | Package | Versions | \n|---|---|---|\n| Apache Airflow Standard provider | `apache-airflow-providers-standard` | from 0.3.0 before 1.22.0 | \n| Apache Airflow CNCF Kubernetes provider | `apache-airflow-providers-cncf-kubernetes` | from 10.5.0 before 11.0.0 | \n| Apache Airflow Common SQL provider | `apache-airflow-providers-common-sql` | from 1.32.0 before 3.0.0 | \n| Apache Airflow Common Ai provider | `apache-airflow-providers-common-ai` | from 0.1.0 before 1.2.0 | \n\n \n## Credits\n\n- Claude Security Scans (tool)\n- Sonar (finder)\n- Jarek Potiuk (remediation developer)\n\n## References", "url": "https://wpnews.pro/news/cve-2026-120353-apache-airflow-standard-provider-apache-airflow-cncf-kubernetes", "canonical_source": "https://airflow.apache.org/security/cve-2026-120353/", "published_at": "2026-11-26 18:30:32+00:00", "updated_at": "2026-11-26 19:15:28.172545+00:00", "lang": "en", "topics": ["ai-agents", "ai-tools", "ai-safety", "developer-tools"], "entities": ["Apache Airflow", "CVE-2026-120353", "apache-airflow-providers-standard", "apache-airflow-providers-cncf-kubernetes", "apache-airflow-providers-common-sql", "apache-airflow-providers-common-ai", "Sonar", "Jarek Potiuk"], "also_reported_by": [], "takeaway": "Upgrade apache-airflow-providers-standard to 1.22.0, cncf-kubernetes to 11.0.0, common-sql to 3.0.0 and common-ai to 1.2.0, since the TaskFlow decorators re-rendered Jinja after the task runner did, letting trigger-level users or attacker-controlled prompt text execute commands on the worker.", "recommendation": {"advice": "Upgrade the standard, cncf-kubernetes, common-sql and common-ai providers to 1.22.0, 11.0.0, 3.0.0 and 1.2.0 to stop double Jinja rendering of env, op_args, op_kwargs and prompts in TaskFlow decorators.", "playbook": "agent-security", "playbook_url": "https://wpnews.pro/playbooks/agent-security"}, "alternates": {"html": "https://wpnews.pro/news/cve-2026-120353-apache-airflow-standard-provider-apache-airflow-cncf-kubernetes", "markdown": "https://wpnews.pro/news/cve-2026-120353-apache-airflow-standard-provider-apache-airflow-cncf-kubernetes.md", "text": "https://wpnews.pro/news/cve-2026-120353-apache-airflow-standard-provider-apache-airflow-cncf-kubernetes.txt", "jsonld": "https://wpnews.pro/news/cve-2026-120353-apache-airflow-standard-provider-apache-airflow-cncf-kubernetes.jsonld"}}