CVE-2023-35797 Apache Airflow Hive Provider Beeline RCE with Principal

Critical 9.8 Published Updated

Attackers with connection modification access can achieve remote code execution in Apache Airflow Hive Provider by bypassing security checks on the principal parameter.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2023-35797?

CVE-2023-35797 is a critical command injection vulnerability in Apache Airflow Apache Hive Provider, published on 3 Jul 2023. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

Improper Input Validation vulnerability in Apache Software Foundation Apache Airflow Hive Provider. This issue affects Apache Airflow Apache Hive Provider: before 6.1.1.

Before version 6.1.1 it was possible to bypass the security check to RCE via principal parameter. For this to be exploited it requires access to modifying the connection details.

It is recommended updating provider version to 6.1.1 in order to avoid this vulnerability.

Weakness: CWE-20

Which versions are affected by CVE-2023-35797?

3 open source packages ship an affected version, including apache-airflow-providers-apache-hive. It affects 1 product.

PackageAffectedFixed in
apache-airflow-providers-apache-hive PyPIAll versions6.1.1
apache-airflow-providers-apache-hive PyPIAll versions6.1.1
apache-airflow-providers-apache-hive PyPIAll versions6.1.1

Products include Apache Apache-Airflow-Providers-Apache-Hive.

How do I fix CVE-2023-35797?

Upgrade apache-airflow-providers-apache-hive to 6.1.1 or later.

Upgrade, and pass arguments to programs as a list instead of through a shell. More about Command injection.

Is CVE-2023-35797 being exploited?

There is no known exploitation of CVE-2023-35797 in the wild and no public exploit code.

Sources

Also known as GHSA-hg6c-qqcm-r79r, PYSEC-2026-273.

Is CVE-2023-35797 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free