Authentication Bypass Vulnerability in Apache Shiro's DefaultLdapRealm
CVE-2026-129349
What is CVE-2026-129349?
An authentication bypass vulnerability exists in Apache Shiro's DefaultLdapRealm when authentication caching is enabled. After a successful initial login, attackers can authenticate as the user with any password due to the absence of a proper LDAP bind process. The AllowAllCredentialsMatcher, by default in DefaultLdapRealm, permits this insecure behavior, allowing anyone who knows a valid username to gain unauthorized access. This issue affects all versions of Apache Shiro up to 3.0.0 when the caching option is enabled. To mitigate the risk, users should upgrade to version 3.0.1 or later, which no longer defaults to AllowAllCredentialsMatcher, or disable authentication caching altogether.
Affected Version(s)
Apache Shiro 0 < 3.0.1
References
CVSS V4
Timeline
Vulnerability published
Vulnerability Reserved