CVE-2026-97633: Apache Knox: LDAP injection in KnoxLdapRealm user search filter
Improper neutralization of special elements in an LDAP query in the Apache Knox Shiro LDAP realm (KnoxLdapRealm) allows an unauthenticated attacker to inject LDAP filter syntax through the login username when user search (userSearchAttributeName or userSearchFilter) is configured. As a result, Knox may authenticate the request against a different directory entry than the username identifies. This issue affects Apache Knox from 0.5.0 through 2.1.0. Users are recommended to upgrade to version 2.1.1 or 3.0.0, which fix the issue.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 2.1.1 - Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 3.0.0
Event History
Frequently Asked Questions
Which deployments are exposed to this issue?
Apache Knox versions 0.5.0 through 2.1.0 are affected when the Shiro LDAP realm uses user search configuration, specifically userSearchAttributeName or userSearchFilter. Deployments without either of those user-search settings configured are not identified as affected by the provided information.
What does an attacker need to exploit it?
An attacker does not need to be authenticated. They need to submit a login username containing LDAP filter syntax to a vulnerable Knox deployment with LDAP user search configured.
What is the security impact of a successful attack?
Injected LDAP filter syntax can cause Knox to authenticate the request against a different directory entry than the entry identified by the supplied username. The provided information does not specify what credentials or additional conditions may be required to complete authentication as that entry.
What should we do if our deployment is affected?
Upgrade Apache Knox to version 2.1.1 or 3.0.0, which fix the issue. The provided information does not identify a configuration-only mitigation for deployments that require LDAP user search.