Track vulnerabilities like this one. Sign up free to get alerted when software you use is affected.
9.1

CVE-2026-129349: Apache Shiro LDAP login may accept any password

CVE-2026-129349 · published 18 days ago
Summary

If you use Apache Shiro’s DefaultLdapRealm with authentication caching turned on, a user who has logged in once can later log in again with any password. This lets anyone who knows a valid username gain access. Upgrade to version 3.0.1 or later, or turn off authentication caching, to stop the problem.

What to do
  • Update apache software foundation apache shiro to version 3.0.1 or later.
Affected software
Ecosystem VendorProductAffected versions
Debian:12 debian shiro All versions
Debian:13 debian shiro All versions
Debian:14 debian shiro All versions
– apache software foundation apache shiro < 3.0.1
Ubuntu:Pro:16.04:LTS canonical shiro All versions
Original advisory text
Apache Shiro: DefaultLdapRealm accepts any password when authentication caching is enabled
When authentication caching is enabled on DefaultLdapRealm, after a user logs in successfully once, subsequent logins for that user succeed with any password. A cached authentication skips the LDAP bind, and the AllowAllCredentialsMatcher installed by default in DefaultLdapRealm accepts any credentials, allowing an attacker who knows a valid username to authenticate as that user. This issue affects all Apache Shiro versions through 3.0.0, only when using DefaultLdapRealm (or JndiLdapRealm) with authenticationCachingEnabled set to true, which is not the default. Mitigation: Upgrade to version 3.0.1 or later, which fixes the issue by no longer installing AllowAllCredentialsMatcher by default. Alternatively, disable authentication caching on the LDAP realm (this is the default), or configure a credentials matcher, such as SimpleCredentialsMatcher, that verifies credentials against the cached authentication info.
Fix within
Internet-facing 14 days
Internal At next upgrade
  • Not known to be exploited
  • Needs hands-on effort to exploit
  • Gives an attacker full control
Severity
9.1 Critical
Exploitation
<1% chance of attack within 30 days
Type
CWE-287Improper Authentication
Timeline
Published15 Nov 2026
Updated3 Dec 2026
First seen14 Nov 2026
Track software like this
Free during beta