CVE-2022-40127

Apache Airflow <2.4.0 has an RCE in a bash example

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.

Remediation

Workaround:

  • Do not enable example dags on systems that should not allow UI user to execute an arbitrary command.

Category

8.8
CVSS
Severity: High
CVSS 3.1 •
EPSS 93.47% Top 5%
Third-Party Advisory openwall.com Third-Party Advisory github.com Third-Party Advisory apache.org
Affected: Apache Software Foundation Apache Airflow
Published at:
Updated at:

References

Frequently Asked Questions

What is the severity of CVE-2022-40127?
CVE-2022-40127 has been scored as a high severity vulnerability.
How to fix CVE-2022-40127?
As a workaround for remediating CVE-2022-40127: Do not enable example dags on systems that should not allow UI user to execute an arbitrary command.
Is CVE-2022-40127 being actively exploited in the wild?
It is possible that CVE-2022-40127 is being exploited or will be exploited in a near future based on public information. According to its EPSS score, there is a ~93% probability that this vulnerability will be exploited by malicious actors in the next 30 days.
What software or system is affected by CVE-2022-40127?
CVE-2022-40127 affects Apache Software Foundation Apache Airflow.
This platform uses data from the NIST NVD, MITRE CVE, MITRE CWE, First.org and CISA KEV but is not endorsed or certified by these entities. CVE is a registred trademark of the MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. CWE is a registred trademark of the MITRE Corporation and the authoritative source of CWE content is MITRE's CWE web site.
© 2025 Under My Watch. All Rights Reserved.