Wavense
VulnerabilitiesVendorsMy Stack
Wavense© 2026 Wavense. All rights reserved.Privacy PolicyTerms & Conditions
Vulnerabilities/CVE-2026-49268
Vulnerability dossier

CVE-2026-49268

Apache Shiro DefaultLdapRealm LDAP Injection Vulnerability

VendorapachePublishedJun 17, 2026SourceNVDWeaknessCWE-90
Plan a fix

Severe, but no confirmed exploitation yet. Schedule remediation in your next patch cycle and apply mitigations if you're exposed.

Severity
High · 8.8
CVSS base score
Exploitation
Not observed
No known exploitation or public exploit
Exploit likelihood
0.76%
Chance of exploitation in 30 days (EPSS)
Exposure
Internet-facing
Exploitable remotely, no login, no user action
01

What's the risk?

An unauthenticated attacker, remotely over the network, with no user interaction, can tamper with data.

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.

How it's exploitedMITRE ATT&CK · inferred from weakness & vector
Initial Access
T1190Exploit Public-Facing Application

Inferred from the weakness type (CWE) and how the flaw is reached — the techniques an attacker would chain to exploit this. Real-world corroboration appears here as threat intel is folded in.

02

Are we affected?

2
  • Affectedapache · shiroall versions
  • Affectedapache · shiro3.0.0
03

What to do

Generated by Wavense from the CVE record — an immediate mitigation and the permanent fix.

  1. !

    Mitigate now

    Implement strict input validation on all user-supplied usernames before they reach the DefaultLdapRealm for LDAP authentication. Configure web application firewalls (WAFs) to filter and block suspicious LDAP special characters in user input. Monitor LDAP authentication logs for unusual bind attempts, high volumes of failed logins, or unexpected DN structures.

  • ✓

    Permanent fix

    The permanent resolution is to upgrade Apache Shiro to a patched version. Specifically, upgrade to Apache Shiro 2.2.1 or 3.0.0-alpha-2 or later. All versions through 2.2.0, and 3.0.0-alpha-1 are affected when utilizing the DefaultLdapRealm.

  • Technical details— weakness, CVSS vector & calculator, related CVEs

    Business impact

    Attackers can exploit this flaw by injecting LDAP special characters into user-supplied usernames, manipulating the Distinguished Name (DN) during LDAP bind authentication. This allows them to bypass authentication mechanisms or impersonate legitimate users. Successful exploitation can lead to unauthorized access to sensitive systems and data, compromising confidentiality and integrity.

    Weakness

    1
    CWE-90Common Weakness Enumeration · MITRE definition

    CVSS 4.0 details

    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
    Attack Vector
    Network
    Attack Complexity
    Low
    Privileges Required
    None
    User Interaction
    None
    Confidentiality
    Low
    Integrity
    High
    Availability
    None

    Related vulnerabilities

    Other CVEs affecting shiro

    NVD
    9.8Critical
    CVE-2016-4437KEV⚙ WeaponizedExploit likely

    Apache Shiro before 1.2.5, when a cipher key has not been configured for the "remember me" feature, allows remote attackers to execute arbitrary code or bypass intended access restrictions via an unspecified request parameter.

    apacheCWE-321NetworkLow effortNo authNo interactionCIA
    2016-06-07
    NVD
    5.9Medium
    CVE-2026-43827

    Default configurations of Apache Shiro have a session fixation vulnerability. This issue affects Apache Shiro from 1.0 to 2.1.0, and 3.0.0-alpha-1. Users are recommended to upgrade to version 2.1.1, or 3.0.0-alpha-2 or later, which fixes the issue. In the affected versions, when a session already exists, it is not invalidated upon successful login, nor is a new session being generated with a new ID.

    apacheCWE-384Session FixationNetworkLow effortNo authActive UICIA
    2026-05-25
    NVD
    5.3Medium
    CVE-2026-23903

    Authentication Bypass by Alternate Name vulnerability in Apache Shiro. This issue affects Apache Shiro: before 2.0.7. Users are recommended to upgrade to version 2.0.7, which fixes the issue. The issue only effects static files. If static files are served from a case-insensitive filesystem, such as default macOS setup, static files may be accessed by varying the case of the filename in the request. If only lower-case (common default) filters are present in Shiro, they may be bypassed this way. Shiro 2.1.0 and later has a new parameters to remediate this issue shiro.ini: filterChainResolver.caseInsensitive = true application.properties: shiro.caseInsensitive=true Shiro 3.0.0 and later makes this the default in shiro.ini-based configurations. Shiro 3.0.1 and later makes this the default in all configurations, including programmatic and Spring / Spring Boot.

    apacheCWE-289NetworkLow effortNo authNo interactionCIA
    2026-02-09
    NVD
    5.1Medium
    CVE-2026-44598

    With valid login credentials, URL Redirection to Untrusted Site ('Open Redirect'), Server-Side Request Forgery (SSRF) vulnerability in Apache Shiro. This issue affects Apache Shiro from 2.0-alpha to 2.1.0, and 3.0.0-alpha-1, only when using shiro-jakarta-ee integration module. Users are recommended to upgrade to version 2.1.1, or 3.0.0-alpha-2 or later, which fixes the issue by encrypting the cookie. After successful login, Jakarta EE integration module uses shiroSavedRequest cookie to redirect to a particular web page after login. This cookie was not validated, and can be forged to send a HTTP GET request from the server itself to an arbitrary URL from the cookie.

    apacheCWE-601Open RedirectNetworkLow effortLow privPassive UICIA
    2026-05-25
    0.0
    / 10.0 base
    High severity
    Key facts
    CVE ID
    CVE-2026-49268
    Published
    Jun 17, 2026
    Last modified
    Jun 18, 2026
    CVSS
    8.8 (v4.0)
    EPSS
    0.76%
    In CISA KEV
    No
    Confidence
    92/100
    Weakness
    CWE-90
    Timeline
    1. Jun 17, 2026Published to NVDNVD
    2. Jun 18, 2026Record last modifiedNVD
    3. Sep 4, 2026AI analysis generatedWavense
    View on NVD