fix: the hive thrift server's ldap authentication pr... in...#55700
Draft
orbisai0security wants to merge 1 commit intoapache:masterfrom
Draft
fix: the hive thrift server's ldap authentication pr... in...#55700orbisai0security wants to merge 1 commit intoapache:masterfrom
orbisai0security wants to merge 1 commit intoapache:masterfrom
Conversation
Automated security fix generated by Orbis Security AI
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Fix critical severity security issue in
sql/hive-thriftserver/src/main/java/org/apache/hive/service/auth/LdapAuthenticationProviderImpl.java.Vulnerability
V-001sql/hive-thriftserver/src/main/java/org/apache/hive/service/auth/LdapAuthenticationProviderImpl.java:97Description: The Hive Thrift Server's LDAP authentication provider constructs LDAP directory queries using user-supplied credentials (username) without sanitizing LDAP special characters. An attacker can supply a crafted username such as 'admin)(|(uid=*))' to modify the LDAP filter logic, potentially bypassing the password check entirely or enumerating LDAP directory entries. The InitialDirContext at line 97 is initialized with environment properties that include unsanitized user-supplied values, and any LDAP search filters built from the username are vulnerable to injection.
Changes
sql/hive-thriftserver/src/main/java/org/apache/hive/service/auth/LdapAuthenticationProviderImpl.javaVerification
Automated security fix by OrbisAI Security