CVE-2026-90979
Beskrivelse
LDAPCache and LDAPBackingEngine build LDAP search filters for user lookup and role lookup by textually substituting the placeholders %u, %dn, and %fqdn (drawn from the login name, the resolved user DN, and its fully qualified namespace form) into administrator-configured filter templates (userFilter, roleFilter). Before the fix, the only sanitization applied to the substituted value was double backslashed: filter = filter.replaceAll(Pattern.quote("%u"), Matcher.quoteReplacement(user)); filter = filter.replace("\\", "\\\\"); This does not escape the other characters RFC 4515 requires escaping in an LDAP search filter: *, (, ), and NUL. A login name containing any of these can change the structure of the resulting filter rather than being matched as a literal value (e.g. a crafted username can turn an equality match into a wildcard match, or close/reopen filter clauses), widening what the search returns and potentially causing a login or role lookup to match an LDAP entry other than the intended one, over-granting roles, and depending on deployment-specific filter templates, potentially affecting which account a login resolved to. It's not exploitable through every entry points: LDAPLoginModule and LDAPPubkeyLoginModule both called Util.doRFC2254Encoding() (correct RFC 4515 escaping) on the login name before handing it to LDAPCache, which masked the missing escaping in LDAPCache for those two call paths. Using LDAPCache directly (bypassing the login modules) does not reproduce through the normal LDAPLoginModule/LDAPPubkeyLoginModule authentication flow for this reason. It does reproduce through two other call paths that reach LDAPCache/LDAPBackingEngine without any prior escaping: * GSSAPILdapLoginModule passes the NameCallback name straight through, unescaped. * LDAPBackingEngine (listRoles) passes principal.getName() straight through, unescaped.
Beskrivelsen gjengis slik kilden har publisert den, på engelsk.
Nøkkelfakta
- Publisert
- 2026-09-28
- Sist endret
- 2026-10-08
- Tildelt av
- security@apache.org
- CVSS-vektor
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L- Scoret av
- 134c704f-9b21-4f2e-91b3-4a467353bcc0
- Rettelse finnes
- Ikke registrert hos kildene
Berørte produkter
| Leverandør | Produkt | Versjoner | Status |
|---|---|---|---|
| Apache | Karaf | < 4.4.12 | Berørt |
Svakhetstype
-
CWE-90: Improper Neutralization of Special Elements used in an LDAP Query
The product constructs all or part of an LDAP query using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended LDA…
Referanser
- https://karaf.apache.org/security/cve-2026-90979.txt
- http://www.openwall.com/lists/oss-security/2026/09/28/2
Relatert hos Berigo
Artikler
-
Hullet i proxymodulen foran Oracle WebLogic utnyttes nå
Samme produkt
2026-08-25
CISA førte 24. august sårbarheten CVE-2026-21962 opp i katalogen over kjente utnyttede sårbarheter, etter bevis for aktiv utnyttelse. Feilen ligger i…
-
Kryptobiblioteket i Python har fått algoritmene som skal tåle kvantemaskiner
Samme produkt
2026-08-18
Trail of Bits har lagt ML-KEM og ML-DSA inn i pyca/cryptography, finansiert av Sovereign Tech Agency. Biblioteket er den ellevte mest nedlastede pakk…
-
Unit 42: kinesiskspråklig aktør kjørte autonome angrep med KI-agent
Samme produkt
2026-07-31
Unit 42 offentliggjorde 30. juli 2026 en kampanje der en kinesiskspråklig aktør lot en KI-agent lete opp mål, hente angrepskode og forsøke å utnytte …
-
KI-agent valgte mål og byttet sårbarhet på egen hånd i kinesisk kampanje
Samme produkt
2026-07-31
Unit 42 beskriver en kinesisktalende aktør som koblet språkmodellen DeepSeek til agentrammeverket Hermes Agent, og lot oppsettet finne mål, hente utn…
Berører dette dere?
En sårbarhet betyr bare noe hvis dere kjører produktet, i en berørt versjon, et sted en angriper kommer til.