CVE-2022-40127
HighApache Airflow vulnerable to OS Command Injection via example DAGs
Published Nov 14, 2022 · Updated Sep 8, 2026 · Also known as BIT-airflow-2022-40127, GHSA-6pw3-8h9w-32gc, PYSEC-2022-42982, ROOT-APP-PYPI-CVE-2022-40127
Key Facts
Patch immediately- CVE-2022-40127 is a high-severity vulnerability (CVSS 8.8 v3.1) affecting Airflow (Apache), Apache Airflow (pypi).
- It is not listed in any known-exploited vulnerabilities catalog. No public exploit code is known.
- EPSS estimates a 86% probability of exploitation in the next 30 days.
- Fixed versions are available, including Airflow 2.4.0, Apache Airflow 2.4.0.
- Brandefense priority: patch immediately, because it is very likely to be exploited soon.
CVSS v3.1
8.8
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
EPSS (30-day exploit likelihood)
86%
Higher than 99.7% of all scored CVEs
Exploited in the wild
No known
Not in a known-exploited catalog
Public exploit code
None known
Get the full CVE-2022-40127 brief as a PDF
Every affected product and fixed release, exploitation status and a first 24 hours response checklist, emailed within minutes.
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.
Affected Products
4 affected entries in total| Product | Affected versions | Fixed in |
|---|---|---|
| AirflowApache | See advisory | 2.4.0 |
| Apache Airflowpypi | >= Apache Airflow | 2.4.0 |
Patched Releases
Airflow
2.4.0
Apache Airflow
2.4.0
Timeline
Publicly disclosed
Nov 14, 2022
Last updated
Sep 8, 2026
Weakness Type
- CWE-78 Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
- CWE-94 Improper Control of Generation of Code ('Code Injection')
References
- advisoryGHSA advisory
- advisoryhttps://github.com/CVEProject/cvelistV5/tree/main/cves/2022/40xxx/CVE-2022-40127.json
- advisoryhttps://nvd.nist.gov/vuln/detail/CVE-2022-40127
- articlehttps://github.com/apache/airflow/commit/372e699c2d1e11f7087b5340454d0a0a6a56fbf5
- articlehttps://github.com/apache/airflow/pull/25960
FAQ
Common Questions.
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.
Affected: Airflow (Apache); Apache Airflow (pypi) versions >= Apache Airflow. The full list is in the CVE brief.
It is not listed in any known-exploited vulnerabilities catalog.
No, it is not currently listed in the CISA Known Exploited Vulnerabilities catalog.
No public exploit code is known.
Fixed versions are available, including Airflow 2.4.0, Apache Airflow 2.4.0.
Brandefense priority: patch immediately, because it is very likely to be exploited soon.
Is CVE-2022-40127 Running On Your Attack Surface?
Brandefense maps vulnerabilities like this one to your internet-facing assets and tells you exactly where to patch.
Request A Demo