{"api_version":"1","generated_at":"2026-09-30T21:46:42+00:00","cve":"CVE-2026-90979","urls":{"html":"https://cve.report/CVE-2026-90979","api":"https://cve.report/api/cve/CVE-2026-90979.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2026-90979","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-90979"},"summary":{"title":"Apache Karaf: LDAP filter injection in JAAS LDAP login modules","description":"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:\n\nfilter = filter.replaceAll(Pattern.quote(\"%u\"), Matcher.quoteReplacement(user));\n\nfilter = filter.replace(\"\\\\\", \"\\\\\\\\\");\n\n\n\n\nThis 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.\n\n\n\n\nIt'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:\n\n  *  GSSAPILdapLoginModule passes the NameCallback name straight through, unescaped.\n  *  LDAPBackingEngine (listRoles) passes principal.getName() straight through, unescaped.","state":"PUBLISHED","assigner":"apache","published_at":"2026-09-28 10:16:45","updated_at":"2026-09-30 20:17:36"},"problem_types":["CWE-90","CWE-90 CWE-90 Improper neutralization of special elements used in an LDAP query ('LDAP injection')"],"metrics":[{"version":"3.1","source":"ADP","type":"DECLARED","score":"7.3","severity":"HIGH","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L","data":{"attackComplexity":"LOW","attackVector":"NETWORK","availabilityImpact":"LOW","baseScore":7.3,"baseSeverity":"HIGH","confidentialityImpact":"LOW","integrityImpact":"LOW","privilegesRequired":"NONE","scope":"UNCHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L","version":"3.1"}},{"version":"3.1","source":"134c704f-9b21-4f2e-91b3-4a467353bcc0","type":"Secondary","score":"7.3","severity":"HIGH","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L","data":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L","baseScore":7.3,"baseSeverity":"HIGH","attackVector":"NETWORK","attackComplexity":"LOW","privilegesRequired":"NONE","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"LOW","integrityImpact":"LOW","availabilityImpact":"LOW"}}],"references":[{"url":"https://karaf.apache.org/security/cve-2026-90979.txt","name":"https://karaf.apache.org/security/cve-2026-90979.txt","refsource":"security@apache.org","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"http://www.openwall.com/lists/oss-security/2026/09/28/2","name":"http://www.openwall.com/lists/oss-security/2026/09/28/2","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-90979","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-90979","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[{"source":"CNA","vendor":"Apache Software Foundation","product":"Apache Karaf","version":"affected 4.4.12 semver","platforms":[]}],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[{"source":"CNA","value":"Gjoko Krstic <gjoko@zeroscience.mk>","lang":"en"}],"nvd_cpes":[],"vendor_comments":[],"enrichments":{"kev":null,"epss":{"cve_year":"2026","cve_id":"90979","cve":"CVE-2026-90979","epss":"0.002460000","percentile":"0.142010000","score_date":"2026-09-29","updated_at":"2026-09-30 00:11:21"},"legacy_qids":[]},"source_records":{"cve_program":{"containers":{"adp":[{"providerMetadata":{"dateUpdated":"2026-09-28T13:10:12.005Z","orgId":"af854a3a-2127-422b-91ae-364da2661108","shortName":"CVE"},"references":[{"url":"http://www.openwall.com/lists/oss-security/2026/09/28/2"}],"title":"CVE Program Container"},{"metrics":[{"cvssV3_1":{"attackComplexity":"LOW","attackVector":"NETWORK","availabilityImpact":"LOW","baseScore":7.3,"baseSeverity":"HIGH","confidentialityImpact":"LOW","integrityImpact":"LOW","privilegesRequired":"NONE","scope":"UNCHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L","version":"3.1"}},{"other":{"content":{"id":"CVE-2026-90979","options":[{"Exploitation":"none"},{"Automatable":"yes"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","timestamp":"2026-09-30T19:53:53.546419Z","version":"2.0.3"},"type":"ssvc"}}],"providerMetadata":{"dateUpdated":"2026-09-30T19:53:57.685Z","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","shortName":"CISA-ADP"},"title":"CISA ADP Vulnrichment"}],"cna":{"affected":[{"defaultStatus":"unaffected","packageName":"org.apache.karaf.jaas.modules.ldap","product":"Apache Karaf","vendor":"Apache Software Foundation","versions":[{"lessThan":"4.4.12","status":"affected","version":"0","versionType":"semver"}]}],"credits":[{"lang":"en","type":"reporter","value":"Gjoko Krstic <gjoko@zeroscience.mk>"}],"descriptions":[{"lang":"en","supportingMedia":[{"base64":false,"type":"text/html","value":"<p><span>LDAPCache</span>&nbsp;and&nbsp;<code>LDAPBackingEngine</code>&nbsp;build LDAP search filters for user lookup and role lookup by textually substituting the placeholders&nbsp;<code>%u</code>,&nbsp;<code>%dn</code>, and&nbsp;<code>%fqdn</code>&nbsp;(drawn from the login name, the resolved user DN, and its fully qualified namespace form) into administrator-configured filter templates (<code>userFilter</code>,&nbsp;<code>roleFilter</code>). Before the fix, the only sanitization applied to the substituted value was double backslashed:</p><div><code>filter = filter.replaceAll(Pattern.quote(\"%u\"), Matcher.quoteReplacement(user));</code></div><div><code>filter = filter.replace(\"\\\\\", \"\\\\\\\\\");</code></div><div><br></div><div>This does not escape the other characters RFC 4515 requires escaping in an LDAP search filter:&nbsp;<code>*</code>,&nbsp;<code>(</code>,&nbsp;<code>)</code>, and&nbsp;<code>NUL</code>. 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.</div><div><br></div><div>It's not exploitable through every entry points:&nbsp;<code>LDAPLoginModule</code>&nbsp;and&nbsp;<code>LDAPPubkeyLoginModule</code>&nbsp;both called&nbsp;<code>Util.doRFC2254Encoding()</code>&nbsp;(correct RFC 4515 escaping) on the login name before handing it to&nbsp;<code>LDAPCache</code>, which masked the missing escaping in&nbsp;<code>LDAPCache</code>&nbsp;for those two call paths. Using&nbsp;<code>LDAPCache</code>&nbsp;directly (bypassing the login modules) does not reproduce through the normal&nbsp;<code>LDAPLoginModule</code>/<code>LDAPPubkeyLoginModule</code>&nbsp;authentication flow for this reason. It does reproduce through two other call paths that reach&nbsp;<code>LDAPCache</code>/<code>LDAPBackingEngine</code>&nbsp;without any prior escaping:</div><div><ul><li><code>GSSAPILdapLoginModule</code>&nbsp;passes the&nbsp;<code>NameCallback</code>&nbsp;name straight through, unescaped.</li><li><code>LDAPBackingEngine</code>&nbsp;(<code>listRoles</code>) passes&nbsp;<code>principal.getName()</code>&nbsp;straight through, unescaped.</li></ul><div><br></div></div>"}],"value":"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:\n\nfilter = filter.replaceAll(Pattern.quote(\"%u\"), Matcher.quoteReplacement(user));\n\nfilter = filter.replace(\"\\\\\", \"\\\\\\\\\");\n\n\n\n\nThis 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.\n\n\n\n\nIt'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:\n\n  *  GSSAPILdapLoginModule passes the NameCallback name straight through, unescaped.\n  *  LDAPBackingEngine (listRoles) passes principal.getName() straight through, unescaped."}],"metrics":[{"other":{"content":{"text":"moderate"},"type":"Textual description of severity"},"scenarios":[{"lang":"en","value":"GENERAL"}]}],"problemTypes":[{"descriptions":[{"cweId":"CWE-90","description":"CWE-90 Improper neutralization of special elements used in an LDAP query ('LDAP injection')","lang":"en","type":"CWE"}]}],"providerMetadata":{"dateUpdated":"2026-09-28T09:34:33.253Z","orgId":"f0158376-9dc2-43b6-827c-5f631a4d8d09","shortName":"apache"},"references":[{"tags":["vendor-advisory"],"url":"https://karaf.apache.org/security/cve-2026-90979.txt"}],"source":{"advisory":"https://karaf.apache.org/security/cve-2026-90979.txt","defect":["https://github.com/apache/karaf/pull/2880"],"discovery":"EXTERNAL"},"title":"Apache Karaf: LDAP filter injection in JAAS LDAP login modules","x_generator":{"engine":"Vulnogram 1.0.3"}}},"cveMetadata":{"assignerOrgId":"f0158376-9dc2-43b6-827c-5f631a4d8d09","assignerShortName":"apache","cveId":"CVE-2026-90979","datePublished":"2026-09-28T09:34:33.253Z","dateReserved":"2026-09-14T13:42:44.229Z","dateUpdated":"2026-09-30T19:53:57.685Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.2"},"nvd":{"publishedDate":"2026-09-28 10:16:45","lastModifiedDate":"2026-09-30 20:17:36","problem_types":["CWE-90","CWE-90 CWE-90 Improper neutralization of special elements used in an LDAP query ('LDAP injection')"],"metrics":{"cvssMetricV31":[{"source":"134c704f-9b21-4f2e-91b3-4a467353bcc0","type":"Secondary","cvssData":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L","baseScore":7.3,"baseSeverity":"HIGH","attackVector":"NETWORK","attackComplexity":"LOW","privilegesRequired":"NONE","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"LOW","integrityImpact":"LOW","availabilityImpact":"LOW"},"exploitabilityScore":3.9,"impactScore":3.4}],"ssvcV203":[{"source":"134c704f-9b21-4f2e-91b3-4a467353bcc0","ssvcData":{"timestamp":"2026-09-30T19:53:53.546419Z","id":"CVE-2026-90979","options":[{"exploitation":"none"},{"automatable":"yes"},{"technicalImpact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}]},"configurations":[]},"legacy_mitre":{"record":{"CveYear":"2026","CveId":"90979","Ordinal":"1","Title":"Apache Karaf: LDAP filter injection in JAAS LDAP login modules","CVE":"CVE-2026-90979","Year":"2026"},"notes":[{"CveYear":"2026","CveId":"90979","Ordinal":"1","NoteData":"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:\n\nfilter = filter.replaceAll(Pattern.quote(\"%u\"), Matcher.quoteReplacement(user));\n\nfilter = filter.replace(\"\\\\\", \"\\\\\\\\\");\n\n\n\n\nThis 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.\n\n\n\n\nIt'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:\n\n  *  GSSAPILdapLoginModule passes the NameCallback name straight through, unescaped.\n  *  LDAPBackingEngine (listRoles) passes principal.getName() straight through, unescaped.","Type":"Description","Title":"Apache Karaf: LDAP filter injection in JAAS LDAP login modules"}]}}}