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.
CVE-2022-40127
Score elevated to 9.0 because EPSS predicts 93% probability of exploitation within the next 30 days (top 0.2% of all CVEs). NVD baseline CVSS 8.8 retained for reference. Confidence: see factors.
- High exploitation likelihood — EPSS 86%
No vendor fix yet — apply a workaround or compensating control (WAF / firewall / segmentation) and watch for a patch.
- CVSS v3
- 8.8
- EG Score
- 9.0(high)
- EPSS
- 99.7%
- KEV
- Not listed
Published
November 14, 2022
Last Modified
April 30, 2025
References (6)
- security@apachehttp://www.openwall.com/lists/oss-security/2022/11/14/2
- security@apachehttps://github.com/apache/airflow/pull/25960
- security@apachehttps://lists.apache.org/thread/cf132hgm6jvzvsbpsozl3plf1r4cwysy
- af854a3a-2127-422b-91ae-364da2661108http://www.openwall.com/lists/oss-security/2022/11/14/2
- af854a3a-2127-422b-91ae-364da2661108https://github.com/apache/airflow/pull/25960
- af854a3a-2127-422b-91ae-364da2661108https://lists.apache.org/thread/cf132hgm6jvzvsbpsozl3plf1r4cwysy
Affected Packages
(1 across 1 ecosystem)
PyPI(1)
| Package | Vulnerable range | Fixed in | Dependents |
|---|---|---|---|
| apache-airflow | 1.10.0 ... 2.4.0rc1 (121 versions) | 2.4.0 | — |
Weakness Classification(1)
MITRE Common Weakness Enumeration — the root-cause categories this CVE belongs to.
Data Freshness Timeline
(refreshed 3× in last 7d / 19× in last 30d)
Each row is a source pipeline that fetched or updated this CVE on that date, with what changed. For example, "NVD update" means NVD published or revised its analysis for this CVE; "MITRE cvelistV5" means we ingested or refreshed it from the CNA feed. Most recent first.
- 2026-07-22 14:06 UTCEPSS rescore
- 2026-07-20 17:05 UTCEPSS rescore
- 2026-07-16 15:49 UTCOSV refresh
- 2026-07-15 16:56 UTCEPSS rescore
- 2026-07-15 16:56 UTCEPSS rescore
- 2026-07-15 01:58 UTCEPSS rescore
- 2026-07-13 06:11 UTCEPSS rescore
- 2026-07-11 08:25 UTCEPSS rescore
- 2026-07-11 08:25 UTCEPSS rescore
- 2026-07-06 16:25 UTCEPSS rescore
- 2026-07-06 02:21 UTCEPSS rescore
- 2026-07-05 02:28 UTCEPSS rescore
- 2026-07-01 15:04 UTCEPSS rescore
- 2026-06-28 14:02 UTCOSV refresh
- 2026-06-25 13:48 UTCEPSS rescore
- 2026-06-25 13:48 UTCEPSS rescore
- 2026-06-24 14:03 UTCEPSS rescore
- 2026-06-23 21:31 UTCEPSS rescore
- 2026-06-23 21:31 UTCEPSS rescore
- 2026-06-15 17:46 UTCEPSS rescore
- 2026-06-14 23:16 UTCEPSS rescore
- 2026-06-11 01:39 UTCOSV refresh
- 2026-06-08 14:15 UTCEPSS rescore
- 2026-06-06 13:46 UTCEPSS rescore
- 2026-06-06 13:46 UTCEPSS rescore
Show 12 moreShow fewer
- 2026-06-06 13:46 UTCEPSS rescore
- 2026-06-05 22:46 UTCEPSS rescore
- 2026-06-05 22:46 UTCEPSS rescore
- 2026-06-02 20:12 UTCEPSS rescore
- 2026-06-02 20:11 UTCEPSS rescore
- 2026-05-26 13:43 UTCEPSS rescore
- 2026-05-26 13:43 UTCEPSS rescore
- 2026-05-26 13:43 UTCEPSS rescore
- 2026-05-26 07:17 UTCEPSS rescore
- 2026-05-26 07:17 UTCEPSS rescore
- 2026-05-26 07:17 UTCEPSS rescore
- 2026-05-25 12:11 UTCEG score recompute
Publicly available exploits
(3 references)Working exploit code is in the public domain (2 GitHub PoCs). Defenders should treat patch urgency accordingly — public PoCs typically lead to mass-exploitation within 24-72 hours.
- GitHub PoCjakabakos/CVE-2022-40127-Airflow-RCEFirst seen Jul 21, 2023
CVE-2022-40127 PoC and exploit
Open source ↗ - GitHub PoCMr-xn/CVE-2022-40127First seen Nov 18, 2022
Apache Airflow < 2.4.0 DAG example_bash_operator RCE POC
Open source ↗ - Nucleihttp/cves/2022/CVE-2022-40127.yamlFirst seen Jan 1, 2022
AirFlow < 2.4.0 - Remote Code Execution
Open source ↗
Frequently asked(5)
What is CVE-2022-40127?
When was CVE-2022-40127 disclosed?
Is CVE-2022-40127 actively exploited?
What is the CVSS score of CVE-2022-40127?
How do I remediate CVE-2022-40127?
Dependency Blast Radius
See which npm, PyPI, Go, and Maven packages are affected by CVE-2022-40127
Is Your Infrastructure Affected by CVE-2022-40127?
EchelonGraph automatically scans your cloud infrastructure and maps CVE exposure using blast radius analysis.