CVE-2026-49268
JSON

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 packageVersionsReported by
org.apache.shiro:shiro-coreup to 2.2.0, from 3.0.0-alpha-0 up to 3.0.0-alpha-1CVE List
org.apache.shiro:shiro-core (Maven)before 2.2.1, from 3.0.0-alpha-0 before 3.0.0-alpha-2GitHub Advisory Database
apache shirobefore 2.2.1, 3.0.0NVD

All scores

apache8.8high CVSS:4.0CVSS: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
GitHubhigh CVSS:4.0CVSS: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
NVD9.1critical CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N

Classification

CWE-90

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

Sources

SourceRecordLicence
CVE ListCVE-2026-49268 changed 2026-06-17CVE Terms of Use
GitHub Advisory DatabaseGHSA-x96m-rh44-vgv8 changed 2026-09-10CC-BY-4.0
NVDCVE-2026-49268 changed 2026-10-26Public domain