Improper Authentication Affecting org.apache.hive:hive-service package, versions [,4.2.1)


Severity

Recommended
0.0
critical
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.27% (19th 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-JAVA-ORGAPACHEHIVE-19256954
  • published25 Aug 2026
  • disclosed25 Aug 2026
  • creditAndrew Rukin (Arenadata)

Introduced: 25 Aug 2026

NewCVE-2026-53561  (opens in a new tab)
CWE-287  (opens in a new tab)

How to fix?

Upgrade org.apache.hive:hive-service to version 4.2.1 or higher.

Overview

org.apache.hive:hive-service is a package for reading, writing, and managing large datasets residing in distributed storage using SQL.

Affected versions of this package are vulnerable to Improper Authentication through the doSamlAuth process in service/src/java/org/apache/hive/service/cli/thrift/ThriftHttpServlet.java and HiveSamlAuthTokenGenerator in service/src/java/org/apache/hive/service/auth/saml/HiveSamlAuthTokenGenerator.java. An attacker can obtain an authenticated HiveServer2 session as an arbitrary user by sending a forged Authorization: Bearer token to the HTTP /cliservice endpoint when SAML authentication is enabled. The vulnerable code accepted attacker-supplied bearer tokens during SAML HTTP authentication without properly validating the encoded token contents, allowing a remote unauthenticated network attacker to impersonate Hive users. This breaks access control for HiveServer2 HTTP deployments that use native SAML mode, exposing authenticated session access to the attacker.

CVSS Base Scores

version 4.0
version 3.1