8.8high
Apache Shiro: LDAP DN Injection in DefaultLdapRealm
- Severity
- 8.8high CVSS:4.0 by apache
- Exploit likelihood
- 0.51% (higher than 45% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- apache
- Also known as
- GHSA-x96m-rh44-vgv8
Description
A remote attacker can inject LDAP special characters into the Distinguished Name (DN) construction in DefaultLdapRealm class. User-supplied username input is directly concatenated into the LDAP DN template without any escaping of RFC 2253 special characters. This allows an attacker to manipulate the DN structure used for LDAP bind authentication, potentially bypassing authentication or impersonating other users. This issue affects all Apache Shiro versions through 2.2.0, and 3.0.0-alpha-1 when using DefaultLdapRealm Upgrade to Apache Shiro 2.2.1 or 3.0.0-alpha-2 or later, which fixes the issue.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| org.apache.shiro:shiro-core | up to 2.2.0, from 3.0.0-alpha-0 up to 3.0.0-alpha-1 | CVE List |
| org.apache.shiro:shiro-core (Maven) | before 2.2.1, from 3.0.0-alpha-0 before 3.0.0-alpha-2 | GitHub Advisory Database |
| apache shiro | before 2.2.1, 3.0.0 | NVD |
All scores
| apache | 8.8high CVSS:4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:H/VA:N/SC:N/SI:N/SA:N/S:P/AU:Y/R:A/RE:L/U:Red |
| GitHub | high CVSS:4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:H/VA:N/SC:N/SI:N/SA:N/S:P/AU:Y/R:A/RE:L/U:Red |
| NVD | 9.1critical CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N |
Classification
SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial.
What each source says
CVE List
A remote attacker can inject LDAP special characters into the Distinguished Name (DN) construction in DefaultLdapRealm class. User-supplied username input is directly concatenated into the LDAP DN template without any escaping of RFC 2253 special characters. This allows an attacker to manipulate the DN structure used for LDAP bind authentication, potentially bypassing authentication or impersonating other users. This issue affects all Apache Shiro versions through 2.2.0, and 3.0.0-alpha-1 when using DefaultLdapRealm Upgrade to Apache Shiro 2.2.1 or 3.0.0-alpha-2 or later, which fixes the issue.
NVD (es)
Un atacante remoto puede inyectar caracteres especiales LDAP en la construcción del Nombre Distinguido (DN) en la clase DefaultLdapRealm. La entrada de nombre de usuario proporcionada por el usuario se concatena directamente en la plantilla del DN LDAP sin ningún escape de los caracteres especiales RFC 2253. Esto permite a un atacante manipular la estructura del DN utilizada para la autenticación de enlace LDAP, potencialmente eludiendo la autenticación o suplantando a otros usuarios. Este problema afecta a todas las versiones de Apache Shiro hasta la 2.2.0, y a la 3.0.0-alpha-1 cuando se utiliza DefaultLdapRealm. Actualice a Apache Shiro 2.2.1 o 3.0.0-alpha-2 o posterior, lo que soluciona el problema.
References
| https://lists.apache.org/thread/svszql3od8td7hn6conyj2oq70v53b5s | mailing-list, vendor-advisory, web | |
| http://www.openwall.com/lists/oss-security/2026/06/17/8 | third-party-advisory, web | |
| https://nvd.nist.gov/vuln/detail/CVE-2026-49268 | advisory | |
| https://github.com/apache/shiro | package | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-49268 changed 2026-06-17 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-x96m-rh44-vgv8 changed 2026-09-10 | CC-BY-4.0 |
| NVD | CVE-2026-49268 changed 2026-10-26 | Public domain |