External risk intelligence

Apache Airflow TaskFlow Decorators Command Injection Vulnerability

CVE advisorySeverity: CRITICAL (CVSS 9.8)

CVE-2026-120353

The vulnerability affects Apache Airflow TaskFlow decorators. While Airflow instances are network-reachable, they are typically deployed within private infrastructure to manage internal data pipelines. Public exposure is a configuration choice, and access usually requires authenticated triggers rather than being a default public state.

Halo Surface Signal: 3 out of 5 — possibly public-facing.

External exposure likelihood

Horizon Alert

Summary of the vulnerability and why it matters

A security vulnerability has been identified in Apache Airflow's TaskFlow decorators that could allow an attacker to execute arbitrary commands on a worker. This could potentially lead to the compromise of sensitive information, such as connection passwords and variables, if a compromised user or controlled data is passed into a vulnerable task.

  • A flaw allows unauthorized command execution on workers.
  • It affects data pipelines and sensitive credentials.
  • Confirm relevance and exposure within your Airflow deployments.

Attack Path

How an attacker could exploit the issue

An attacker can compromise an Apache Airflow worker by manipulating data processed by specific TaskFlow decorators. If an attacker can either trigger a DAG run or control input data that is passed into these decorators, they can cause sensitive information like connection passwords and Variables to be exposed, and potentially execute arbitrary commands on the worker. This is possible because the affected decorators re-render Jinja templates, evaluating any input data as code.

  • Attacker controls or influences input data.
  • Vulnerable Airflow decorators re-render templates.
  • Arbitrary commands execute on worker.

Live Threat

Current exploitation, exposure, and threat context

In deployments using specific Apache Airflow decorators, an attacker could potentially execute arbitrary commands on a worker. This could occur if the attacker can trigger a DAG run or control data passed into these decorators, leading to the exposure of sensitive information like connection passwords and Variables.

  • Worker command execution.
  • Malicious input via task arguments.
  • Sensitive data exposure.

Operational Fix

Recommended remediation, mitigation, and detection steps

The primary responsibility for addressing this vulnerability typically lies with the Platform Engineering or Data Engineering teams who manage and deploy Apache Airflow. The first practical step involves identifying all Airflow instances, determining if they are exposed to the internet or handle sensitive data, and confirming which teams or individuals own these deployments to initiate a risk-based remediation plan.

  • Platform/Data Engineering owns the issue.
  • Verify Airflow instances and exposure.
  • Plan and coordinate remediation actions.

Supplementary metadata

Validate whether this threat affects your internet-facing exposure.

Halo Threat Intelligence helps prioritize remediation with Halo Surface Signal and H/A/L/O context. Start exposure validation with a free external attack surface trial.

Frequently asked questions

What is Apache Airflow and why does it use decorators?

Apache Airflow is a platform used to programmatically author, schedule, and monitor complex data pipelines. TaskFlow decorators, such as @task.bash or @task.llm, simplify this process by allowing developers to define tasks with specific functionality directly in their Python code. These decorators handle the execution logic for tasks ranging from running shell commands and SQL queries to processing data with AI models, acting as the bridge between the pipeline definition and the actual work performed by...

How does CVE-2026-120353 create a security risk?

This vulnerability is classified as CWE-1336: Improper Neutralization of Special Elements Used in a Template Engine. The issue arises because affected decorators perform a redundant second rendering of Jinja templates on the worker. By re-evaluating inputs—such as command arguments, prompts, or environment variables—as templates, the system inadvertently treats user-supplied data as executable code. This allows for arbitrary command execution if an attacker can influence that input.

Do I need to be a system administrator to trigger this bug?

No. The flaw can be triggered by anyone capable of supplying input that the DAG eventually processes through a vulnerable decorator. This includes users who have permission to trigger a DAG run with custom configuration parameters, or any process that introduces untrusted data—like external document contents or ticket text—into a pipeline argument. If the input is not processed by a vulnerable decorator, or if the decorator is not used in the pipeline, the specific re-rendering path does not occur.

Is my deployment at risk according to Halo Surface Signal?

Halo Surface Signal indicates that while the vulnerability is critical, the actual risk depends on your specific infrastructure. Airflow instances are often kept within private networks to manage internal data pipelines, making public internet exposure a configuration choice rather than a default. If your instance is only reachable within a secure internal network, the potential for unauthorized external access is significantly lower than for an instance exposed directly to the internet.

What is the first step for teams managing Airflow?

The immediate priority is to identify all Airflow deployments in your environment and determine which ones utilize the affected TaskFlow or common.ai decorators. Work with your platform or data engineering teams to assess whether these pipelines handle untrusted input or interface with sensitive credentials. Once identified, plan the update of the apache-airflow-providers-standard, cncf-kubernetes, common-sql, and common-ai packages to the recommended versions to eliminate the template re-rendering flaw.

References