Katalog CVE

CVE-2026-90979

WysokieCVSS 7.3
Opublikowano: Zaktualizowano: Przetłumaczono: NVD NIST

Prawdopodobieństwo exploitacji (EPSS)

Niskie ryzyko
0.44%

Percentyl 36 - wyżej niż 36% wszystkich znanych CVE

Streszczenie

LDAPCache i LDAPBackingEngine wstawiają wartości %u, %dn i %fqdn do szablonów filtrów LDAP (userFilter, roleFilter) bez pełnego escapowania znaków wymaganych przez RFC 4515. Przed poprawką stosowano jedynie podwójne backslashowanie, co nie zabezpiecza znaków *, (, ) oraz NUL. Nazwa logowania zawierająca te znaki może zmienić strukturę filtra, np. zamieniając dopasowanie równościowe na wieloznaczne lub zamykając/otwierając klauzule filtra.

Ocena ryzyka

Podatność może prowadzić do dopasowania innego wpisu LDAP niż zamierzony, nadania nadmiernych uprawnień (role) lub zmiany konta, na które rozwiązuje się logowanie. Nie jest eksploatowalna przez wszystkie ścieżki — LDAPLoginModule i LDAPPubkeyLoginModule escapują nazwę logowania, ale GSSAPILdapLoginModule oraz LDAPBackingEngine (listRoles) przekazują ją bez escapowania.

Rekomendacja

Należy zastosować poprawkę producenta, która wprowadza pełne escapowanie znaków zgodne z RFC 4515 (*, (, ), NUL) w LDAPCache i LDAPBackingEngine. Do czasu wdrożenia poprawki zaleca się ograniczenie możliwości tworzenia nazw logowania zawierających te znaki oraz weryfikację szablonów filtrów userFilter i roleFilter.

Powiązane podatności

Oryginalny opis (angielski, źródło NVD)

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.

Dane podatności pochodzą z NVD (NIST) · CISA KEV · EPSS