CVE-2022-40189Apache Airflow
Critical 9.8 No auth needed
Follow: this CVE · Apache · Apache Airflow We alert you by email or Slack (account required).
- Priority
- 74
- CVSS 3.1
- 9.8
- EPSS
- 5.8% probability of exploitation in 30 days · percentile 94
- Auth required
- No
- Published
- Nov 22, 2022
- Updated
- Nov 27, 2026
- Category
- Server · Cross-platform
- Weakness (CWE)
- CWE-78
- SSVC (CISA)
- Exploitation: none · Automatable: yes · Technical impact: total
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
What happens
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.
What to do
- Apply the vendor's security update for Airflow.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| PyPI | apache-airflow |
< 2.3.0 |
2.3.0 |
pip install "apache-airflow>=2.3.0" |
| PyPI | apache-airflow |
< 2.3.0 |
2.3.0 |
pip install "apache-airflow>=2.3.0" |
Per OSV / GitHub Advisories (GHSA-rmf2-pwfq-h75j, PYSEC-2026-270). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| apache | airflow | < 2.3.0 |
| apache | apache-airflow-providers-apache-pig | < 4.0.0 |
Official sources
References
Links published by the sources. Open them with care.
- github.com Patch Third Party Advisory
- lists.apache.org Mailing List Third Party Advisory