Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessObtain Dag trigger permission or seed untrusted text
-
DeliveryInject Jinja payload via run conf, prompt or argument
-
ExploitDecorator re-renders template on the worker
-
ExecutionExecute arbitrary commands as the worker process
-
ImpactRead connection passwords and Airflow Variables
Vulnerability Assessment
| Weakness |
CWE
ASVS 5.0
V1 - Encoding and Sanitization Template injection prevention
|
| Exploitation Conditions | Exploitation requires a deployment that uses one of the affected decorators - @task.bash, @task.sql, @task.analytics, @task.kubernetes_cmd, or the common.ai decorators @task.llm, @task.agent, @task.llm_sql, @task.llm_branch, @task.llm_file_analysis, @task.llm_schema_compare - in a Dag that passes attacker-influenced input through env, op_args, op_kwargs, parameters, or the returned prompt/command/SQL. The attacker must either hold Airflow permission to trigger that Dag and supply run conf, or control text the Dag ingests (such as a ticket or a downloaded document) that is routed into one of those fields. The principal limiting factor is that this is not a default-configuration flaw: a Dag author must have wired external data into an affected decorator field, so installations that do not use these decorators, or do not feed untrusted input into env/parameters/prompt, are not exposed. There is no required user interaction by a victim and no non-default server setting; the gating condition is the Dag design and the attacker's ability to influence the templated input. |
| Impact | This is a genuinely high-priority server-side template injection flaw (CWE-1336) leading to arbitrary command execution on Airflow workers and disclosure of all connection passwords and Variables. The key weakness is that the affected TaskFlow decorators render Jinja templates a second time, after the task runner already rendered them, so any attacker-influenced value reaching env, op_args, op_kwargs, or a returned prompt/command/SQL is evaluated as a template on the worker. No CVSS vector, EPSS score, or KEV entry is provided in the input, so exploitation probability and active-exploitation status cannot be quantified from the data; the vuln.today Decision label is 'this_week' and a vendor patch exists. There is no public exploit reference in the input, so this is no public exploit identified at time of analysis - not active exploitation. The real-world risk is strongly conditional: it only applies to deployments that actually use one of the affected decorators in a Dag that passes externally-controlled input (run conf, a processed document/ticket, or an upstream value) into env/parameters/prompt. Where that pattern exists the impact is severe (worker RCE plus secret theft) and the barrier is low (a user with only trigger permission, or merely untrusted text flowing through the Dag); where it does not, the exposure is nil. Because no CVSS vector is supplied, authentication requirements cannot be confirmed from standard metrics - the description indicates a low-privilege trigger user or even untrusted data as the entry point, but this should not be stated as a confirmed PR level. |
| Exploit ScenarioDerived | A user who holds only Dag-trigger permission triggers an affected Dag and supplies a run configuration value containing a Jinja expression (for example referencing os.popen or Airflow connection internals); because the decorator re-renders that value on the worker, the expression executes as code. Alternatively, an attacker plants a crafted string in a document or ticket that an affected Dag feeds into a decorator's prompt or command, achieving the same code execution without any Airflow account. No public proof-of-concept is referenced in the input. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 26, 2026
Server-side template injection in Apache Airflow's TaskFlow decorators (@task.bash, @task.sql, @task.analytics, @task.kubernetes_cmd, and the common.ai @task.llm family) allows an authenticated low-privileged user who can trigger a Dag, or anyone who controls text a Dag ingests such as a ticket or downloaded document, to execute arbitrary commands on the worker and read every connection password and Variable available to it. The flaw exists because the affected decorators rendered their Jinja template fields a second time inside the worker after the task runner had already rendered them, so any value copied into env, op_args, op_kwargs or the returned prompt/command/SQL was evaluated again as a template. Exposure is not default-configuration: a Dag author must have wired attacker-influenced input into one of those fields of an affected decorator; there is no public exploit or CISA KEV entry at time of analysis, and the assessed severity is high (CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H).
RemediationAI
Vendor-released patch: 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, per the Apache advisory (https://lists.apache.org/thread/6szpozm1htzv0cyn11vc6m3pj8xz97nj) and upstream PR https://github.com/apache/airflow/pull/76244. After the fix, fields such as env, op_args, op_kwargs and system_prompt are rendered once before execute() and only the callable's returned command or prompt is rendered on the worker - the returned value remains a Jinja template, so Dag authors must stop formatting untrusted text (tickets, downloaded documents, run conf) directly into the returned string with f-strings and instead reference call arguments by name in the template (for example {{ text }}), as documented in the updated @task.llm operator guide. Where upgrading is not immediately possible, the compensating control is architectural rather than a configuration switch: audit Dags using the affected decorators and remove any path that passes externally controlled data into env, op_args, op_kwargs, parameters or the returned prompt/command/SQL, or restrict who can trigger those Dags (Airflow permission to trigger with run conf is one of the two documented attack paths). Neither workaround is complete - untrusted text routed into a decorated field stays exploitable until the provider packages are upgraded - and note that the trade-off for restricting trigger permission is loss of self-service execution for those Dags. No public exploit code was identified at time of analysis, but worker compromise exposes all connection passwords and Variables reachable from the worker.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 4 packages in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
Apache Airflow renders Dag and task fields as Jinja templates on the scheduler/serializer side before handing tasks to the worker; CWE-1336 (Improper Neutralization of Special Elements Used in a Template Engine) applies because the affected TaskFlow decorators re-invoked rendering of the same fields inside execute() on the worker. Per the upstream fix (apache/airflow PR #76244), the operators previously called render_template_fields(context) inside execute() and then also rendered the callable's returned value, so content that had already been substituted once - env, op_args, op_kwargs, parameters, or the returned prompt/command/SQL - was passed through Jinja a second time. The fix removes the redundant render_template_fields() call so all fields are rendered exactly once before execute(), and only the value returned by the decorated function (the generated command for @task.kubernetes_cmd, the prompt for the common.ai decorators) is rendered inside execute(). Notably, the fix does not remove rendering of the returned prompt/command entirely: the returned string is still a Jinja template, and the merged code documents that every argument the task is called with is now available by name in that template, so authors should reference untrusted text via {{ arg }} rather than f-string interpolation. Jinja evaluation on the worker gives template access to Airflow's context objects, which is why the impact extends to arbitrary command execution on the worker and disclosure of connection credentials and Variables; the scope change (S:C) reflects that the worker process and its secrets are compromised beyond the vulnerable component itself. Four separate provider packages carry the flaw, matching the supplied CPEs: apache_airflow_standard_provider, apache_airflow_cncf_kubernetes_provider, apache_airflow_common_sql_provider and apache_airflow_common_ai_provider.
Know when Kubernetes gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
A low-privilege trigger user can inject over the network with no interaction (AV:N/AC:L/PR:L/UI:N); worker RCE plus theft of other systems' credentials crosses a security boundary (S:C) with full C/I/A impact.
Primary rating from Vendor (apache).
DescriptionCVE.org
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.
Articles & Coverage 1
Executive ViewAI
A high-severity vulnerability in Apache Airflow's TaskFlow decorators could allow a low-privileged authenticated user or an external party controlling data ingested by a Dag to execute arbitrary commands on worker nodes. This puts sensitive credentials and variables at risk and could lead to broader compromise of the data pipeline environment. Leadership should prioritize remediation given the potential for significant confidentiality and integrity impact.
Apply vendor patch.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
Attack Technique
Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.
More in Kubernetes
View allA critical vulnerability in Kubernetes ingress-nginx controller allows unauthenticated attackers with pod network access
Credential-harvesting malware compromised 84 versions of 42 TanStack npm packages on 2026-05-11 via chained GitHub Actio
Kubernetes ingress-nginx contains a configuration injection vulnerability via the mirror-target and mirror-host Ingress
A security issue was discovered in ingress-nginx https://github.com/kubernetes/ingress-nginx where the `auth-url` Ingres
A security issue was discovered in ingress-nginx https://github.com/kubernetes/ingress-nginx where the `auth-tls-match-c
Kubernetes API server in all versions allow an attacker who is able to create a ClusterIP service and set the spec.exter
A security issue was discovered in Kubernetes where a user that can create pods on Windows nodes may be able to escalate
Argo CD is a declarative, GitOps continuous delivery tool for Kubernetes. Rated critical severity (CVSS 9.9), this vulne
Unauthenticated remote attackers can trigger complete database overwrites, server-side file reads, and SSRF attacks agai
The Kubernetes integration in GitLab Enterprise Edition 11.x before 11.2.8, 11.3.x before 11.3.9, and 11.4.x before 11.4
Fluentd configuration injection in the kube-logging Logging operator before 6.6.0 allows a namespace-scoped user who can
Authenticated Typebot users can abuse the webhook block (HTTP Request component) in versions prior to 3.13.1 to issue ar
EUVD-2026-136850
CVE.org
EPSS
GitHub
VulDB
Exploit-DB