Improper Initialization Affecting hive package, versions <4.0.1-r1


Severity

Recommended
0.0
high
0
10

Snyk's Security Team recommends NVD's CVSS assessment. Learn more

Threat Intelligence

EPSS
0.17% (54th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-CHAINGUARDLATEST-HIVE-8168616
  • published8 Oct 2024
  • disclosed28 Jul 2022

Introduced: 28 Jul 2022

CVE-2022-36364  (opens in a new tab)
CWE-665  (opens in a new tab)

How to fix?

Upgrade Chainguard hive to version 4.0.1-r1 or higher.

NVD Description

Note: Versions mentioned in the description apply only to the upstream hive package and not the hive package as distributed by Chainguard. See How to fix? for Chainguard relevant fixed versions and status.

Apache Calcite Avatica JDBC driver creates HTTP client instances based on class names provided via httpclient_impl connection property; however, the driver does not verify if the class implements the expected interface before instantiating it, which can lead to code execution loaded via arbitrary classes and in rare cases remote code execution. To exploit the vulnerability: 1) the attacker needs to have privileges to control JDBC connection parameters; 2) and there should be a vulnerable class (constructor with URL parameter and ability to execute code) in the classpath. From Apache Calcite Avatica 1.22.0 onwards, it will be verified that the class implements the expected interface before invoking its constructor.

CVSS Scores

version 3.1