LDAP Injection Affecting org.apache.shiro:shiro-core package, versions [,2.2.1)


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.49% (39th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about LDAP Injection vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-JAVA-ORGAPACHESHIRO-17378764
  • published19 Jun 2026
  • disclosed17 Jun 2026
  • creditzhaokaifei

Introduced: 17 Jun 2026

CVE-2026-49268  (opens in a new tab)
CWE-90  (opens in a new tab)

How to fix?

Upgrade org.apache.shiro:shiro-core to version 2.2.1 or higher.

Overview

org.apache.shiro:shiro-core is a powerful and easy-to-use Java security framework that performs authentication, authorization, cryptography, and session management.

Affected versions of this package are vulnerable to LDAP Injection in the DefaultLdapRealm class. An attacker can bypass authentication or impersonate other users by injecting LDAP special characters into the Distinguished Name (DN) construction during LDAP bind authentication.

CVSS Base Scores

version 4.0
version 3.1