All vulnerabilities

Maven

CVE-2026-129349

Apache Shiro: DefaultLdapRealm accepts any password when authentication caching is enabled

Severity
Critical 9.1
Published
15 Nov 2026
Last changed
17 Nov 2026
Added to UpHeron
23 Nov 2026
Fixed in
3.0.1
Exploit chance
0.6% in the next 30 daysHigher than 48% of CVEs. EPSS by FIRST, 24 Nov 2026
Weakness
Improper authentication (CWE-287)
Attack
Over the network · Only under certain conditions · No login needed · No user action needed
Attacker can
Read data · Change data
CVSS vector
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N/S:N/AU:Y/R:U/V:C/RE:L/U:Red
Sources
CVE Program

Description

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.

From the CVE Program.

Affected software

SoftwareAffected versions
org.apache.shiro:shiro-coreMaven · osv:Maven:org.apache.shiro:shiro-core
  • Every version before 3.0.1

About org.apache.shiro:shiro-core

Vulnerabilities in org.apache.shiro:shiro-core

In our list
4
Published in the last 12 months
4
Critical, last 12 months
1
High, last 12 months
0
Known exploited
0
Search the list for org.apache.shiro:shiro-core

References

  • CVE.org https://www.cve.org/CVERecord?id=CVE-2026-129349