Apache Shiro: LDAP DN Injection in DefaultLdapRealm
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Attack requirements
- None
- Impact type
- —
- Confidentiality · integrity · availability
- Low · High · None
- Fix status
- Fixed
Attack profile from CVSS 4.0 · CNA. Fix status from CNA and GitHub.
Summary
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- Yes
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| Apache | Apache Shiro | up to 2.2.0; 3.0.0-alpha-0 – 3.0.0-alpha-1 | — | No fix listed | CNA |
| — | org.apache.shiro:shiro-core (Maven) | before 2.2.1 | 2.2.1 | Patch available | GHSA-x96m-rh44-vgv8 |
| — | org.apache.shiro:shiro-core (Maven) | 3.0.0-alpha-0 to before 3.0.0-alpha-2 | 3.0.0-alpha-2 | Patch available | GHSA-x96m-rh44-vgv8 |
- Apache Shiro VendorApache Affected up to 2.2.0; 3.0.0-alpha-0 – 3.0.0-alpha-1 Fixed in — No fix listed CNA
- org.apache.shiro:shiro-core (Maven) Vendor— Affected before 2.2.1 Fixed in 2.2.1 Patch available GHSA-x96m-rh44-vgv8
- org.apache.shiro:shiro-core (Maven) Vendor— Affected 3.0.0-alpha-0 to before 3.0.0-alpha-2 Fixed in 3.0.0-alpha-2 Patch available GHSA-x96m-rh44-vgv8
Remediation
- Fix · GHSA-x96m-rh44-vgv8 org.apache.shiro:shiro-core (Maven) Fixed in 2.2.1 Advisory →
- Fix · GHSA-x96m-rh44-vgv8 org.apache.shiro:shiro-core (Maven) Fixed in 3.0.0-alpha-2 Advisory →
Timeline
- 2026-10-02 Threatist record created from CVE-2026-49268
- 2026-10-03 Alias added: GHSA-x96m-rh44-vgv8
- 2026-10-25 EPSS moved to the below the 50th percentile
References
More Apache Shiro vulnerabilities
- TI-2016-03813 Apache Shiro before 1.2.5, when a cipher key has not been configured for the "remember… KEVCVSS 3.1CRITICAL 9.8
- TI-2020-13272 Improper authentication in Apache Shiro CVSS 3.1CRITICAL 9.8
- TI-2021-18132 Improper authentication in Apache Shiro CVSS 3.1CRITICAL 9.8
- TI-2022-14167 Authentication bypass in Apache Shiro CVSS 3.1CRITICAL 9.8
- TI-2020-09649 Improper authentication in Apache Shiro CVSS 3.1CRITICAL 9.8
- TI-2020-10910 Apache Shiro before 1.6.0, when using Apache Shiro, a specially crafted HTTP request may cause an authentication bypass. CVSS 3.1HIGH 7.5
Sources
- CVE-2026-49268 · CVE Program
- CVE-2026-49268 · NVD
- FIRST EPSS
- GHSA-x96m-rh44-vgv8 · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences