CVE-2026-49268
published high CVSS 4.0 · 8.8Apache Shiro: LDAP DN Injection in DefaultLdapRealm
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Apache Software Foundation | — | org.apache.shiro:shiro-coreApache Shiro · 0 through 2.2.0 · 3.0.0-alpha-0 through 3.0.0-alpha-1 · Other versions: unaffected | Affected | Not stated | apache |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 8.8 / 10
- Severity
- high
- Provider
- apache · cna
- Vector string
- CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:H/VA:N/SC:N/SI:N/SA:N/S:P/AU:Y/R:A/RE:L/U:Red
- Scenarios
- en: GENERAL
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Apache Software Foundation | Apache Shiro | 0 through 2.2.0 (affected · semver)3.0.0-alpha-0 through 3.0.0-alpha-1 (affected · semver)Default: unaffected | apache · cna |
Weaknesses
1- CWE-90 CWE-90 Improper Neutralization of Special Elements used in an LDAP Query ('LDAP Injection')
References
2Provider assertions
3apache · cna
Apache Shiro: LDAP DN Injection in DefaultLdapRealm
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 9f1d1ad4fec4650cd138d42675087bc17dcffb27676897db589e6b74fce4a62e
- Ingested
- 23 Sep 2026, 09:17:57 UTC
- Source record
- Official CVE record