OS Command Injection in Apache Airflow
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') vulnerability in Apache Airflow Hive Provider, Apache Airflow allows an attacker to execute arbtrary commands in the task execution context, without write access to DAG files. This issue affects Hive Provider versions prior to 4.1.0. It also impacts any Apache Airflow versions prior to 2.3.0 in case HIve Provider is installed (Hive Provider 4.1.0 can only be installed for Airflow 2.3.0+). Note that you need to manually install the HIve Provider version 4.1.0 in order to get rid of the vulnerability on top of Airflow 2.3.0+ version that has lower version of the Hive Provider installed).
Affected software
Click a technology to see all vulnerabilities affecting it.
| Platform | Package | Vulnerable versions | Fixed in |
|---|---|---|---|
| Python (PyPI) | apache-airflow-providers-apache-hive | < 4.1.0 | 4.1.0 |
References
- https://nvd.nist.gov/vuln/detail/CVE-2022-41131
- https://github.com/apache/airflow/pull/27647
- https://github.com/apache/airflow
- https://lists.apache.org/thread/wwo3qp0z8gv54yzn7hr04wy4n8gb0vhl
- https://pypi.org/project/apache-airflow-providers-apache-hive
- https://github.com/advisories/GHSA-cm43-f2pv-6v68
- CVSS vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H- Weakness (CWE)
CWE-78- Platform
- Python (PyPI)
- Package
apache-airflow-providers-apache-hive- Disclosed
- 22.11.2022
- Updated
- 11.10.2026 13:18
Sources and licenses
OSV / GitHub Advisory Database - GHSA-cm43-f2pv-6v68 - CC BY 4.0
OSV / GitHub Advisory Database - PYSEC-2026-772 - PyPA Advisory Database; CC BY 4.0
Vulnerability history: apache-airflow-providers-apache-hive
All published vulnerabilities of this package (Python (PyPI)), newest first. Shows whether this is a one-off slip or a package that needs watching.
- Total entries
- 6
- First → latest
- 11.2022 07.2023
- Without a fix
- 0
- Exploited in attacks
- 0
Severity breakdown
- Critical 4
- High 2
Disclosures per year
- 2022: 2
- 2023: 4
- 2024: 0
- 2025: 0
- 2026: 0
-
OS Command Injection in Apache Airflow this entry
Know which vulnerabilities affect your application
With the DockRay integration and software inventory enabled, DockRay checks reported component versions against known vulnerabilities and notifies you about confirmed matches. Coverage depends on the supported technology and available advisory data.