Apache Shiro
CVE-2026-49268
HIGH
Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessIdentify Shiro-backed login endpoint
-
DeliveryProbe username field with RFC 2253 metacharacters
-
ExploitInject crafted DN fragment
-
ExecutionBind to LDAP as impersonated identity
-
ImpactAccess target account and downstream resources
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization LDAP query parameterization
MITRE ATT&CK
1 technique across 1 tactic: Initial Access The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | The target application must be configured to use Apache Shiro's DefaultLdapRealm for authentication and must be running a version through 2.2.0 or 3.0.0-alpha-1; deployments using other Shiro realms are not exploitable via this flaw. Beyond that, no authentication, user interaction, or privileges are required (PR:N/UI:N), and the login endpoint must be reachable by the attacker over the network. Effective impersonation also depends on the structure of the LDAP DN template and the directory's account layout, which determines which identities an attacker can pivot the constructed DN toward. |
| Impact | The CVSS 4.0 vector AV:N/AC:L/AT:N/PR:N/UI:N indicates a network-reachable, low-complexity, unauthenticated attack against the login surface, which is highly attractive to opportunistic and targeted attackers alike. The Vulnerable System impact (VC:L/VI:H/VA:N) correctly emphasizes integrity damage - authentication bypass and user impersonation - over confidentiality or availability, which aligns with the described behavior. The flaw is not on the CISA KEV list and no public exploit was identified at time of analysis, and EPSS data was not supplied, so prioritization should be driven by exposure rather than confirmed exploitation. A key limiting factor is that exploitation requires the application to be configured with DefaultLdapRealm specifically; deployments using other realms (e.g., IniRealm, JdbcRealm, ActiveDirectoryRealm) are not impacted, which narrows the real-world blast radius substantially despite the high-looking score. CPE data is wildcarded across versions, so operators should rely on the textual version range (≤ 2.2.0 and 3.0.0-alpha-1) rather than CPE matching alone. |
| Exploit ScenarioDerived | An attacker submits a username such as |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Jun 17, 2026
LDAP injection in Apache Shiro's DefaultLdapRealm allows remote unauthenticated attackers to manipulate Distinguished Name construction during LDAP bind authentication, potentially bypassing authentication or impersonating other users. The flaw affects all versions through 2.2.0 and 3.0.0-alpha-1 when DefaultLdapRealm is in use, with no public exploit identified at time of analysis. The CVSS 4.0 score of 8.8 reflects high integrity impact against an authentication-critical component.
RemediationAI
Vendor-released patch: upgrade to Apache Shiro 2.2.1 (for the 2.x line) or 3.0.0-alpha-2 or later (for the 3.x pre-release line), per the Apache advisory at https://lists.apache.org/thread/svszql3od8td7hn6conyj2oq70v53b5s. If an immediate upgrade is not feasible, compensating controls include switching authentication to a non-affected realm such as ActiveDirectoryRealm or JdbcRealm (which avoids DN concatenation entirely but requires reconfiguring user/group lookup), or placing a reverse proxy / WAF rule in front of the login endpoint that rejects usernames containing RFC 2253 metacharacters (,, =, +, \, ", <, >, ;, leading/trailing spaces, leading #) - note this can break legitimate logins for users whose directory DNs legitimately contain such characters. As a last resort, restrict network access to the LDAP-authenticated application to trusted networks or VPN clients to reduce attack surface while patching is scheduled.
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in maven
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
Apache Shiro is a widely deployed Java security framework providing authentication, authorization, cryptography, and session management. The DefaultLdapRealm class performs user authentication by binding to an LDAP directory with a Distinguished Name (DN) constructed from a template (e.g., 'uid={0},ou=users,dc=example,dc=com') into which the user-supplied username is interpolated. Because the username is concatenated directly without escaping RFC 2253 special characters (such as commas, equals signs, plus signs, backslashes, quotes, and angle brackets), an attacker can alter the resulting DN structure. This is a classic CWE-90 (Improper Neutralization of Special Elements used in an LDAP Query) issue, where injection occurs in DN construction rather than in an LDAP search filter, enabling identity manipulation at the bind step itself.
Know when LDAP gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
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
Network-reachable login with no auth or UI (AV:N/AC:L/PR:N/UI:N); integrity high due to authentication bypass/impersonation, confidentiality low from incidental data exposure, availability unaffected.
Primary rating from Vendor (apache).
CVSS VectorVendor: apache
DescriptionCVE.org
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.
Executive ViewAI
Apache Shiro's LDAP authentication component (DefaultLdapRealm) contains an injection vulnerability allowing remote unauthenticated attackers to bypass authentication or impersonate users. Organizations using Shiro for LDAP-integrated access control-including enterprise SSO and privileged account systems-face immediate risk of unauthorized system access and credential compromise.
No vendor-released patch identified at time of analysis. Interim mitigations: (1) disable DefaultLdapRealm if alternative authentication realms are available; (2) implement strict input validation on LDAP DN parameters; (3) enforce network segmentation restricting LDAP server access; (4) enable detailed LDAP bind operation logging and alert on malformed or injection-pattern queries; (5) deploy WAF rules to detect LDAP injection syntax if Shiro is web-exposed.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Authentication bypass attacks exploit flaws in the verification mechanisms that control access to systems and applications.
Code injection occurs when an application accepts user input and passes it directly into a language interpreter or evaluator without proper sanitization.
Affected Products (CPE)CVE.org
The remoting module in Jenkins before 2.32 and LTS before 2.19.3 allows remote attackers to execute arbitrary code via a
In Joomla!. Rated critical severity (CVSS 9.8), this vulnerability is remotely exploitable, no authentication required,
An issue was discovered on Accellion FTA devices before FTA_9_12_180. Rated critical severity (CVSS 9.8), this vulnerabi
An authenticated GitLab user can seize control of an existing LDAP-backed account on instances that have both OmniAuth S
LDAP injection in Central Dogma's Apache Shiro-based authentication module exposes unauthenticated remote attackers to a
Mastodon is a free, open-source social network server based on ActivityPub Mastodon allows configuration of LDAP for aut
Dolibarr 11.0.3 contains a persistent cross-site scripting vulnerability in LDAP synchronization settings that allows at
A reflected cross-site scripting (xss) vulnerability exists in the ldapUser functionality of MedDream PACS Premium 7.3.6
LDAP injection in IBM API Connect (10.0.8.0 through 10.0.8.12 and 12.1.0.0 through 12.1.1.2) lets a remote attacker who
Authentication bypass in Apache Druid versions 0.17.0 through 35.x. Affects all versions prior to 36.0.0 when specific p
Arbitrary certificate disclosure in Apache CXF's XKMS server lets remote attackers abuse an LDAP injection flaw (CWE-90)
An issue was discovered in linqi before 1.4.0.1 on Windows. Rated critical severity (CVSS 9.8), this vulnerability is re
GHSA-x96m-rh44-vgv8
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB