# CVE-2023-35797: Apache Airflow Hive Provider Beeline remote code execution with Principal

Source: https://junglewise.ai/threats/cve-2023-35797-apache-airflow-hive-provider-beeline-remote-code-execution-with  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2023-07-03  
License: CC BY 4.0 with a link back

CVE-2023-35797 · Severity: critical · CVSS 9.8 · Published 2023-07-03

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.

Technologies: [apache-airflow-providers-apache-hive (PyPI)](https://junglewise.ai/threats/technologies/apache-airflow-providers-apache-hive). Vendors: [PyPI](https://junglewise.ai/threats/vendors/pypi).

## Quick answers

**Is CVE-2023-35797 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2023-35797 being exploited in the wild.

**How severe is CVE-2023-35797?** Critical severity, with a CVSS score of 9.8, published 3 July 2023.

**Which products and versions are affected?** apache-airflow-providers-apache-hive (PyPI) < 6.1.1, ECOSYSTEM:introduced=0,fixed=6.1.1.

**Is there a fix for CVE-2023-35797?** Yes. apache-airflow-providers-apache-hive (PyPI): upgrade to 6.1.1 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**Am I affected by CVE-2023-35797?** Check whether you run apache-airflow-providers-apache-hive (PyPI) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix

- apache-airflow-providers-apache-hive (PyPI): upgrade to 6.1.1 or later

  ```sh
  pip install "apache-airflow-providers-apache-hive>=6.1.1"
  ```


## Affected products

- apache-airflow-providers-apache-hive (PyPI) < 6.1.1, ECOSYSTEM:introduced=0,fixed=6.1.1

## Identifiers

- CVE-2023-35797
- GHSA-hg6c-qqcm-r79r
- PYSEC-2026-273

## Related threats

- [PYSEC-2026-1139 - Apache Airflow Apache Hive Provider Improper Input Validation vulnerability](https://junglewise.ai/threats/cve-2023-37415-apache-airflow-apache-hive-provider-improper-input-validation)
- [PYSEC-2026-772 - OS Command Injection in Apache Airflow](https://junglewise.ai/threats/cve-2022-41131-os-command-injection-in-apache-airflow)
- [Apache Airflow Hive Provider vulnerable to code injection](https://junglewise.ai/threats/cve-2023-28706-apache-airflow-hive-provider-vulnerable-to-code-injection)
- [Apache Airflow Hive Provider Improper Input Validation vulnerability](https://junglewise.ai/threats/cve-2023-25696-apache-airflow-hive-provider-improper-input-validation)
- [Apache Airflow Hive Provider vulnerable to Command Injection](https://junglewise.ai/threats/cve-2022-46421-apache-airflow-hive-provider-vulnerable-to-command-injection)
