CVE-2022-40127: Apache Airflow <2.4.0 has an RCE in a bash example
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 runid parameter. This issue affects Apache Airflow Apache Airflow versions prior to 2.4.0.
Other sources
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 runid parameter. This issue affects Apache Airflow versions prior to 2.4.0.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
pip/apache-airflowto a version that resolves this vulnerability.Fixed in 2.4.0 - Upgrade
Upgrade
Apache Airflowto a version that resolves this vulnerability.Fixed in 2.4.0
Event History
Frequently Asked Questions
What is CVE-2022-40127?
CVE-2022-40127 is a vulnerability in Example Dags of Apache Airflow that allows an attacker with UI access to execute arbitrary commands via manually provided run_id parameter.
What is the severity of CVE-2022-40127?
The severity of CVE-2022-40127 is high (CVSS score: 8.8).
How does CVE-2022-40127 affect Apache Airflow?
CVE-2022-40127 affects Apache Airflow versions prior to 2.4.0.
How can an attacker exploit CVE-2022-40127?
An attacker with UI access who can trigger DAGs can exploit CVE-2022-40127 by executing arbitrary commands via the manually provided run_id parameter.
How can I fix CVE-2022-40127?
To fix CVE-2022-40127, upgrade to Apache Airflow version 2.4.0 or later.