CVE-2026-49268
Fixed in a distro release EPSS <1%CVSS 8.8
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.
Products: Apache Software Foundation Apache Shiro
Fixed upstream
| Ecosystem | Package | Fixed in |
|---|---|---|
| Maven | org.apache.shiro:shiro-core | 2.2.1 |
| Maven | org.apache.shiro:shiro-core | 3.0.0-alpha-2 |
Distro releases
| Release | Package | Fixed in |
|---|---|---|
| Chainguard | apache-activemq-5.19 | no fix |
| Chainguard | apache-activemq-6.1 | no fix |
| Chainguard | apache-activemq-6.2 | 6.2.7-r3 |
| Chainguard | apache-activemq-fips-5.19 | no fix |
| Chainguard | apache-activemq-fips-6.1 | no fix |
| Chainguard | apache-activemq-fips-6.2 | 6.2.6-r6 |
| Chainguard | apache-jena-fuseki | 6.1.0-r3 |
| Chainguard | neo4j-2025.11 | no fix |
| Chainguard | neo4j-2025.12 | no fix |
| Chainguard | neo4j-2026.01 | no fix |
| Chainguard | neo4j-2026.02 | no fix |
| Chainguard | neo4j-2026.03 | no fix |
| Chainguard | neo4j-2026.04 | no fix |
| Chainguard | neo4j-2026.05 | 2026.05.0-r2 |
| Chainguard | neo4j-5.26 | 5.26.27-r2 |
| Chainguard | opensearch-2-identity-shiro | no fix |
| Debian 12 | shiro | no fix |
| Debian 13 | shiro | no fix |
| Debian 14 | shiro | no fix |
| Ubuntu 20.04 LTS | shiro | no fix |
| Ubuntu 22.04 LTS | shiro | no fix |
| Ubuntu 25.10 | shiro | no fix |
| Ubuntu 26.04 LTS | shiro | no fix |
| Ubuntu 26.10 | shiro | no fix |
| Ubuntu Pro 16.04 LTS | shiro | no fix |
| Ubuntu Pro 18.04 LTS | shiro | no fix |
| Ubuntu Pro 24.04 LTS | shiro | no fix |
| Wolfi | neo4j-2025.12 | no fix |
| Wolfi | neo4j-2026.01 | no fix |
| Wolfi | neo4j-2026.05 | 2026.05.0-r2 |