Skip to main content

Apache Airflow CVE-2026-120353

| EUVDEUVD-2026-136850 HIGH
Improper Neutralization of Special Elements Used in a Template Engine (CWE-1336)
2026-11-26 apache
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Obtain Dag trigger permission or seed untrusted text
  2. Delivery
    Inject Jinja payload via run conf, prompt or argument
  3. Exploit
    Decorator re-renders template on the worker
  4. Execution
    Execute arbitrary commands as the worker process
  5. Impact
    Read 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.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.4% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

Apache Airflow Common Ai provider 0.1.0 <1.2.0
Apache Airflow Standard provider 0.3.0 <1.22.0
Apache Airflow Common SQL Provider 1.32.0 <3.0.0
Apache Airflow CNCF Kubernetes provider 10.5.0 <11.0.0

Affected Packages

euvd apache_airflow_cncf_kubernetes_provider fix: 11.0.0
euvd apache_airflow_common_ai_provider fix: 1.2.0
euvd apache_airflow_common_sql_provider fix: 3.0.0
euvd apache_airflow_standard_provider fix: 1.22.0

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

Vendor (apache) PRIMARY HIGH
vuln.today AI 9.9 CRITICAL

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.

3.1 AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
4.0 AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:H/SI:N/SA:N

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.

Executive ViewAI

Why It Matters

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.

Business Impact: High
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.4%
Top 76% exploitable
Prevalence
High
Apache Airflow is widely deployed enterprise workflow orchestration software
Social Media
1
Sightings
Data Quality
2 sources
Confidence: Low

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.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.4%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

Attack Technique

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

CVE-2025-1974 CRITICAL POC
9.8 Mar 25

A critical vulnerability in Kubernetes ingress-nginx controller allows unauthenticated attackers with pod network access

CVE-2026-45321 CRITICAL POC
9.6 May 12

Credential-harvesting malware compromised 84 versions of 42 TanStack npm packages on 2026-05-11 via chained GitHub Actio

CVE-2025-1098 HIGH POC
8.8 Mar 25

Kubernetes ingress-nginx contains a configuration injection vulnerability via the mirror-target and mirror-host Ingress

CVE-2025-24514 HIGH POC
8.8 Mar 25

A security issue was discovered in ingress-nginx https://github.com/kubernetes/ingress-nginx where the `auth-url` Ingres

CVE-2025-1097 HIGH POC
8.8 Mar 25

A security issue was discovered in ingress-nginx https://github.com/kubernetes/ingress-nginx where the `auth-tls-match-c

CVE-2020-8554 MEDIUM POC
6.3 Jan 21

Kubernetes API server in all versions allow an attacker who is able to create a ClusterIP service and set the spec.exter

CVE-2023-3676 HIGH POC
8.8 Oct 31

A security issue was discovered in Kubernetes where a user that can create pods on Windows nodes may be able to escalate

CVE-2025-55190 CRITICAL POC
9.9 Sep 04

Argo CD is a declarative, GitOps continuous delivery tool for Kubernetes. Rated critical severity (CVSS 9.9), this vulne

CVE-2026-34976 CRITICAL POC
10.0 Apr 02

Unauthenticated remote attackers can trigger complete database overwrites, server-side file reads, and SSRF attacks agai

CVE-2018-18843 CRITICAL POC
10.0 Dec 04

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

CVE-2026-54680 CRITICAL POC
9.9 Jul 29

Fluentd configuration injection in the kube-logging Logging operator before 6.6.0 allows a namespace-scoped user who can

CVE-2025-64709 CRITICAL POC
9.9 Nov 13

Authenticated Typebot users can abuse the webhook block (HTTP Request component) in versions prior to 3.13.1 to issue ar

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy