External risk intelligence

Apache Airflow CeleryExecutor Command Injection

CVE advisorySeverity: CRITICAL (CVSS 9.8)

CVE-2020-11981

This vulnerability resides within the CeleryExecutor configuration of Apache Airflow, requiring an attacker to have direct network access to the message broker (Redis or RabbitMQ). While these brokers are network-reachable, they are typically deployed within internal, protected network segments rather than being exposed directly to the public internet in standard deployments.

OS Command Injection

Apache Airflow

1.10.10 and earlier

Halo Surface Signal: 2 out of 5 — less likely to be public-facing.

External exposure likelihood

Horizon Alert

Summary of the vulnerability and why it matters

This advisory addresses a critical vulnerability in Apache Airflow that could allow an attacker to execute arbitrary commands if they can directly access the system's message broker. The main concern is to confirm if this specific configuration is in use and if it presents any exposure.

  • Attackers could run unauthorized commands.
  • Critical remote execution risk is present.
  • Confirm relevance and exposure.

Attack Path

How an attacker could exploit the issue

An attacker who can directly access the message broker used by Apache Airflow's CeleryExecutor could inject commands. This would allow a malicious actor to execute arbitrary code on the Celery worker, leading to a compromise of the Airflow environment.

  • Attacker must connect to the broker.
  • Inject commands into the broker.
  • Arbitrary command execution on worker.

Live Threat

Current exploitation, exposure, and threat context

When using CeleryExecutor, an attacker who can directly connect to the message broker could inject commands, leading to the execution of arbitrary commands on the celery worker.

  • Arbitrary command execution on worker.
  • Attacker connects directly to message broker.
  • Compromise of worker system resources.

Operational Fix

Recommended remediation, mitigation, and detection steps

This vulnerability in Apache Airflow's CeleryExecutor requires direct access to the message broker, suggesting that platform or infrastructure teams managing the Airflow deployment and its broker are likely responsible for remediation. The first practical step is to identify all Airflow instances using CeleryExecutor, confirm the network reachability of their brokers, and assess business criticality to prioritize efforts.

  • Platform/Infrastructure teams own remediation.
  • Verify broker network access and Airflow usage.
  • Plan coordinated maintenance for updates.

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 CeleryExecutor?

Apache Airflow is an open-source platform used to programmatically author, schedule, and monitor data workflows. It manages complex pipelines by distributing tasks across workers. When configured with CeleryExecutor, Airflow offloads these tasks to a distributed queue, relying on a message broker like Redis or RabbitMQ to coordinate communication between the scheduler and the worker nodes.

What does CVE-2020-11981 mean by command injection?

This vulnerability is classified as CWE-78, or OS Command Injection. It occurs when an application improperly neutralizes special characters in user-supplied data. In this specific CVE, an attacker sends malicious commands to the message broker, which the Celery worker then executes as if they were legitimate system instructions, granting the attacker control over the underlying worker environment.

Do I need direct broker access for this to be triggered?

Yes. This vulnerability requires an attacker to connect directly to the message broker used by Airflow. Simply having access to the public-facing Airflow web interface is not enough to trigger the bug. If the broker is secured, isolated from the network, or otherwise inaccessible to unauthorized entities, the attack path is not present.

How does Halo Surface Signal categorize this threat?

Halo Surface Signal labels this as 'Unlikely' because the vulnerability relies on reaching the message broker directly. While these brokers are technically network-reachable, they are usually kept within private, protected network segments. If your infrastructure team has followed standard deployment patterns, the broker is not sitting on the public internet, which significantly lowers the risk.

How should I respond if I run Apache Airflow?

Begin by auditing your infrastructure to confirm if you are using CeleryExecutor and which version of Airflow is currently installed. If you are on version 1.10.10 or earlier, prioritize upgrading to a patched release. Ensure your message brokers are restricted to trusted network traffic only, rather than allowing broad or public-facing access.

References