Apache code execution via template injection in TaskFlow
- Exploited
- No known exploitation
- Fix
- Fixed in apache-airflow-providers-standard 1.22.0 · apache-airflow-providers-cncf-kubernetes 11.0.0 · apache-airflow-providers-common-sql 3.0.0 · apache-airflow-providers-common-ai 1.2.0
- Who is exposed
- Not reported
Summary
Several Apache Airflow providers, including the Standard, CNCF Kubernetes, Common SQL and Common AI providers, render Jinja templates a second time inside certain TaskFlow decorators, so values copied into env, op_args, op_kwargs or the returned prompt, command or SQL are evaluated as templates on the worker. An attacker who can trigger a Dag run or control text passed into these decorators, such as a ticket or downloaded document, could run arbitrary commands on the worker and read connection passwords and Variables.
Written by a model
Original description
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.
What to do
Upgrade to a fixed version: apache-airflow-providers-standard 1.22.0 · apache-airflow-providers-cncf-kubernetes 11.0.0 · apache-airflow-providers-common-sql 3.0.0 · apache-airflow-providers-common-ai 1.2.0.
Check your systems with an agent
Paste this into a coding or ops agent. It checks your systems read-only and reports a table per asset.
Check whether my systems are affected by CVE-2026-120353 (Apache Airflow Standard provider, Apache Airflow CNCF Kubernetes provider, Apache Airflow Common SQL provider, Apache Airflow Common Ai…), using the cve.now data below.
Rules: work read-only. Do not run exploit code, proof-of-concept scripts or scanners that send attack payloads, and do not change any configuration, package, image or deployment. Report findings only.
What cve.now has for CVE-2026-120353 (entry last updated 2026-11-27):
Affected:
- PyPI package apache-airflow-providers-standard: from 0.3.0, fixed in 1.22.0
- PyPI package apache-airflow-providers-cncf-kubernetes: from 10.5.0, fixed in 11.0.0
- PyPI package apache-airflow-providers-common-sql: from 1.32.0, fixed in 3.0.0
- PyPI package apache-airflow-providers-common-ai: from 0.1.0, fixed in 1.2.0
Fixed versions: 1.22.0, 11.0.0, 3.0.0, 1.2.0.
Setup: unknown whether the bug needs a non-default feature or setting. Check the advisory.
CISA KEV: CVE-2026-120353 is not listed as of cve.now's last read.
This KEV status is for CVE-2026-120353 only. If you also check another CVE, look up its own KEV status; never assume it from this one.
How to check:
- Packages (PyPI): find every lockfile in each project and run the stack.check operation of the cve.now MCP server (execute) on each one. Compare the resolved versions, not the ranges a manifest declares, with the affected versions above. Include transitive dependencies.
Verify against the linked advisories before concluding, and cite the date you read each one:
- https://lists.apache.org/thread/6szpozm1htzv0cyn11vc6m3pj8xz97nj
- https://github.com/apache/airflow/pull/76244
- http://www.openwall.com/lists/oss-security/2026/11/27/1
Do not conclude an asset is unaffected unless you checked it and the evidence covers both its version and the conditions above. If you could not check something, mark it unknown and say what is missing.
Report a table with one row per asset and these columns: Asset | Version or build | Status (affected, fixed, not applicable, unknown) | Compensating controls | Exposure (internet-facing, internal, none) | Evidence | Next action.
Entry: https://cve.now/CVE-2026-120353
For follow-up questions, use the cve.now MCP server at https://mcp.cve.now/mcp (no authentication), for example execute with name cve.get and arguments {"id": "CVE-2026-120353"}.Affected versions
- apache-airflow-providers-standardFrom 0.3.0 · fixed in 1.22.0
- apache-airflow-providers-cncf-kubernetesFrom 10.5.0 · fixed in 11.0.0Fixed in 11.0.0 (released Nov 9, 2026, 17 days before disclosure).The latest release, 11.0.0, is not affected.
- apache-airflow-providers-common-sqlFrom 1.32.0 · fixed in 3.0.0Fixed in 3.0.0 (released Nov 9, 2026, 17 days before disclosure).The latest release, 3.0.0, is not affected.
- apache-airflow-providers-common-aiFrom 0.1.0 · fixed in 1.2.0
cve.now Index
- Exploitation?/40Unknown. No CISA SSVC exploitation rating yet
- Exposure?/25Unknown. No advisory context yet
- Reach16/20apache-airflow-providers-cncf-kubernetes: 1.1M downloads a week
- Severity?/10Unknown. No CVSS score or vendor rating
- No patch0/5No signal
What would change the score
- Would score about 71 if added to CISA KEV
- Would score about 66 if CISA's SSVC rates exploitation active
- Would score about 38 if advisories confirm default setups are exposed
Impact
- Widely usedapache-airflow-providers-cncf-kubernetes has 1.1m weekly downloads. pypistats.org13 packages depend on apache-airflow-providers-cncf-kubernetes. deps.dev
Timeline
- CVE published
- First seen by cve.now1 day
- Record last updated
Evidence 5
| Kind | Source |
|---|---|
| Vendor advisory 1Establishes: Affected and fixed versions. | |
| Advisory | lists.apache.org · thread/6szpozm1htzv0cyn11vc6m3pj8xz97nj |
| CVE record 2Establishes: The identifier and description. | |
| Record | CVE List · CVE-2026-120353 |
| Record | NVD · CVE-2026-120353 |
| Write-ups 1Establishes: Technical detail and context. | |
| Link | openwall.com · lists/oss-security/2026/11/27/1 |
| Other links 1 | |
| Patch | GitHub · apache/airflow · Pull request #76244 |
Questions about CVE-2026-120353
Is CVE-2026-120353 being exploited?
It is not in CISA's Known Exploited Vulnerabilities catalog, and CISA's SSVC assessment does not mark exploitation as active. That does not mean it has not been attacked: vendors and researchers can report attacks before CISA lists them. No public exploit code is tracked.
Source: cve.now feed data
Which versions are affected by CVE-2026-120353?
apache-airflow-providers-standard (PyPI): from 0.3.0 before 1.22.0. apache-airflow-providers-cncf-kubernetes (PyPI): from 10.5.0 before 11.0.0. apache-airflow-providers-common-sql (PyPI): from 1.32.0 before 3.0.0. apache-airflow-providers-common-ai (PyPI): from 0.1.0 before 1.2.0.
Source: cve.now feed data
How do I fix CVE-2026-120353?
Upgrade to a fixed version: apache-airflow-providers-standard 1.22.0 · apache-airflow-providers-cncf-kubernetes 11.0.0 · apache-airflow-providers-common-sql 3.0.0 · apache-airflow-providers-common-ai 1.2.0.
Source: cve.now feed data
Related
- CVE-2025-30473Apache Airflow Common SQL Provider: Remote Code Execution via Sql Injection
- CVE-2026-27173Apache Airflow CNCF Kubernetes provider: JWT Token Exposure in KubernetesExecutor Command-Line Arguments
- CVE-2023-33234Apache Airflow CNCF Kubernetes Provider: KubernetesPodOperator RCE via connection configuration
- CVE-2023-51702Apache Airflow CNCF Kubernetes provider, Apache Airflow: Kubernetes configuration file saved without encryption in the Metadata and logged…
- CVE-2026-78114Apache JSPWiki: Session fixation in the login flow
- CVE-2026-78102Apache JSPWiki: Unsafe reflection causes Denial of Service
No corrections so far. Something wrong on this page? Report an error.