CVE-2026-49268: Apache Shiro: LDAP DN Injection in DefaultLdapRealm

Published Jun 17, 2026
·
Updated

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 Software

5 affected componentsFixes available
Apache Shiro<=2.2.0, =3.0.0-alpha-1
maven/org.apache.shiro:shiro-core>=3.0.0-alpha-0<3.0.0-alpha-2
3.0.0-alpha-2
maven/org.apache.shiro:shiro-core<2.2.1
2.2.1
Apache Shiro<2.2.1
Apache Shiro=3.0.0-alpha1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade maven/org.apache.shiro:shiro-core to a version that resolves this vulnerability.

    Fixed in 3.0.0-alpha-2
  2. Upgrade

    Upgrade maven/org.apache.shiro:shiro-core to a version that resolves this vulnerability.

    Fixed in 2.2.1

Event History

Jun 17, 2026
CVE Published
via MITRE·01:07 PM
Data Sourced
via MITRE·01:07 PM
DescriptionWeakness
Data Sourced
via NVD·02:17 PM
DescriptionSeverityWeaknessAffected Software
Advisory Published
via GitHub·06:35 PM
Data Sourced
via GitHub·06:35 PM
DescriptionWeaknessAffected Software
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2026-49268?

CVE-2026-49268 has a high severity rating of 8.8 according to the CVSS.

2

What kind of attack is possible with CVE-2026-49268?

CVE-2026-49268 allows remote attackers to perform LDAP DN injection attacks through specially crafted usernames.

3

How can I mitigate CVE-2026-49268?

To mitigate CVE-2026-49268, validate and sanitize user inputs to prevent the injection of special LDAP characters.

4

Which software is affected by CVE-2026-49268?

CVE-2026-49268 affects Apache Shiro, particularly the DefaultLdapRealm class.

5

Is there an official fix for CVE-2026-49268?

An official fix for CVE-2026-49268 should be sought from the latest updates or patches provided by Apache Shiro.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203