HIGH 8.8

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)

ArtifactAffected versionsFixed 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

1affected artifacts
52affected versions
4,114dependent artifacts (est.)
159,617dependent versions

68% of the dependent artifacts (2,808) still pull an affected version in their latest release.

DepthDependent 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

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

Advisorynvd.nist.gov
Packagegithub.com
Weblists.apache.org
Webopenwall.com