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
- 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.
Affected software
| Software | Affected versions |
|---|---|
org.apache.shiro:shiro-coreMaven · osv:Maven:org.apache.shiro:shiro-core |
|
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
- CVE-2026-129348Apache Shiro: PropertiesRealm reload does not remove deleted users or narrowed permissionsLow 2.3 16 Nov 2026
- CVE-2026-129347Apache Shiro: Empty stored credential matches an empty submitted passwordLow 2.3 16 Nov 2026
- CVE-2026-74762Apache Shiro: Possible session fixation with RememberMeMedium 5.9 16 Nov 2026
References
- CVE.org https://www.cve.org/CVERecord?id=CVE-2026-129349