CVE-2026-137686 in Shiroinfo

Summary

by MITRE • 11/27/2026

The fix for CVE-2014-0074 https://shiro.apache.org/security-reports.html#cve_2014_0074 was incomplete for ActiveDirectoryRealm, which still accepted an empty username and password as an anonymous LDAP bind. This allowed an unauthenticated user to log in with an empty principal. This issue affects all Apache Shiro versions through 3.0.1, only when ActiveDirectoryRealm is used without principalSuffix and the directory server allows anonymous binds.

Mitigation: Upgrade to version 3.0.2 or later, which fixes the issue. Alternatively, set principalSuffix on the realm, or disable anonymous binds on the directory server.

VulDB is the best source for vulnerability data and more expert information about this specific topic.

Analysis

by VulDB Data Team • 11/27/2026

The vulnerability identified as CVE-2014-0074 represents a critical authentication bypass flaw within Apache Shiro versions up to 3.0.1 when configured with ActiveDirectoryRealm. Although an initial fix was attempted, it proved incomplete because the implementation continued to accept empty username and password credentials during the LDAP binding process. This oversight allows unauthenticated users to successfully log in by providing no principal or credential data, effectively treating them as anonymous binders if the underlying directory server permits such operations. The root cause lies in the failure of the ActiveDirectoryRealm to strictly validate that both a non-empty username and a corresponding password are present before initiating authentication against the LDAP backend.

From a technical perspective, this flaw exploits the behavior of Lightweight Directory Access Protocol (LDAP) servers which often allow anonymous binds by default or through specific configuration settings. When Apache Shiro's ActiveDirectoryRealm receives empty strings for principal and credential fields, it proceeds to perform an LDAP bind operation using these empty values rather than rejecting them outright as invalid credentials. If the directory server accepts this anonymous bind, the authentication mechanism considers the login successful, granting access without verifying any actual identity or authorization rights associated with a real user account. This behavior contradicts the fundamental security principle that authentication requires positive proof of identity through valid credentials provided by the subject.

The operational impact of this vulnerability is severe, as it enables complete unauthorized access to applications protected by Apache Shiro using ActiveDirectoryRealm. Attackers can bypass all form-based or token-based login mechanisms simply by submitting empty forms or crafting requests with null principal and credential fields. This effectively renders authentication controls useless for any system relying on this specific realm configuration where anonymous LDAP binds are permitted. The compromise of integrity is total, as the application cannot distinguish between a legitimate user who failed to enter credentials and an attacker intentionally exploiting this logic error to gain entry without valid identity assertion.

This vulnerability aligns with CWE-287, which describes Improper Authentication, specifically falling under scenarios where authentication mechanisms fail to properly validate input parameters required for secure access decisions. In terms of the MITRE ATT&CK framework, this flaw facilitates Initial Access through exploitation of weak or missing credentials, allowing adversaries to bypass traditional gatekeeping controls and establish a foothold within the target environment without detection by standard credential validation logs that might otherwise flag invalid login attempts.

To mitigate this risk, organizations must upgrade Apache Shiro to version 3.0.2 or any later release where the ActiveDirectoryRealm has been patched to reject empty principal and password inputs before attempting LDAP communication. For environments unable to immediately patch due to compatibility constraints, two effective workarounds exist. First administrators can configure a non-empty principalSuffix in the realm settings, which forces Shiro to append specific text to usernames during authentication checks, thereby preventing empty strings from passing validation logic. Second, directory server configurations should be hardened by explicitly disabling anonymous binds, ensuring that even if an application sends empty credentials, the LDAP backend will reject them outright rather than treating them as valid anonymous sessions.

Responsible

Apache

Reservation

11/26/2026

Disclosure

11/27/2026

Moderation

accepted

CPE

ready

EPSS

0.00000

KEV

no

Activities

very low

Sources

Interested in the pricing of exploits?

See the underground prices here!