CVE-2022-40127
published 2022-11-14CVE-2022-40127: 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…
PriorityP180high8.8CVSS 3.1
AVNACLPRLUINSUCHIHAH
EXPLOIT
EPSS
85.65%
99.7th percentile
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.
Affected
2 ranges
| Vendor | Product | Version range | Fixed in |
|---|---|---|---|
| apache | airflow | < 2.4.0 | 2.4.0 |
| apache_software_foundation | apache_airflow | >= Apache Airflow < 2.4.0 | 2.4.0 |
Detection & IOCsextracted from sources · hover to see the quote
- →Monitor for shell metacharacters (backticks, $(), semicolons) injected into the run_id parameter when triggering DAGs via the Airflow UI, specifically targeting the 'Trigger DAG w/ config' functionality. ↗
- →Detect exploitation attempts against the example_bash_operator DAG: look for run_id values containing shell command injection patterns in Airflow trigger requests. ↗
- →Alert on the presence and execution of example DAGs (example_bash_operator) on production Airflow instances, as these are the attack surface for this CVE. ↗
- →The vulnerable template expression is `echo "run_id={{ run_id }} | dag_run={{ dag_run }}"` — monitor Airflow task logs for unexpected command output or OS-level process spawning from this BashOperator task. ↗
- ·Exploitation requires the attacker to have UI access and the ability to trigger DAGs; example DAGs must be enabled on the instance. ↗
- ·This vulnerability only affects Apache Airflow versions prior to 2.4.0. ↗
CVEs like this are exactly what “Exploited This Week” covers.
Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.
OSV
Apache Airflow vulnerable to OS Command Injection via example DAGs
osv·2022-11-14
CVE-2022-40127 [HIGH] Apache Airflow vulnerable to OS Command Injection via example DAGs
Apache Airflow vulnerable to OS Command Injection via example DAGs
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 versions prior to 2.4.0.
OSV
CVE-2022-40127: A vulnerability in Example Dags of Apache Airflow allows an attacker with UI access who can trigger DAGs, to execute arbitrary commands via manually p
osv·2022-11-14
CVE-2022-40127 CVE-2022-40127: A vulnerability in Example Dags of Apache Airflow allows an attacker with UI access who can trigger DAGs, to execute arbitrary commands via manually p
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.
GHSA
Apache Airflow vulnerable to OS Command Injection via example DAGs
ghsa·2022-11-14
CVE-2022-40127 [HIGH] CWE-78 Apache Airflow vulnerable to OS Command Injection via example DAGs
Apache Airflow vulnerable to OS Command Injection via example DAGs
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 versions prior to 2.4.0.
No detection rules found.
Nuclei
AirFlow < 2.4.0 - Remote Code Execution
nuclei·CVSS 8.8
CVE-2022-40127 [HIGH] AirFlow < 2.4.0 - Remote Code Execution
AirFlow '
internal: true
# digest: 4a0a00473045022100963e8350b0932b848ed0b1f2da3d2cd45949b72ef05cf84e7953693aab4b9411022032791b4762b41d69ada551117d62366d6b4c50efb082d25549c1d38356b2ec73:922c64590222798bb761d5b6d8e72950
http://www.openwall.com/lists/oss-security/2022/11/14/2https://github.com/apache/airflow/pull/25960https://lists.apache.org/thread/cf132hgm6jvzvsbpsozl3plf1r4cwysyhttp://www.openwall.com/lists/oss-security/2022/11/14/2https://github.com/apache/airflow/pull/25960https://lists.apache.org/thread/cf132hgm6jvzvsbpsozl3plf1r4cwysy
2022-11-14
Published