Skip to content

fix: the hive thrift server's ldap authentication pr... in...#55700

Draft
orbisai0security wants to merge 1 commit intoapache:masterfrom
orbisai0security:fix-ldap-injection-v-001
Draft

fix: the hive thrift server's ldap authentication pr... in...#55700
orbisai0security wants to merge 1 commit intoapache:masterfrom
orbisai0security:fix-ldap-injection-v-001

Conversation

@orbisai0security
Copy link
Copy Markdown

Summary

Fix critical severity security issue in sql/hive-thriftserver/src/main/java/org/apache/hive/service/auth/LdapAuthenticationProviderImpl.java.

Vulnerability

Field Value
ID V-001
Severity CRITICAL
Scanner multi_agent_ai
Rule V-001
File sql/hive-thriftserver/src/main/java/org/apache/hive/service/auth/LdapAuthenticationProviderImpl.java:97

Description: 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.java

Verification

  • Build passes
  • Scanner re-scan confirms fix
  • LLM code review passed

Automated security fix by OrbisAI Security

Automated security fix generated by Orbis Security AI
@dongjoon-hyun dongjoon-hyun marked this pull request as draft May 6, 2026 13:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant