CVE-2026-137686: Apache Shiro: Authentication bypass in ActiveDirectoryRealm via empty username (incomplete fix for CVE-2014-0074)
The fix for CVE-2014-0074 https://shiro.apache.org/security-reports.html#cve20140074 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.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 3.0.2 - Configuration
Set principalSuffix on the realm
Apache Shiro ActiveDirectoryRealm principalSuffix - Configuration
Disable anonymous binds on the directory server
Directory server anonymous binds = disabled
Event History
Frequently Asked Questions
Which deployments should prioritize investigation?
Deployments that use Apache Shiro's ActiveDirectoryRealm should be investigated, because the issue is specific to that realm.
What does an attacker need to attempt exploitation?
The bypass is triggered through an authentication attempt with an empty username.