Advisory Database
  • Advisories
  • Dependency Scanning
  1. maven
  2. ›
  3. org.apache.shiro/shiro-core
  4. ›
  5. CVE-2026-49268

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

June 17, 2026 (updated June 18, 2026)

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.

References

  • github.com/advisories/GHSA-x96m-rh44-vgv8
  • lists.apache.org/thread/svszql3od8td7hn6conyj2oq70v53b5s
  • nvd.nist.gov/vuln/detail/CVE-2026-49268

Code Behaviors & Features

Detect and mitigate CVE-2026-49268 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 2.2.1, all versions starting from 3.0.0-alpha-0 before 3.0.0-alpha-2

Fixed versions

  • 2.2.1
  • 3.0.0-alpha-2

Solution

Upgrade to versions 2.2.1, 3.0.0-alpha-2 or above.

Impact 8.2 HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:H/A:N

Learn more about CVSS

Weakness

  • CWE-90: Improper Neutralization of Special Elements used in an LDAP Query ('LDAP Injection')

Source file

maven/org.apache.shiro/shiro-core/CVE-2026-49268.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Tue, 23 Jun 2026 12:22:40 +0000.