CVE-2026-49268
Apache Shiro: LDAP DN Injection in DefaultLdapRealm
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 Maven artifacts (1)
| Artifact | Affected versions | Fixed in |
|---|---|---|
| org.apache.shiro » shiro-core | < 2.2.1>= 3.0.0-alpha-0, < 3.0.0-alpha-2 | 2.2.1, 3.0.0-alpha-2 |
Blast radius
68% of the dependent artifacts (2,808) still pull an affected version in their latest release.
| Depth | Dependent versions |
|---|---|
| Direct | 29,790 |
| 2 hops | 67,772 |
| 3 hops | 40,349 |
| 4 hops | 14,735 |
| 5 hops | 5,132 |
| 6 hops | 1,839 |
Most used dependents
- org.apache.kafka » kafka-clients3,135 usages
- org.apache.kafka » kafka1,450 usages
- org.apache.kafka » connect-api1,026 usages
- org.apache.kafka » connect-transforms659 usages
- org.apache.kafka » kafka-streams513 usages
- org.apache.solr » solr-core500 usages
- org.apereo.cas » cas-server-core-util-api492 usages
- org.apache.shiro » shiro-web460 usages
- org.apereo.cas » cas-server-core-authentication-api400 usages
- org.apache.shiro » shiro-spring312 usages
- org.apache.camel.quarkus » camel-quarkus-maven-plugin302 usages
- org.apereo.cas » cas-server-core-util296 usages
- org.apereo.cas » cas-server-core-web-api288 usages
- org.apereo.cas » cas-server-core-services280 usages
- org.neo4j » neo4j269 usages
Computed from the dependency graph of build 20261124.0621 (compile and runtime scopes, nearest version wins). Exclusions and dependency management in consuming projects are not applied, so dependents are potentially affected. When several artifacts are affected, a dependent version that pulls more than one of them is counted once per artifact.
References
| Advisory | NVD CVE-2026-49268 | nvd.nist.gov |
| Package | apache/shiro | github.com |
| Web | thread/svszql3od8td7hn6conyj2oq70v53b5s | lists.apache.org |
| Web | lists/oss-security/2026/06/17/8 | openwall.com |
