Apache Shiro
CVE-2026-49268
HIGH
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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:P/AU:Y/R:A/V:X/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
Lifecycle Timeline
2DescriptionCVE.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.
AnalysisAI
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.
Technical ContextAI
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.
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.
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
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
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
A vulnerability, which was classified as problematic, has been found in Jahastech NxFilter 4.3.2.5.jsp?actionFlag=test&i
An unauthenticated Apache Traffic Control Traffic Ops user can send a request with a specially-crafted username to the P
Kanboard versions 1.2.48 and earlier contain an LDAP injection vulnerability where unsanitized user input in the LDAP au
Same weakness CWE-90 – LDAP Injection
View allSame technique Code Injection
View allShare
External POC / Exploit Code
Leaving vuln.today
GHSA-x96m-rh44-vgv8