CVE-2022-40189: apache software foundation apache airflow OS Command Injection
Vulnerability summary
CVE-2022-40189 is a critical (CVSS 9.8) OS Command Injection vulnerability in apache software foundation apache airflow. EPSS estimates a 4.08% chance of exploitation in the next 30 days, higher than 90.5% of scored vulnerabilities.
Timeline
- 22-11-2022PublishedVulnerability first disclosed.
- 29-04-2025Last modifiedVulnerability information updated.
Description
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') vulnerability in Apache Airflow Pig Provider, Apache Airflow allows an attacker to control commands executed in the task execution context, without write access to DAG files. This issue affects Pig Provider versions prior to 4.0.0. It also impacts any Apache Airflow versions prior to 2.3.0 in case Pig Provider is installed (Pig Provider 4.0.0 can only be installed for Airflow 2.3.0+). Note that you need to manually install the Pig Provider version 4.0.0 in order to get rid of the vulnerability on top of Airflow 2.3.0+ version.
CVSS metrics
3 scores · 3 sources · 1 version- OSV · PypiEcosystem advisory · calculated9.8CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- NVDNIST9.8CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
EPSS trend
Probability
4.08%
Chance of exploitation in the next 30 days
Percentile
91%
Versus all other CVEs
30-day change
-0.03 pp
From 4.11% on 18-09-2026
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Apache2 products
- airflow< 2.3.0
- apache-airflow-providers-apache-pig< 4.0.0
Apache software foundation2 products
- apache airflow≥ unspecified, < 2.3.0
- apache airlfow pig provider≥ unspecified, < 4.0.0
PyPI1 product
- apache-airflow< 2.3.0
3 vendors · 5 products
References
6 links- github.com/apache/airflowPACKAGE