Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

CVE-2026-49268: CWE-90 Improper Neutralization of Special Elements used in an LDAP Query ('LDAP Injection') in Apache Software Foundation Apache Shiro

0
High
VulnerabilityCVE-2026-49268cvecve-2026-49268cwe-90
Published: Wed Jun 17 2026 (06/17/2026, 13:07:44 UTC)
Source: CVE Database V5
Vendor/Project: Apache Software Foundation
Product: Apache Shiro

Description

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.

CVSS v4.0

Score 8.8high

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
None
Vuln. Confidentiality
Low
Vuln. Integrity
High
Vuln. Availability
None
Subsq. Confidentiality
None
Subsq. Integrity
None
Subsq. Availability
None
Scope
P
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

Affected software

Apache Software Foundation/org.apache.shiro:shiro-core
pkg:maven/Apache Software Foundation/org.apache.shiro:shiro-core
Affected versions
<=2.2.0

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 06/17/2026, 14:16:25 UTC

Technical Analysis

This vulnerability arises from improper neutralization of special LDAP characters (CWE-90) in the DefaultLdapRealm class of Apache Shiro. User input for usernames is directly concatenated into the LDAP DN template without escaping RFC 2253 special characters, enabling attackers to manipulate the LDAP bind DN structure. This manipulation can potentially bypass authentication mechanisms or allow impersonation of other users. The issue affects Apache Shiro versions <=2.2.0 and =3.0.0-alpha-0. The vendor fixed the vulnerability in versions 2.2.1 and 3.0.0-alpha-2.

Potential Impact

An attacker can exploit this vulnerability to bypass LDAP authentication or impersonate other users by injecting specially crafted LDAP characters into the username field. This compromises authentication integrity and may lead to unauthorized access. The CVSS 4.0 score of 8.8 indicates a high severity with network attack vector, no privileges or user interaction required, and partial impact on confidentiality and high impact on integrity.

Mitigation Recommendations

Upgrade Apache Shiro to version 2.2.1 or later, or 3.0.0-alpha-2 or later, where this LDAP Injection vulnerability is fixed. No other mitigation or temporary workaround is indicated in the available data. Patch status is confirmed by the vendor advisory stating fixed versions.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.2
Assigner Short Name
apache
Date Reserved
2026-05-28T17:20:37.590Z
Cvss Version
4.0
State
PUBLISHED
Remediation Level
null

Threat ID: 6a32a8a20b89be6888635f0a

Added to database: 6/17/2026, 2:01:06 PM

Last enriched: 6/17/2026, 2:16:25 PM

Last updated: 6/17/2026, 5:25:57 PM

Views: 3

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses