CVE-2026-90979
LDAPCache y LDAPBackingEngine construyen filtros de búsqueda LDAP para la búsqueda de usuarios y de roles sustituyendo textualmente los marcadores %u, %dn y %fqdn (obtenidos del nombre de inicio de sesión, del DN de usuario resuelto y de su forma de espacio de nombres completo) en plantillas de filtro configuradas por el administrador (userFilter, roleFilter). Antes de la corrección, el único saneamiento aplicado al valor sustituido era la duplicación de las barras invertidas:
Esto no escapa los demás caracteres que RFC 4515 exige escapar en un filtro de búsqueda LDAP: *, (, ) y NUL.
Leer descripción completaMostrar menos
Un nombre de inicio de sesión que contenga cualquiera de ellos puede cambiar la estructura del filtro resultante en lugar de compararse como valor literal (p. ej., un nombre de usuario manipulado puede convertir una coincidencia de igualdad en una coincidencia con comodín, o cerrar/reabrir cláusulas del filtro), ampliando lo que devuelve la búsqueda y pudiendo provocar que una búsqueda de inicio de sesión o de roles coincida con una entrada LDAP distinta de la prevista, se concedan roles en exceso y, dependiendo de las plantillas de filtro específicas de cada despliegue, se vea afectada la cuenta a la que se resuelve un inicio de sesión.
No es explotable a través de todos los puntos de entrada: LDAPLoginModule y LDAPPubkeyLoginModule llamaban ambos a Util.doRFC2254Encoding() (escapado correcto según RFC 4515) sobre el nombre de inicio de sesión antes de pasarlo a LDAPCache, lo que enmascaraba la falta de escapado en LDAPCache para esas dos rutas de llamada. Por este motivo, el uso directo de LDAPCache (omitiendo los módulos de inicio de sesión) no se reproduce a través del flujo de autenticación normal de LDAPLoginModule/LDAPPubkeyLoginModule. Sí se reproduce a través de otras dos rutas de llamada que llegan a LDAPCache/LDAPBackingEngine sin ningún escapado previo:
Detalles técnicos trazas, registros y código del informe original
filter = filter.replaceAll(Pattern.quote("%u"), Matcher.quoteReplacement(user));
filter = filter.replace("\\", "\\\\");
* GSSAPILdapLoginModule pasa el nombre de NameCallback directamente, sin escapar.
* LDAPBackingEngine (listRoles) pasa principal.getName() directamente, sin escapar.Traducción automática del texto original de NVD (en inglés).
Cronología
Elaborada con nuestros propios datos: NVD, CISA KEV y otros catálogos de explotación, FIRST EPSS, exploits públicos, prensa especializada y la cobertura de Orbitaley.
- Registro CVE publicado en NVD
- Última modificación del registro en NVD
Técnicas ATT&CK
Cómo se explota esta vulnerabilidad y qué consigue el atacante, en el lenguaje de MITRE ATT&CK.
- Explotación
T1190Exploit Public-Facing Applicationinitial access85 % - Impacto principal
T1078.001Default Accountsstealth · persistence · privilege escalation · initial access80 % - Impacto secundario
T1098.001Additional Cloud Credentialspersistence · privilege escalation75 %
Explotación remota sin privilegios (AV:N/PR:N) de inyección LDAP en Apache Guacamole mediante usernames malformados que alteran filtros de búsqueda, permitiendo autenticación sin credenciales válidas o escalada de roles.
Inferido por nuestro agente de análisis a partir de la descripción oficial, el vector CVSS y la CWE, y comprobado por un supervisor. Puede contener errores.
Mitigaciones ATT&CK que cubren estas técnicas
Tecnologías afectadas (1)
Registro NVD
- Estado en NVD
- Analizada
- Publicada
- 28 sept 2026
- Última modificación
- 8 oct 2026
- Vector CVSS
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L
- Debilidad (CWE)
- CWE-90
Referencias
- Aviso del fabricantekaraf.apache.org/security/cve-2026-90979.txt
- Aviso de tercerosopenwall.com/lists/oss-security/2026/09/28/2
JSON original (NVD)
Mostrar
{
"id": "CVE-2026-90979",
"cveTags": [],
"metrics": {
"ssvcV203": [
{
"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
"ssvcData": {
"id": "CVE-2026-90979",
"role": "CISA Coordinator",
"options": [
{
"exploitation": "none"
},
{
"automatable": "yes"
},
{
"technicalImpact": "partial"
}
],
"version": "2.0.3",
"timestamp": "2026-09-30T19:53:53.546419Z"
}
}
],
"cvssMetricV31": [
{
"type": "Secondary",
"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
"cvssData": {
"scope": "UNCHANGED",
"version": "3.1",
"baseScore": 7.3,
"attackVector": "NETWORK",
"baseSeverity": "HIGH",
"vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L",
"integrityImpact": "LOW",
"userInteraction": "NONE",
"attackComplexity": "LOW",
"availabilityImpact": "LOW",
"privilegesRequired": "NONE",
"confidentialityImpact": "LOW"
},
"impactScore": 3.4,
"exploitabilityScore": 3.9
}
]
},
"affected": [
{
"source": "security@apache.org",
"affectedData": [
{
"vendor": "Apache Software Foundation",
"product": "Apache Karaf",
"versions": [
{
"status": "affected",
"version": "0",
"lessThan": "4.4.12",
"versionType": "semver"
}
],
"packageName": "org.apache.karaf.jaas.modules.ldap",
"defaultStatus": "unaffected"
}
]
}
],
"published": "2026-09-28T10:16:45.990",
"references": [
{
"url": "https://karaf.apache.org/security/cve-2026-90979.txt",
"tags": [
"Vendor Advisory"
],
"source": "security@apache.org"
},
{
"url": "http://www.openwall.com/lists/oss-security/2026/09/28/2",
"tags": [
"Mailing List",
"Third Party Advisory"
],
"source": "af854a3a-2127-422b-91ae-364da2661108"
}
],
"vulnStatus": "Analyzed",
"weaknesses": [
{
"type": "Secondary",
"source": "security@apache.org",
"description": [
{
"lang": "en",
"value": "CWE-90"
}
]
}
],
"descriptions": [
{
"lang": "en",
"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."
}
],
"lastModified": "2026-10-08T19:20:23.823",
"configurations": [
{
"nodes": [
{
"negate": false,
"cpeMatch": [
{
"criteria": "cpe:2.3:a:apache:karaf:*:*:*:*:*:*:*:*",
"vulnerable": true,
"matchCriteriaId": "532915B7-A52C-450A-A6BF-0FAE4B4144CD",
"versionEndExcluding": "4.4.12"
}
],
"operator": "OR"
}
]
}
],
"sourceIdentifier": "security@apache.org"
}