CVE-2022-40127: Apache Airflow <2.4.0 has an RCE in a bash example
This Apache advisory covers CVE-2022-40127 in Apache Airflow.
- CVE-2022-40127
Am I affected by CVE-2022-40127?
You are affected if you run Apache Airflow at one of the versions below. If you do, upgrade to the fixed release listed for your version.
| Affected | Fixed in |
|---|---|
| Apache Airflow before 2.4.0 | 2.4.0 |
Official advisory · high-confidence parse· fetched ·verify at source
Key facts
- Vendor rating
- High, CVSS 8.8
- CVSS vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H· base score 8.8, scored by CISA-ADPAttack vector: network. Attack complexity: low. Privileges required: low. User interaction: none. Scope: unchanged. Confidentiality impact: high. Integrity impact: high. Availability impact: high.- Weakness
- CWE-94 Improper Control of Generation of Code ('Code Injection')
- EPSS
- 85.1% chance of exploitation in the next 30 days (99th percentile). FIRST EPSS, .
- CISA SSVC
- Exploitation: none observed. Automatable: no. Technical impact: total. CISA, .
- CISA KEV
- Not listed (catalogue checked )
- Source published
- Source revised
- Listed by VulniPulse
Compiled by VulniPulse from the linked sources. How records are collected and checked.
Affected products & platforms
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.
Text from the source record.
Support dates for the fixed release lines
- Apache Airflow 2: support ended
CVE-2022-40127 questions
Is CVE-2022-40127 being exploited?
CISA does not list it in its Known Exploited Vulnerabilities catalog (checked ), and the Apache advisory does not report exploitation. That is not proof it is unexploited.
Am I affected by CVE-2022-40127?
You are affected if you run Apache Airflow at one of the versions below. If you do, upgrade to the fixed release listed for your version. The table above lists each version.
How do I fix CVE-2022-40127?
Upgrade to a fixed release Apache lists for your version: 2.4.0.
How likely is CVE-2022-40127 to be exploited?
FIRST's EPSS model gives it a 85.1% chance of exploitation in the next 30 days (99th percentile among scored CVEs, model date ). It is a forecast, not a report of attacks.
How serious is CVE-2022-40127?
Apache rates it high, CVSS 8.8 out of 10.
More Apache Software Foundation advisories
CVE-2026-120351Nov 30, 2026Apache Airflow: Asset events API discloses Dag runs of Dags the user is notCVE-2026-40913Nov 9, 2026Apache Airflow: Import Errors API Leaks Unauthorized DAG Stack TracesCVE-2026-50204Nov 9, 2026Apache Airflow: Audit-log secrets masker redacts by key name only, persisting connectionCVE-2026-68982Nov 9, 2026Apache Airflow: CeleryExecutor: forged callback workloads run on Celery workersCVE-2026-86829Nov 9, 2026Apache Airflow: Deserialization of task-controlled XCom values in the SchedulerCVE-2026-82337Nov 9, 2026Apache Airflow: DeadlineAlert fields bypass plugin-registration gate for scheduler-side
Apache Software Foundation advisories, November 2022All Apache Software Foundation advisories
Get an email when Apache Airflow publishes the next one.
See Apache Airflow's last 90 days first. Live alerts for one product are free for life; every vendor is US$5 a month with Pro (first month US$1).