CVE-2026-97633 — Apache Software Foundation Apache Knox
One of 6 Apache Software Foundation Apache Knox vulnerabilities published together by NVD: our article covers all of them.
ApacheWebIdentity & authVulnerabilitiesResearch article
Apache Knox Shiro LDAP realm LDAP injection (CVE-2026-97633) can authenticate users against the wrong directory entry
| CVE | CVE-2026-97633 |
|---|---|
| Vendor and product | Apache Software Foundation Apache Knox |
| Published | December 03, 2026 14:45 UTC |
| Research cut-off | December 03, 2026 14:40 UTC |
| Sources reviewed | 3: NVD record (last modified 2026-12-03); CISA KEV catalog; vendor advisory page (seclists.org) |
Executive summary
CVE-2026-97633 is an LDAP injection flaw (CWE-90) in the Shiro LDAP realm (KnoxLdapRealm) of Apache Knox, where the login username can change the directory query [1, 3]. The NVD record was received on 2026-12-03 and has no CVSS score or vector yet, so no NVD base score can be cited; a vendor advisory relay labels it critical, but that is not a CVSS rating [1, 3]. Apache Knox versions 0.5.0 through 2.1.0 are affected [1, 3]. An unauthenticated remote attacker can exploit it only when user search is configured through userSearchAttributeName or userSearchFilter, and the consequence is that Knox may authenticate the request against a directory entry other than the one the username names [1, 3]. CISA KEV did not list the CVE as of 2026-12-03, and exploitation in the wild is not established by the reviewed sources [2]. The most important immediate action is to identify Knox instances in the affected range that have user search configured, restrict their login exposure, and upgrade them to 2.1.1 or 3.0.0 [1, 3].
Key points
- CVE-2026-97633 is an LDAP injection flaw (CWE-90) in the Shiro LDAP realm of Apache Knox [1, 3].
- Apache Knox 0.5.0 through 2.1.0 is affected; the vendor-published fixed versions are 2.1.1 and 3.0.0 [1, 3].
- Exploitation requires user search configured via userSearchAttributeName or userSearchFilter and an unauthenticated login path [1, 3].
- The NVD record has no CVSS score yet; the advisory relay labels it critical, which is not a CVSS rating [1, 3].
- CISA KEV did not list the CVE as of 2026-12-03; exploitation in the wild is not established [2].
Vulnerability identification
| Field | Value |
|---|---|
| CVE ID | CVE-2026-97633 [1] |
| Vendor | Apache Software Foundation [1] |
| Product | Apache Knox [1] |
| Component | Shiro LDAP realm, referred to as KnoxLdapRealm [3] |
| Platform | Not stated by the reviewed sources |
| Published | 2026-12-03T12:18:09 [1] |
| Last modified | 2026-12-03T12:18:09 [1] |
| Record status | Received; the record has not been analyzed or scored [1] |
| CWE | CWE-90, Improper Neutralization of Special Elements used in an LDAP Query (LDAP Injection) [1] |
| CVSS base score | Not scored in the NVD record [1]. The advisory relay states a critical severity label, which is not a CVSS score [3] |
| Reporter | Credited as n0mi1k in the advisory relay [3] |
| Related identifiers | No related CVE, bug or patch IDs appear in the sources beyond the fixed versions 2.1.1 and 3.0.0 [1, 3] |
CWE-90 describes a weakness where input placed into an LDAP query is not neutralized, so characters with special meaning in LDAP filter syntax can change the query's logic [1]. The NVD reference list contains one mailing-list thread with no tags [1]. The advisory relay [3] is a copy of a vendor bulletin on a mailing-list site; the Apache Knox project's own advisory page is not in the reviewed pack.
Vulnerability description
The flaw affects the LDAP authentication path of the Shiro LDAP realm, the component in Apache Knox that checks login credentials against a directory service [1, 3]. The security property violated is the integrity of identity: the directory entry used to authenticate a request can differ from the entry named by the supplied username [1, 3].
What an attacker can cause: an unauthenticated remote attacker who submits a crafted login username can alter the LDAP filter logic, and Knox may then authenticate the request against another directory entry [1, 3]. The sources do not establish which resources or privileges that other entry grants inside Knox, because that depends on downstream authorization configuration.
Conditions that make the flaw matter: user search must be configured through userSearchAttributeName or userSearchFilter [1, 3]. Affected versions are 0.5.0 through 2.1.0 [1, 3].
Root cause analysis
Confirmed: the sources identify the root cause as improper neutralization of special elements within an LDAP query [1, 3].
Analyst assessment: the username is inserted into the search filter without escaping LDAP filter metacharacters, so the attacker-supplied text is interpreted as filter syntax rather than as a literal value. The control that should prevent this is escaping or parameterized construction of the filter before the directory query is sent. The sources do not show the affected code location, the fix commit or the exact filter construction.
Technical mechanics
Illustrative flow based on the confirmed root cause [1, 3]:
- A client submits a login request with a username and password to a Knox endpoint that uses the Shiro LDAP realm.
- With user search configured through userSearchAttributeName or userSearchFilter, the realm builds a directory search that includes the submitted username [1, 3].
- The username is not neutralized, so special LDAP filter characters alter the search logic [1, 3].
- The directory returns an entry that differs from the one the username identifies.
- Knox authenticates the request against that returned entry [1].
The control that should have stopped this at step 3 is neutralization of special LDAP characters before the filter is built (analyst assessment).
Attack surface and exploitation prerequisites
| Prerequisite | Status and source |
|---|---|
| Network access | Remote, per the advisory relay [3] |
| Authentication | None required, per the advisory relay [3] |
| User interaction | Not stated by the reviewed sources |
| Required configuration | User search configured through userSearchAttributeName or userSearchFilter [1, 3] |
| Affected versions | 0.5.0 through 2.1.0 [1, 3] |
| Attacker position | Must reach the login path that passes a username to the realm (analyst assessment) |
| Local or physical access | Not stated by the reviewed sources; not inferred |
No CVSS vector is published in the pack, so these prerequisites come from the record and the advisory relay, not from a scored attack vector [1, 3].
Affected products and versions
| Vendor | Product | Affected versions | Fixed versions | Condition | Source and confidence |
|---|---|---|---|---|---|
| Apache Software Foundation | Apache Knox, Shiro LDAP realm | 0.5.0 through 2.1.0 inclusive | 2.1.1 and 3.0.0 | User search configured via userSearchAttributeName or userSearchFilter | Vendor-published range in the CVE record [1]; same range in the advisory relay [3] |
The record offers two fixed versions without mapping each to a release branch [1]. Operators should compare each installed build against the inclusive range and upgrade to 2.1.1 or 3.0.0.
Exploitation and threat intelligence status
CISA KEV does not list CVE-2026-97633 as of 2026-12-03 [2]. The KEV catalog absence does not show that the flaw has not been exploited [2]. Exploitation in the wild is not established by the reviewed sources. The pack contains no public proof-of-concept reference and no threat actor or campaign attribution [1, 2, 3]. Every piece of evidence here is dated 2026-12-03, the day the record was published, so it has not been tested over time.
Detection and exposure assessment
The reviewed sources give no version-check command, log event or network signature. The steps below are analyst assessment derived from the confirmed affected range and preconditions [1, 3]:
- Inventory every Knox deployment and record its installed version from its deployment package or distribution.
- Flag deployments with a version from 0.5.0 through 2.1.0 [1, 3].
- For each flagged deployment, review its realm configuration for userSearchAttributeName or userSearchFilter. The sources do not name the configuration file, so use the file that defines the Shiro LDAP realm in that deployment.
- Treat a deployment that is both in range and has user search configured as meeting the documented preconditions. A version match alone is not proof of exploitability, and a deployment without user search does not meet the documented preconditions [1, 3].
- Confirm that the login endpoint is reachable only from intended networks, using the external reachability test in the environment's own tooling.
Remediation
Immediate mitigation (analyst assessment, since the sources give no supported workaround):
- Restrict network access to the Knox login endpoint to required clients. This reduces exposure because the advisory relay describes an unauthenticated remote path [3]. Verify by testing reachability from outside the intended network after the change.
- For deployments in range, review whether userSearchAttributeName or userSearchFilter is needed. Removing the condition the sources identify [1, 3] would prevent the flawed path, but this changes how users are looked up and may break authentication, so test it in a non-production environment first and confirm logins still succeed.
Permanent fix (vendor-published): upgrade each affected deployment to 2.1.1 on the 2.x line or to 3.0.0 [1, 3]. Verify the installed version after the upgrade. The sources do not state any post-upgrade configuration change, restart requirement or rollback procedure. Take a configuration backup before upgrading and plan rollback steps in the change record (analyst assessment).
Remediation checklist
- Inventory all Apache Knox deployments and record the installed version of each; flag those from 0.5.0 through 2.1.0 [1, 3].
- For each flagged deployment, check the Shiro LDAP realm configuration for userSearchAttributeName or userSearchFilter; deployments without either setting do not meet the documented preconditions [1, 3].
- Restrict network access to each in-scope Knox login endpoint to required clients and confirm from outside the intended network that it is no longer reachable [3].
- Where user search is not required, plan removal of userSearchAttributeName or userSearchFilter from the realm configuration, test authentication in a non-production environment, then apply it [1, 3].
- Upgrade each in-scope deployment to 2.1.1 on the 2.x line or to 3.0.0 [1, 3].
- After upgrading, confirm the installed version matches 2.1.1 or 3.0.0 and that LDAP logins succeed for known test accounts [1, 3].
- Review authentication logs for the affected deployments for logins where the authenticated directory entry does not match the submitted username; the sources give no specific log fields, so define the comparison in your log platform (analyst assessment) [1].
- Record the upgrade and configuration changes in the change record, with a backup taken before the change and a documented rollback path (analyst assessment).
Evidence gaps
- Not established by the reviewed sources: a CVSS base score, vector and scoring version, because the NVD record is not yet scored; this would be settled by the NVD analysis once published [1].
- Not established by the reviewed sources: the vendor's own advisory page; the only advisory content is a mailing-list relay, so the Apache Knox project's bulletin should be checked for the exact fixed-version mapping [3].
- Not established by the reviewed sources: which fixed release corresponds to which branch, and whether any 3.x release before 3.0.0 is affected; the vendor's release notes would settle this [1, 3].
- Not established by the reviewed sources: whether exploitation in the wild has occurred; threat reporting and incident data would be needed [2].
- Not established by the reviewed sources: indicators of compromise, log events or network signatures; a vendor detection guide or incident report would be needed [1, 3].
- Not established by the reviewed sources: the affected code location, the fix commit and the exact filter construction; the upstream patch diff would settle this [1, 3].
- Not established by the reviewed sources: the downstream access an attacker gains by authenticating as the other directory entry; the Knox authorization configuration of each deployment would be needed [1, 3].
- Not established by the reviewed sources: whether a default Knox configuration enables user search; the default configuration documentation would settle this [1, 3].
References
- CVE-2026-97633 record. NIST National Vulnerability Database (NVD), 2026-12-03. https://nvd.nist.gov/vuln/detail/CVE-2026-97633. Accessed 2026-12-03.
- Known Exploited Vulnerabilities Catalog. Cybersecurity and Infrastructure Security Agency (CISA), 2026-12-03. https://www.cisa.gov/known-exploited-vulnerabilities-catalog. Accessed 2026-12-03.
- Vendor bulletin page (seclists.org). seclists.org. https://seclists.org/oss-sec/2026/q4/995. Accessed 2026-12-03.
Summary
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.
Weakness
- CWE-90: Improper Neutralization of Special Elements used in an LDAP Query ('LDAP Injection')
Affected and fixed versions
| Product | Affected versions | Fixed in |
|---|---|---|
| Apache Software Foundation Apache Knox | ≥ 0.5.0, ≤ 2.1.0 | — |
References by type
Other references
Affected
- Apache Software Foundation Apache Knox
Frequently asked questions
What is CVE-2026-97633?
CVE-2026-97633 is an LDAP injection flaw (CWE-90) in the Shiro LDAP realm (KnoxLdapRealm) of Apache Knox, where the login username can change the directory query. The NVD record was received on 2026-12-03 and has no CVSS score or vector yet, so no NVD base score can be cited; a vendor advisory relay labels it critical, but that is not a CVSS rating. Apache Knox versions 0.5.0 through 2.1.0 are affected. Weakness type: Improper Neutralization of Special Elements used in an LDAP Query ('LDAP Injection') (CWE-90).
How severe is CVE-2026-97633?
CVE-2026-97633 has not been given a CVSS score yet.
Is CVE-2026-97633 being exploited?
Not as far as is known: CVE-2026-97633 is not in CISA's Known Exploited Vulnerabilities catalog as of December 3, 2026.
Which versions are affected by CVE-2026-97633?
Apache Software Foundation Apache Knox ≥ 0.5.0, ≤ 2.1.0.
How do I fix CVE-2026-97633?
Inventory all Apache Knox deployments and record the installed version of each; flag those from 0.5.0 through 2.1.0. For each flagged deployment, check the Shiro LDAP realm configuration for userSearchAttributeName or userSearchFilter; deployments without either setting do not meet the documented preconditions. Restrict network access to each in-scope Knox login endpoint to required clients and confirm from outside the intended network that it is no longer reachable.
Timeline & sources
- NVD: CVE-2026-97633 — Apache Software Foundation Apache Knox
- oss-security: CVE-2026-97633: Apache Knox: LDAP injection in KnoxLdapRealm user search filter
References
Related vulnerabilities & news
- CVE-2026-119026 — Apache Software Foundation Apache Camel
- Ubuntu Ships Log4j 2 Fixes for Three CVEs, Including a TLS Hostname Check Flaw in the Socket Appender
- Apache Shiro ActiveDirectoryRealm Flaw Allows Login With Empty Username (CVE-2026-137686)
- Ubuntu patches Apache::Session::Browseable so LDAP certificate checks are on by default
- Apache WSS4J Vulnerability Allows Replay Attacks in Certain Configurations