Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessCraft login name with LDAP metacharacters
-
DeliverySubmit via GSSAPI login or role-listing path
-
ExploitUnescaped %u alters search filter structure
-
ExecutionFilter matches unintended directory entry
-
ImpactOver-grant roles / resolve wrong account
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization LDAP query parameterization
MITRE ATT&CK
1 technique across 1 tactic: Initial Access The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires that the Karaf instance route the login name to LDAPCache/LDAPBackingEngine WITHOUT prior RFC 4515 escaping - specifically either (a) the GSSAPILdapLoginModule is configured (Kerberos/SPNEGO authentication), which passes the NameCallback name straight through unescaped, or (b) the LDAPBackingEngine.listRoles path is reached, which passes principal.getName() unescaped. It is NOT exploitable through the default LDAPLoginModule or LDAPPubkeyLoginModule flows, because both call Util.doRFC2254Encoding() on the login name first, masking the missing escaping. Actual impact (which entry matches, whether roles are over-granted, whether a login resolves to a different account) further depends on the administrator-configured userFilter/roleFilter templates. Affected versions are Apache Karaf before 4.4.12. |
| Impact | This is a genuine but moderate-priority issue, not an inflated high-CVSS score. The vendor CVSS 3.1 vector (AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L = 7.3) reflects network reach with low complexity and no required privileges, but the low impact subscores (C:L/I:L/A:L) correctly capture that this is an LDAP filter injection (CWE-90) that widens/redirects directory lookups rather than yielding direct code execution or full data disclosure. Corroborating signals are consistent and unalarming: EPSS is 0.25% (14th percentile), there is no CISA KEV listing, and no public exploit code is referenced - so this is 'no public exploit identified at time of analysis.' A key nuance from the description tempers the PR:N/AC:L reading: the vulnerability is NOT reachable through the default LDAPLoginModule/LDAPPubkeyLoginModule paths because those apply Util.doRFC2254Encoding() escaping first; it only reproduces via GSSAPILdapLoginModule (Kerberos/SPNEGO) or via LDAPBackingEngine.listRoles, both of which require specific deployment configurations. So the raw CVSS overstates real-world reachability for typical Karaf deployments that use the standard LDAP login modules. Net: a real bug worth patching on the normal cycle, but not an emergency absent a GSSAPI-based LDAP setup. |
| Exploit ScenarioDerived | In a Karaf deployment configured with GSSAPILdapLoginModule, an attacker submits a login name containing RFC 4515 metacharacters (e.g. '*', '(', ')') that pass unescaped into the administrator-configured userFilter/roleFilter template. The injected characters turn an equality match into a wildcard or close/reopen a filter clause, causing the LDAP search to match an unintended directory entry and over-grant roles or resolve to a different account. No public proof-of-concept is referenced, and exploitability depends on the specific filter templates and login module in use. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv2 – Sep 30, 2026
LDAP filter injection in Apache Karaf before 4.4.12 allows a crafted login name to alter the structure of LDAP search filters built by LDAPCache and LDAPBackingEngine, potentially matching an unintended directory entry, over-granting roles, or changing which account a login resolves to. The unescaped value only reaches the filter through two call paths - the GSSAPILdapLoginModule (Kerberos/SPNEGO), which passes the NameCallback name through unescaped, and the LDAPBackingEngine.listRoles path, which passes principal.getName() unescaped - because the default LDAPLoginModule and LDAPPubkeyLoginModule both pre-escape the login name via Util.doRFC2254Encoding(). The issue is remote and unauthenticated per the assessed vector (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L, score 7.3), but real-world impact is bounded by the administrator-configured userFilter/roleFilter templates; there is no confirmed active exploitation (not in CISA KEV), no public exploit code identified at time of analysis, and EPSS is low at 0.25% (14th percentile). A vendor patch is available in Apache Karaf 4.4.12.
Earlier versions of this analysis (1)
LDAP search-filter injection in Apache Karaf lets a crafted login name alter the structure of the filter built for user and role lookups, potentially matching an unintended directory entry, over-granting roles, or changing which account a login resolves to. The flaw is reachable only on deployments using the GSSAPILdapLoginModule (Kerberos/GSSAPI), which passes the NameCallback name through unescaped, or any code path that invokes LDAPBackingEngine.listRoles(), which passes principal.getName() unescaped; the standard LDAPLoginModule and LDAPPubkeyLoginModule pre-escape the name with Util.doRFC2254Encoding() and are not affected. The assessed vector (CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N) indicates unauthenticated network reachability with high attack complexity and limited confidentiality and integrity impact, and the practical outcome depends heavily on the administrator-configured userFilter and roleFilter templates. The issue is not confirmed actively exploited (no CISA KEV listing) and no public exploit identified at time of analysis.
RemediationAI
Upgrade to Apache Karaf 4.4.12 or later, which is the vendor-released fix for the missing RFC 4515 escaping in LDAPCache and LDAPBackingEngine (advisory: https://karaf.apache.org/security/cve-2026-90979.txt; also mirrored at https://seclists.org/oss-sec/2026/q3/961). Because the vulnerable paths are narrow, compensating controls are practical where immediate upgrade is not possible: disable GSSAPILdapLoginModule and fall back to LDAPLoginModule/LDAPPubkeyLoginModule, which perform Util.doRFC2254Encoding() on the login name and therefore mask the bug - the trade-off is loss of Kerberos/SPNEGO single sign-on for Karaf logins; alternatively, restrict network access to the GSSAPILdapLoginModule-authenticated endpoints so untrusted principals cannot reach the NameCallback path. For the LDAPBackingEngine.listRoles vector, avoid invoking role-lookup code paths with externally controlled principal names, and constrain which principals can trigger listRoles. Harden the LDAP bind account's privileges in the directory so that overly broad search filters return as little as possible, and validate/reject login names containing the RFC 4515 metacharacters *, (, ), and NUL at the ingress layer - this is a defense-in-depth measure only, since it does not fix DN or fqdn substitution and may break legitimate usernames. Note that the actual blast radius depends on the configured userFilter and roleFilter templates, so audit those templates for wildcard-style matching that would amplify a modified filter. No vendor patch version other than 4.4.12 should be assumed; do not treat absence of a backport for older branches as confirmation that none exists - verify against the Karaf advisory.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
The root cause is CWE-90 (LDAP Injection), specifically a failure to apply RFC 4515 escaping to values substituted into LDAP search filter templates. LDAPCache and LDAPBackingEngine construct filters by textually replacing the placeholders %u, %dn, and %fqdn (login name, resolved user DN, and its fully qualified namespace form) inside administrator-supplied userFilter and roleFilter templates. Prior to the fix, the only sanitization was a backslash-doubling step - filter.replace("\\", "\\\\") after Matcher.quoteReplacement(user) - which escapes the backslash character but leaves the other RFC 4515 metacharacters (*, (, ), and NUL) unescaped. Those characters allow a login name to restructure the resulting filter: an asterisk converts an equality match into a wildcard match, while parentheses let an attacker close and reopen filter clauses. The escaping gap was masked in the default authentication flow because LDAPLoginModule and LDAPPubkeyLoginModule call Util.doRFC2254Encoding() on the login name before handing it to LDAPCache, which is the correct RFC 4515 escaping. The two exposed entry points are GSSAPILdapLoginModule, which forwards the NameCallback name unescaped, and LDAPBackingEngine.listRoles, which forwards principal.getName() unescaped. The CPE identifier cpe:2.3:a:apache_software_foundation:apache_karaf:*:*:*:*:*:*:*:* with EUVD-listed affected range 'Apache Karaf 0 <4.4.12' confirms this is a core Karaf LDAP JAAS realm component, meaning exploitation requires an LDAP-backed authentication configuration rather than any Karaf deployment generically.
Know when LDAP gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L
Network-reachable via unescaped login name with no prior auth on the GSSAPI path (PR:N, AC:L); impact limited to filter widening/role over-grant so C/I/A each Low.
Primary rating from Vendor (apache).
CVSS VectorVendor: apache
Lifecycle Timeline
3DescriptionCVE.org
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.
Executive ViewAI
Apache Karaf deployments that use LDAP for authentication and authorization face a high-severity flaw that could let an unauthenticated remote attacker manipulate login resolution and role assignment, potentially granting unauthorized access to applications or administrative functions. No public exploit identified at time of analysis, and a vendor-released patch is available. Leadership should prioritize remediation because successful exploitation could undermine access controls and lead to data or system compromise, particularly in environments using Kerberos/SPNEGO or custom LDAP role mapping.
Apply vendor patch.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Authentication bypass attacks exploit flaws in the verification mechanisms that control access to systems and applications.
Code injection occurs when an application accepts user input and passes it directly into a language interpreter or evaluator without proper sanitization.
The remoting module in Jenkins before 2.32 and LTS before 2.19.3 allows remote attackers to execute arbitrary code via a
In Joomla!. Rated critical severity (CVSS 9.8), this vulnerability is remotely exploitable, no authentication required,
An issue was discovered on Accellion FTA devices before FTA_9_12_180. Rated critical severity (CVSS 9.8), this vulnerabi
An authenticated GitLab user can seize control of an existing LDAP-backed account on instances that have both OmniAuth S
LDAP injection in Central Dogma's Apache Shiro-based authentication module exposes unauthenticated remote attackers to a
Mastodon is a free, open-source social network server based on ActivityPub Mastodon allows configuration of LDAP for aut
Dolibarr 11.0.3 contains a persistent cross-site scripting vulnerability in LDAP synchronization settings that allows at
A reflected cross-site scripting (xss) vulnerability exists in the ldapUser functionality of MedDream PACS Premium 7.3.6
LDAP injection in IBM API Connect (10.0.8.0 through 10.0.8.12 and 12.1.0.0 through 12.1.1.2) lets a remote attacker who
Authentication bypass in Apache Druid versions 0.17.0 through 35.x. Affects all versions prior to 36.0.0 when specific p
Arbitrary certificate disclosure in Apache CXF's XKMS server lets remote attackers abuse an LDAP injection flaw (CWE-90)
An issue was discovered in linqi before 1.4.0.1 on Windows. Rated critical severity (CVSS 9.8), this vulnerability is re
EUVD-2026-88197
GHSA-932c-qw9f-cpcq
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB