CVE-2026-49268 — Apache Shiro: LDAP DN Injection in...
Apache Shiro: LDAP DN Injection in DefaultLdapRealm
What Should I Do?
Address in Next Maintenance Window
Low exploitation probability (0.76%). Schedule for your next planned update.
Does your project use an affected org.apache.shiro:shiro-core version?
Paste your pom.xml to check it for CVE-2026-49268 and every other known vulnerability, with CISA KEV and EPSS on each finding. Free with no signup for up to 10 packages, or up to 500 per scan with a free account, which also keeps up to 200 packages in saved projects.
Summary
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.
Advisory Timeline
- First published June 17, 2026 (162 days ago).
- Last revised September 10, 2026 — 84 days after initial publication.
Remediation
Upgrade to the fixed version using your package manager.
<!-- Update pom.xml dependency version to 2.2.1 for org.apache.shiro:shiro-core -->
<!-- Update pom.xml dependency version to 3.0.0-alpha-2 for org.apache.shiro:shiro-core -->
After upgrading, scan your dependencies again to confirm the vulnerability is resolved.
Affected Packages (2)
Affects 1 ecosystem: Maven (1).
| Package | Fixed In |
|---|---|
| org.apache.shiro:shiro-core Maven · Affected: 1.0.0-incubating, 1.1.0, 1.10.0, 1.10.1 (+40 more) | 2.2.1 |
| org.apache.shiro:shiro-core Maven · Affected: 3.0.0-alpha-1 | 3.0.0-alpha-2 |
Vulnerability Classification
Common Weakness Enumeration (CWE) identifiers for this vulnerability type.
- CWE-90
CVSS Score Breakdown
What the CVSS (Common Vulnerability Scoring System) 8.2 score means for each attack dimension.
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
References
Frequently Asked Questions
- What is CVE-2026-49268?
- Apache Shiro: LDAP DN Injection in DefaultLdapRealm. This vulnerability has been assigned a severity rating of HIGH (CVSS score: 8.2/10).
- How do I check if my project is affected by CVE-2026-49268?
- CVE-2026-49268 affects org.apache.shiro:shiro-core. It has a 0.8% probability of exploitation within 30 days (EPSS score). Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2026-49268 and 200,000+ other known vulnerabilities.
Severity & Exploitability
Significant impact if exploited, or exploitable with modest effort.
This is an above-median EPSS score — 51.3% of tracked vulnerabilities score at or below it, putting its exploitation likelihood in the upper half of the tracked corpus.
Also Known As
Related CVEs
- CVE-2023-34478CRITICAL
Path Traversal in Apache Shiro
- CVE-2026-61689HIGH
XWiki Platform: HQL injection in search allows unauthenticated database extraction including password hashes
- CVE-2026-107725HIGH
Hazelcast has an authorization bypass in IMap Predicates API