PoC Monitor
← All CVEs
CVE-2020-11978published 16 Jul 2020 00:00 UTCData: JSON · API

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.

First public PoC 311 daysafter publication · 22 May 2021
Public PoCs41 on GitHub · 3 Exploit-DB, Metasploit or nuclei
CVSS8.8high · scored by CISA ADP · CWE-78
CISA KEV 18 Jan 20221.5 years after publication

Affected versions and mitigation

From the CVE record, GitHub Security Advisories and the vendor's references.

Affected

apache-airflow (PyPI)
  • < 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 publication
t=0+90+180+270+360+450+540CVE published16 Jul 2020 · t = 0First public PoC22 May 2021 · t+311dAdded to CISA KEV18 Jan 2022 · t+1.5y

First 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
RepositoryCreatedStarsAssessment
pberba/CVE-2020-11978 22 May 2021 +311 d 8 PoC
Suspicious or fake 1
RepositoryCreatedStarsAssessment
navyaks55/Vulnerability_Exploitation 6 Dec 2022 +2.4 y 0 Fake
Flags · score 15
  • owner account created less than 30 days before the repo

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.

PoC characteristics

What to hunt for in your logs · from 1 PoC repo

GET /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" in application/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.

GET /api/experimental/dags/example_trigger_target_dag/paused/false
(?i)^/api/experimental/dags/example_trigger_target_dag/paused/false(?:[?#].*)?$
GET /api/experimental/dags/example_trigger_target_dag/tasks/bash_task
(?i)^/api/experimental/dags/example_trigger_target_dag/tasks/bash_task(?:[?#].*)?$
GET /api/experimental/test
(?i)^/api/experimental/test(?:[?#].*)?$
POST /api/experimental/dags/example_trigger_target_dag/dag_runs
(?i)^/api/experimental/dags/example_trigger_target_dag/dag_runs(?:[?#].*)?$

Suricata

Template generated from PoC characteristics. Review before deploying.

GET /api/experimental/dags/example_trigger_target_dag/paused/false
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;)
GET /api/experimental/dags/example_trigger_target_dag/tasks/bash_task
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;)
GET /api/experimental/test
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;)
POST /api/experimental/dags/example_trigger_target_dag/dag_runs
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.

GET /api/experimental/dags/example_trigger_target_dag/paused/false
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
GET /api/experimental/dags/example_trigger_target_dag/tasks/bash_task
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
GET /api/experimental/test
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
POST /api/experimental/dags/example_trigger_target_dag/dag_runs
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