HighGHSA-x96m-rh44-vgv8CVE-2026-49268

Apache Shiro: LDAP DN Injection in DefaultLdapRealm

Published 17 Jun 2026 · Updated 10 Sept 2026

Is your project on an affected org.apache.shiro:shiro-core?

Private repo? Upload its lockfile instead, or connect GitHub to check every repo.

Look after several Java apps? Indie watches up to 15 repos, private ones too, for $5 a month. See Indie

Affected packages

Affected
<2.2.1
Fixed in
2.2.1
Update to the fixed version for your release line, for example:mvn versions:use-dep-version -Dincludes=org.apache.shiro:shiro-core -DdepVersion=2.2.1 -DforceVersion=true
Affected
>=3.0.0-alpha-0 <3.0.0-alpha-2
Fixed in
3.0.0-alpha-2
Update to the fixed version for your release line, for example:mvn versions:use-dep-version -Dincludes=org.apache.shiro:shiro-core -DdepVersion=3.0.0-alpha-2 -DforceVersion=true

Details

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.

Is GHSA-x96m-rh44-vgv8 in any of your client repos?

Checking one package by hand is fine. Checking it across forty client projects is not. NPMscan reads the lockfiles in every GitHub repo you pick, finds each project with an affected org.apache.shiro:shiro-core, and gives you the command that fixes it.

More advisories for org.apache.shiro:shiro-core

  • LowCVE-2026-56130Apache Shiro's "remember me" cookie age is not verified on the server. · 25 Jun 2026
  • MediumCVE-2026-43827Apache Shiro has a session fixation vulnerability · 26 May 2026
  • LowCVE-2026-23901Apache Shiro Affected by an Observable Timing Discrepancy Vulnerability · 10 Feb 2026
  • MediumCVE-2023-46749Apache Shiro vulnerable to path traversal · 15 Jan 2024
  • CriticalCVE-2022-40664Apache Shiro Authentication Bypass vulnerability · 12 Oct 2022
  • CriticalCVE-2022-32532Improper Authorization in Apache Shiro · 30 Jun 2022
All 13 advisories for org.apache.shiro:shiro-core

References

Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.