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

- Severity: High 8.8 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 85.1%, higher than 99% of CVEs (2026-12-01)
- Published: 2022-11-14T00:00:00.000Z
- Modified: 2026-11-27T13:17:18.470Z
- Also known as: GHSA-6pw3-8h9w-32gc, BIT-AIRFLOW-2022-40127, PYSEC-2022-42982
- Weaknesses: CWE-78, CWE-94
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: apache

## 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.

(As written by CVE List.)

## Affected

- Apache Software Foundation Apache Airflow: before 2.4.0
- apache-airflow (PyPI): before 2.4.0
- apache airflow: before 2.4.0
- airflow (Bitnami): before 2.4.0

## Every score

- CISA-ADP: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- GitHub: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- GitHub: CVSS:4.0 High `CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N`
- NVD: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Bitnami Vulnerability Database: rating High

## References

- <https://github.com/apache/airflow/pull/25960> (advisory, fix, patch, third-party-advisory, web)
- <https://lists.apache.org/thread/cf132hgm6jvzvsbpsozl3plf1r4cwysy> (advisory, article, mailing-list, third-party-advisory, web)
- <http://www.openwall.com/lists/oss-security/2022/11/14/2> (advisory, article, mailing-list, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2022-40127> (advisory, web)
- <https://github.com/apache/airflow/commit/372e699c2d1e11f7087b5340454d0a0a6a56fbf5> (web)
- <https://github.com/apache/airflow> (package)
- <https://github.com/pypa/advisory-database/tree/main/vulns/apache-airflow/PYSEC-2022-42982.yaml> (web)
- <https://github.com/advisories/GHSA-6pw3-8h9w-32gc> (advisory)

## Sources

- CVE List: [CVE-2022-40127](https://www.cve.org/CVERecord?id=CVE-2022-40127), CVE Terms of Use, modified 2026-11-27
- GitHub Advisory Database: [GHSA-6pw3-8h9w-32gc](https://github.com/advisories/GHSA-6pw3-8h9w-32gc), CC-BY-4.0, modified 2025-05-01
- NVD: [CVE-2022-40127](https://nvd.nist.gov/vuln/detail/CVE-2022-40127), Public domain, modified 2026-11-27
- PyPA Advisory Database: [PYSEC-2022-42982](https://osv.dev/vulnerability/PYSEC-2022-42982), CC-BY-4.0, modified 2026-06-10
- Bitnami Vulnerability Database: [BIT-AIRFLOW-2022-40127](https://osv.dev/vulnerability/BIT-AIRFLOW-2022-40127), Apache-2.0, modified 2026-09-08

---

Page: https://cve.day/CVE-2022-40127 · Whole record: https://cve.day/CVE-2022-40127.json · Rebuilt by cve.day 2026-11-27T13:32:14.344Z
