Apache Software Foundation Apache Airflow
Apache Airflow Command Injection
An issue was found in Apache Airflow versions 1.10.10 and below. A remote code/command injection vulnerability was discovered in one of the example DAGs shipped with Airflow which would allow any authenticated user to run arbitrary commands as the user running airflow worker/scheduler (depending on the executor in use). If you already have examples disabled by setting load_examples=False in the config then you are not vulnerable.
Affected versions and mitigation
From the CVE record, GitHub Security Advisories and the vendor's references.Affected
- < 1.10.11rc1
Fixed in 1.10.11rc1
from GitHub Security Advisory GHSA-rvmq-4x66-q7j3
Mitigation
Upgrade apache-airflow to 1.10.11rc1 or later.
Timeline
Days relative to CVE publicationFirst public PoC 311 days after publication; added to CISA KEV 1.5 years after publication. First PoC: pberba/CVE-2020-11978 (created 22 May 2021, found by us: backfilled).
PoC repositories
Found on GitHub.1 PoCs · 1 suspicious or fake
PoCs 1
| Repository | Created | Stars | Assessment |
|---|---|---|---|
| pberba/CVE-2020-11978 | 22 May 2021 +311 d | 8 | PoC |
Suspicious or fake 1
| Repository | Created | Stars | Assessment |
|---|---|---|---|
| navyaks55/Vulnerability_Exploitation | 6 Dec 2022 +2.4 y | 0 | Fake
Flags · score 15
Below the suspicion threshold (50); does not change the assessment. |
Only PoCs count toward the first-PoC date and the characteristics below. Do not run PoC code from unknown sources.
Other public exploits
Exploit-DB, Metasploit and nuclei count as public PoCs. Exploit-tagged references from the CVE record and NVD are links only. None of these are analysed by us.| Source | Title | Published | Found by us |
|---|---|---|---|
| Exploit-DB | Apache Airflow 1.10.10 - 'Example Dag' Remote Code Execution | 2 Jun 2021 | 14 Nov 2026 |
| Metasploit | Metasploit exploit: Apache Airflow 1.10.10 - Example DAG Remote Code Execution (exploit/linux/http/apache_airflow_dag_rce) | 17 Sep 2023 | 14 Nov 2026 |
| nuclei template | nuclei template: Apache Airflow <=1.10.10 - Remote Code Execution | 27 Apr 2023 | 14 Nov 2026 |
PoC characteristics
What to hunt for in your logs · from 1 PoC repoGET /api/experimental/dags/example_trigger_target_dag/paused/false
- Ports
- 8080
- Seen in
- 1 repo: pberba/CVE-2020-11978
- Evidence
- pberba/CVE-2020-11978/CVE-2020-11978-min.py:21 pberba/CVE-2020-11978/CVE-2020-11978.py:44
GET /api/experimental/dags/example_trigger_target_dag/tasks/bash_task
- Ports
- 8080
- Seen in
- 1 repo: pberba/CVE-2020-11978
- Evidence
- pberba/CVE-2020-11978/CVE-2020-11978.py:33
GET /api/experimental/test
- Ports
- 8080
- Seen in
- 1 repo: pberba/CVE-2020-11978
- Evidence
- pberba/CVE-2020-11978/CVE-2020-11978.py:24
POST /api/experimental/dags/example_trigger_target_dag/dag_runs
- Body markers
"conf"inapplication/json- Ports
- 8080
- Seen in
- 1 repo: pberba/CVE-2020-11978
- Evidence
- pberba/CVE-2020-11978/CVE-2020-11978-min.py:22 pberba/CVE-2020-11978/CVE-2020-11978.py:52
Regex
Generated from PoC characteristics; not yet reviewed. Matches the request path and query.
(?i)^/api/experimental/dags/example_trigger_target_dag/paused/false(?:[?#].*)?$
(?i)^/api/experimental/dags/example_trigger_target_dag/tasks/bash_task(?:[?#].*)?$
(?i)^/api/experimental/test(?:[?#].*)?$
(?i)^/api/experimental/dags/example_trigger_target_dag/dag_runs(?:[?#].*)?$
Suricata
Template generated from PoC characteristics. Review before deploying.
alert http any any -> $HOME_NET [8080] (msg:"GG PoC-Monitor CVE-2020-11978 Apache Software Foundation Apache Airflow exploit attempt"; flow:established,to_server; http.method; content:"GET"; http.uri; content:"/api/experimental/dags/example_trigger_target_dag/paused/false"; reference:url,poc.griffinguard.io/cve/CVE-2020-11978; classtype:web-application-attack; sid:9088309; rev:1;)
alert http any any -> $HOME_NET [8080] (msg:"GG PoC-Monitor CVE-2020-11978 Apache Software Foundation Apache Airflow exploit attempt"; flow:established,to_server; http.method; content:"GET"; http.uri; content:"/api/experimental/dags/example_trigger_target_dag/tasks/bash_task"; reference:url,poc.griffinguard.io/cve/CVE-2020-11978; classtype:web-application-attack; sid:9150518; rev:1;)
alert http any any -> $HOME_NET [8080] (msg:"GG PoC-Monitor CVE-2020-11978 Apache Software Foundation Apache Airflow exploit attempt"; flow:established,to_server; http.method; content:"GET"; http.uri; content:"/api/experimental/test"; reference:url,poc.griffinguard.io/cve/CVE-2020-11978; classtype:web-application-attack; sid:9419088; rev:1;)
alert http any any -> $HOME_NET [8080] (msg:"GG PoC-Monitor CVE-2020-11978 Apache Software Foundation Apache Airflow exploit attempt"; flow:established,to_server; http.method; content:"POST"; http.uri; content:"/api/experimental/dags/example_trigger_target_dag/dag_runs"; http.request_body; content:"|22|conf|22|"; reference:url,poc.griffinguard.io/cve/CVE-2020-11978; classtype:web-application-attack; sid:9859688; rev:1;)
Sigma
Template generated from PoC characteristics. Review before deploying.
title: Apache Software Foundation Apache Airflow exploit attempt (CVE-2020-11978)
id: gg-pocmon-cve-2020-11978-9088309
status: experimental
description: Request pattern taken from public PoCs for CVE-2020-11978. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2020-11978
logsource:
category: webserver
detection:
selection:
cs-method: GET
cs-uri-stem|contains|all:
- '/api/experimental/dags/example_trigger_target_dag/paused/false'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: high
tags:
- attack.initial_access
- attack.t1190
- cve.2020.11978
title: Apache Software Foundation Apache Airflow exploit attempt (CVE-2020-11978)
id: gg-pocmon-cve-2020-11978-9150518
status: experimental
description: Request pattern taken from public PoCs for CVE-2020-11978. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2020-11978
logsource:
category: webserver
detection:
selection:
cs-method: GET
cs-uri-stem|contains|all:
- '/api/experimental/dags/example_trigger_target_dag/tasks/bash_task'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: high
tags:
- attack.initial_access
- attack.t1190
- cve.2020.11978
title: Apache Software Foundation Apache Airflow exploit attempt (CVE-2020-11978)
id: gg-pocmon-cve-2020-11978-9419088
status: experimental
description: Request pattern taken from public PoCs for CVE-2020-11978. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2020-11978
logsource:
category: webserver
detection:
selection:
cs-method: GET
cs-uri-stem|contains|all:
- '/api/experimental/test'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: high
tags:
- attack.initial_access
- attack.t1190
- cve.2020.11978
title: Apache Software Foundation Apache Airflow exploit attempt (CVE-2020-11978)
id: gg-pocmon-cve-2020-11978-9859688
status: experimental
description: Request pattern taken from public PoCs for CVE-2020-11978. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2020-11978
logsource:
category: webserver
detection:
selection:
cs-method: POST
cs-uri-stem|contains|all:
- '/api/experimental/dags/example_trigger_target_dag/dag_runs'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: high
tags:
- attack.initial_access
- attack.t1190
- cve.2020.11978