# CVE-2026-90979: Apache Karaf: LDAP filter injection in JAAS LDAP login modules

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.3
- **CVSS:** 7.3 (v3.1, CNA) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Privileges required: None; User interaction: None; Scope: Unchanged; Confidentiality impact: Low; Integrity impact: Low; Availability impact: Low
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 0.71% (percentile 49, 2026-11-28)
- **CWE:** CWE-90
- **Published:** 2026-09-28T09:34:33.253Z
- **Modified:** 2026-10-08T19:20:23.823Z

## Who should check

- Anyone running Apache Software Foundation Apache Karaf \< 4.4.12

## 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:

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.

## Affected and fixed versions

- Apache Software Foundation Apache Karaf: \< 4.4.12 (cvelist)

## Mitigation

- Upgrade Apache Karaf to 4.4.12 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-90979. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-90979.md
Affected: Apache Software Foundation Apache Karaf < 4.4.12
Fixed in: Apache Software Foundation Apache Karaf 4.4.12

Steps:
1. Search this machine and project for Apache Software Foundation Apache Karaf: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-90979 being exploited?

There is no confirmed exploitation: CVE-2026-90979 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.71% chance of exploitation in the next 30 days (as of 2026-11-28).

### How serious is CVE-2026-90979?

High: CVSS 7.3 (v3.1, scored by CNA). Remote, no login needed.

### Which versions are affected by CVE-2026-90979?

Apache Software Foundation Apache Karaf \< 4.4.12.

### Is there a fix for CVE-2026-90979?

Yes. Fixed in Apache Software Foundation Apache Karaf 4.4.12. Upgrade Apache Karaf to 4.4.12 or later.

### How do I check if I'm affected by CVE-2026-90979?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://karaf.apache.org/security/cve-2026-90979.txt>
- other: <http://www.openwall.com/lists/oss-security/2026/09/28/2>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-90979>

HTML: <https://flawdb.com/CVE-2026-90979> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-90979>
