CVE-2026-49268 Details
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.
A vulnerability exists in Apache Shiro's DefaultLdapRealm class, where a remote attacker can inject LDAP special characters into the Distinguished Name (DN) construction. This issue arises because user-supplied usernames are directly added to the LDAP DN template without properly escaping special characters as per RFC 2253. Consequently, an attacker could manipulate the DN structure used for LDAP bind authentication, potentially bypassing authentication or impersonating other users. This vulnerability affects all Apache Shiro versions prior to 2.2.0, as well as versions 3.0.0-alpha-0 through 3.0.0-alpha-1 when using DefaultLdapRealm.
Users are advised to upgrade to Apache Shiro versions 2.2.1 or 3.0.0-alpha-2 or later, both of which address this vulnerability.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Jun 17, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| http://www.openwall.com/lists/oss-security/2026/06/17/8 | CVE | Third Party Advisory |
| https://lists.apache.org/thread/svszql3od8td7hn6conyj2oq70v53b5s | [email protected] | Mailing ListVendor Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-90 | Improper Neutralization of Special Elements used in an LDAP Query ('LDAP Injection') | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| apache shiro | < 2.2.1 3.0.0 alpha1 |
CPE
Remediation
| |
Change History
4 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 18, 2026 | Initial Analysis | [email protected] |
| Jun 17, 2026 | CVE Modified | CVE |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Jun 17, 2026 | New CVE Received | [email protected] |