
Cloud Vulnerability DB
A community-led vulnerabilities database
CVE-2026-53561 is an improper authentication vulnerability in HiveServer2's SAML bearer-token validation in Apache Hive, allowing unauthenticated network attackers to authenticate as any arbitrary Hive user by sending a forged Authorization: Bearer token to the /cliservice HTTP endpoint. It affects Apache Hive versions 4.0.0 through 4.2.0 (and later unreleased branches) when deployed with HTTP transport and hive.server2.authentication=SAML. The vulnerability was published on August 25, 2026, with a patch released in version 4.2.1. It carries a CVSS v3.1 base score of 7.4 (High) (Github Advisory, Apache Hive Security Advisory).
The root cause is a logic inversion bug in the signatureMatches() method of HiveSamlAuthTokenGenerator.java, where MessageDigest.isEqual() was negated (!MessageDigest.isEqual(...)), causing the signature check to accept forged tokens and reject valid ones — effectively inverting the authentication gate (CWE-287, CWE-305, CWE-345). Additionally, the parse() method used split(SEPARATOR) without a limit, allowing crafted token payloads with embedded separators to manipulate key-value parsing, and the ThriftHttpServlet passed the raw (still Base64-encoded) token string to parse() rather than the decoded form. An attacker with network access to the HiveServer2 HTTP port can craft a Base64-encoded token string with an arbitrary username and any signature value, send it as an Authorization: Bearer header to /cliservice, and receive a fully authenticated session as the impersonated user — no credentials, SAML IdP interaction, or knowledge of the server signing secret required (Github Commit, Github Advisory).
A successful exploit grants an unauthenticated attacker a fully authenticated HiveServer2 session with the privileges of any impersonated Hive user, including high-value accounts such as administrators. This enables unauthorized query execution, exfiltration of data stored in Hive-managed tables (potentially including sensitive enterprise datasets in HDFS or cloud storage), and unauthorized data modification. Availability is not directly impacted, but the confidentiality and integrity of all data accessible to the impersonated user are fully compromised (Github Advisory, Feedly).
As of the time of disclosure, there is no public proof-of-concept exploit and no evidence of in-the-wild exploitation (Feedly). The vulnerability is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog. The EPSS score is approximately 0.14–0.20%, placing it in a low exploitation probability tier in the near term. However, the attack requires no credentials and only network reachability to the HiveServer2 HTTP port, making it straightforward to exploit once the flaw is understood — the primary constraint (High attack complexity in CVSS) reflects the requirement that the target deployment must have SAML authentication enabled in HTTP mode (Github Advisory).
hive.server2.authentication=SAML configured. Scan for exposed HiveServer2 HTTP ports (default 10001) using tools like Shodan, Censys, or nmap. Check for reverse proxies such as Apache Knox that may forward requests to HiveServer2.u=<target_username>;id=<arbitrary_id>;time=<current_epoch_ms>;rs=<arbitrary_relay_state>;sg=<any_bogus_signature>. Due to the inverted signatureMatches() logic, any non-matching signature will be accepted.echo -n 'u=admin;id=1;time=<ms>;rs=x;sg=bogus' | base64)./cliservice endpoint with the header Authorization: Bearer <base64_encoded_token>, targeting the HiveServer2 HTTP port directly or through a Knox reverse proxy./cliservice on the HiveServer2 HTTP port (default 10001) from unfamiliar source IPs; requests containing Authorization: Bearer headers from clients that have not completed a SAML SSO flow.Successfully validated the token for user) for privileged or administrative users from unexpected source addresses or at unusual times; absence of corresponding SAML IdP authentication events for the same user/session.SHOW TABLES, SELECT *, EXPORT TABLE) executed under high-privilege user accounts, particularly from unfamiliar JDBC client identifiers or IP addresses.The primary remediation is to upgrade Apache Hive to version 4.2.1, which contains the fix for HIVE-29653 addressing the inverted signature check, encoding issues, and token parsing flaw (Github Commit, Github Advisory). If an immediate upgrade is not feasible, the following workarounds can reduce exposure:
hive.server2.authentication from SAML to KERBEROS or LDAP; deployments using Knox SSO with LDAP/Kerberos on the HiveServer2 side are not affected.Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."