CVE-2022-40127: Apache Airflow <2.4.0 has an RCE in a bash example

Published Nov 14, 2022
·
Updated

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

2 affected componentsFixes available
Apache Airflow<2.4.0
pip/apache-airflow<2.4.0
2.4.0

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade pip/apache-airflow to a version that resolves this vulnerability.

    Fixed in 2.4.0
  2. Upgrade

    Upgrade Apache Airflow to a version that resolves this vulnerability.

    Fixed in 2.4.0

Event History

Nov 14, 2022
CVE Published
via MITRE·12:00 AM
Data Sourced
via MITRE·12:00 AM
DescriptionWeakness
Data Sourced
via NVD·10:15 AM
RemedyDescriptionSeverityWeaknessAffected Software
Advisory Published
12:00 PM

Frequently Asked Questions

1

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.

2

What is the severity of CVE-2022-40127?

The severity of CVE-2022-40127 is high (CVSS score: 8.8).

3

How does CVE-2022-40127 affect Apache Airflow?

CVE-2022-40127 affects Apache Airflow versions prior to 2.4.0.

4

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.

5

How can I fix CVE-2022-40127?

To fix CVE-2022-40127, upgrade to Apache Airflow version 2.4.0 or later.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203