CVE-2022-41131 (OS Command Injection)

Executive Summary

Apache Airflow's Hive Provider prior to version 4.1.0 contains an OS command injection flaw that allows attackers to execute arbitrary commands within the task execution context, even without write access to DAG files. The vulnerability also affects any Airflow installation before 2.3.0 when the Hive Provider is present. An attacker could leverage this to compromise the underlying host or execute malicious code. The fix is to upgrade the Hive Provider to 4.1.0 or later and ensure Airflow is at least 2.3.0, removing the vulnerable provider.


Authoritative CVE Metadata

  • CVSS Base Score: 7.8 (HIGH)
  • Status: Modified
  • Last Modified: 27-11-26

Original Description

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