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

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.

Check my pom.xml

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.

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 -->
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 -->

After upgrading, scan your dependencies again to confirm the vulnerability is resolved.

Affected Packages (2)

Affects 1 ecosystem: Maven (1).

PackageFixed 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-13.0.0-alpha-2

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. 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

CVSS Score
8.2

Significant impact if exploited, or exploitable with modest effort.

EPSS Score (30-day exploit probability)
0.76%
EPSS percentile: 51.3

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

GHSA-x96m-rh44-vgv8

Related CVEs

Check your own dependencies

Free, with no signup for up to 10 packages.

Check my pom.xml