Vulnerabilities · 2022 · Apache
CVE-2022-40189
Apache Airflow vulnerability
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.
High priority: this vulnerability is rated critical and can be attacked over the network without a login.
Affected products
Airflow, Apache-airflow-providers-apache-pig. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Apache Airflow runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- github.com/apache/airflow/pull/27644 · Patch
- lists.apache.org/thread/yxnfzfw2w9pj5s785k3rlyly4y44sd15 · Third Party Advisory
- nvd.nist.gov/vuln/detail/CVE-2022-40189
- github.com/pypa/advisory-database/tree/main/vulns/apache-airflow/PYSEC-2026-270.yaml
- pypi.org/project/apache-airflow
- github.com/advisories/GHSA-rmf2-pwfq-h75j
- nvd.nist.gov/vuln/detail/CVE-2022-40189
- cve.org/CVERecord?id=CVE-2022-40189
More vulnerabilities in Apache products
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.