Skip to content
Vulnerability Intelligence

CVE-2022-40127

High

Apache 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
ProductAffected versionsFixed in
AirflowApacheSee advisory2.4.0
Apache Airflowpypi>= Apache Airflow2.4.0

Patched Releases

Airflow

2.4.0

Apache Airflow

2.4.0

Timeline

  1. Publicly disclosed

    Nov 14, 2022

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

4 more references in the full CVE brief

FAQ

Common Questions.

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