Skip to main content

Apache Shiro CVE-2026-49268

HIGH
LDAP Injection (CWE-90)
2026-06-17 apache GHSA-x96m-rh44-vgv8
8.8
CVSS 4.0 · Vendor: apache
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Identify Shiro-backed login endpoint
  2. Delivery
    Probe username field with RFC 2253 metacharacters
  3. Exploit
    Inject crafted DN fragment
  4. Execution
    Bind to LDAP as impersonated identity
  5. Impact
    Access 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 admin),0)(uid=* or admin\2C ou=admins to a public-facing login form backed by Shiro's DefaultLdapRealm; the unescaped value is concatenated into the bind DN template, producing a DN that resolves to a privileged account or otherwise bypasses the intended identity check. Because no authentication or user interaction is required and complexity is low, this can be probed at scale against exposed Shiro-backed applications. No public exploit was identified at time of analysis, but the bug class is well understood and trivial to weaponize once the realm configuration is fingerprinted.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.5% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

maven org.apache.shiro:shiro-core fix: 2.2.1, 3.0.0-alpha-2

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

Vendor (apache) PRIMARY 8.8 HIGH
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
vuln.today AI 8.2 HIGH

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.

3.1 AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:H/A:N
4.0 AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:H/VA:N/SC:N/SI:N/SA:N

Primary rating from Vendor (apache).

CVSS VectorVendor: apache

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
None
Vulnerable system: Confidentiality
Low
Vulnerable system: Integrity
High
Vulnerable system: Availability
None
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

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

Why It Matters

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.

Business Impact: High
Compensating Controls

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

EPSS Score
0.5%
Top 60% exploitable
Threat Intel
1
1 sources
Social Media
1
Sightings
Data Quality
5 sources
Confidence: Medium
NVD CVE.org EPSS Vulnrichment GHSA CIRCL VulDB

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.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.5%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
Yes
Human Impact
High
Technical Impact
Partial

Priority Score

45
Low Medium High Critical
KEV: 0
EPSS: +1
CVSS: +44
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Authentication bypass attacks exploit flaws in the verification mechanisms that control access to systems and applications.

Code Injection CRITICAL

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

cpe:2.3:a:apache_software_foundation:apache_shiro:*:*:*:*:*:*:*:*

More in LDAP

View all
CVE-2016-9299 CRITICAL POC
9.8 Jan 12

The remoting module in Jenkins before 2.32 and LTS before 2.19.3 allows remote attackers to execute arbitrary code via a

CVE-2017-14596 CRITICAL POC
9.8 Sep 20

In Joomla!. Rated critical severity (CVSS 9.8), this vulnerability is remotely exploitable, no authentication required,

CVE-2017-8790 CRITICAL POC
9.8 May 05

An issue was discovered on Accellion FTA devices before FTA_9_12_180. Rated critical severity (CVSS 9.8), this vulnerabi

CVE-2026-15723 HIGH POC
8.2 Oct 21

An authenticated GitLab user can seize control of an existing LDAP-backed account on instances that have both OmniAuth S

CVE-2026-11748 MEDIUM POC
6.9 Jun 22

LDAP injection in Central Dogma's Apache Shiro-based authentication module exposes unauthenticated remote attackers to a

CVE-2023-28853 MEDIUM POC
6.5 Apr 04

Mastodon is a free, open-source social network server based on ActivityPub Mastodon allows configuration of LDAP for aut

CVE-2020-36966 MEDIUM POC
6.4 Jan 30

Dolibarr 11.0.3 contains a persistent cross-site scripting vulnerability in LDAP synchronization settings that allows at

CVE-2025-36556 MEDIUM POC
6.1 Jan 20

A reflected cross-site scripting (xss) vulnerability exists in the ldapUser functionality of MedDream PACS Premium 7.3.6

CVE-2026-17392 CRITICAL
9.9 Nov 07

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

CVE-2026-23906 CRITICAL
9.8 Feb 10

Authentication bypass in Apache Druid versions 0.17.0 through 35.x. Affects all versions prior to 36.0.0 when specific p

CVE-2026-44930 CRITICAL
9.8 May 22

Arbitrary certificate disclosure in Apache CXF's XKMS server lets remote attackers abuse an LDAP injection flaw (CWE-90)

CVE-2024-33868 CRITICAL
9.8 May 14

An issue was discovered in linqi before 1.4.0.1 on Windows. Rated critical severity (CVSS 9.8), this vulnerability is re

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy