Loading...
Skip to main content

CVE-2026-49268 — Apache Shiro: LDAP DN Injection in...

HIGH

Apache Shiro: LDAP DN Injection in DefaultLdapRealm

Published June 17, 2026Updated September 10, 2026Source: osv

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 (117 days ago).
  • Last revised September 10, 2026 — 84 days after initial publication.

Remediation

Upgrade to the fixed version using your package manager.

Maven
Update org.apache.shiro:shiro-core to 3.0.0-alpha-2 or later
<!-- Update pom.xml dependency version to 3.0.0-alpha-2 for org.apache.shiro:shiro-core -->
Maven
Update org.apache.shiro:shiro-core to 2.2.1 or later
<!-- Update pom.xml dependency version to 2.2.1 for org.apache.shiro:shiro-core -->

After upgrading, run your dependency scanner again to confirm the vulnerability is resolved.

Affected Packages (2)

Affects 1 ecosystem: maven (1).

PackageEcosystemAffectedFixed In
org.apache.shiro:shiro-core
maven
3.0.0-alpha-13.0.0-alpha-2
org.apache.shiro:shiro-core
maven
1.0.0-incubating, 1.1.0, 1.10.0, 1.10.1 (+40 more)2.2.1

Vulnerability Classification

Common Weakness Enumeration (CWE) identifiers for this vulnerability type.

CVSS Score Breakdown

What the CVSS (Common Vulnerability Scoring System) 8.2 score means for each attack dimension.

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
P
Confidentiality
—
Integrity
—
Availability
—

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

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. Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2026-49268 and 200,000+ other known vulnerabilities.

Severity & Exploitability

CVSS Score
8.2

High exploitability or significant impact. Prioritize remediation within days.

Also Known As

GHSA-x96m-rh44-vgv8

Related CVEs

Check if you're affected

Scan your dependencies to see if this vulnerability affects your projects.

Scan Your Dependencies