All CVEs / Apache Software Foundation
CVE-2026-129349Apache Software Foundation Apache Shiro
Insecure Authentication Caching in Apache Shiro DefaultLdapRealm
Critical 9.1 No auth needed
- Priority
- 74
- CVSS 4.0
- 9.1
- EPSS
- —
- Auth required
- No
- Published
- Nov 15, 2026
- Updated
- Nov 20, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-287
- SSVC (CISA)
- Exploitation: none · Automatable: no · Technical impact: total
- 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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:N/AU:Y/R:U/V:C/RE:L/U:Red
What happens
Apache Shiro versions through 3.0.0 contain an authentication bypass when authentication caching is enabled on DefaultLdapRealm or JndiLdapRealm. After the first successful login, any password is accepted for that user because the default credentials matcher (AllowAllCredentialsMatcher) does not verify cached credentials. An attacker knowing a valid username can authenticate without the correct password.
AI-generated summary (Claude) based on NVD and CISA data. Not reviewed yet: check the details in the vendor advisory.
Show the original NVD text
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.
What to do
Patch available · fixed versions: 3.0.1
Upgrade Apache Shiro to version 3.0.1 or later. Alternatively, disable authentication caching on the LDAP realm (default setting) or configure a credentials matcher such as SimpleCredentialsMatcher.
Vendor advisory · lists.apache.org ↗
AI-generated from public data; not reviewed.
- Apply the vendor's security update for Apache Shiro.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected products
- Apache Software Foundation · Apache Shiro
As reported by the CNA that published the CVE. NVD has not added CPEs with versions yet.
On social media
1 person and 1 post on Bluesky in the last 30 days.
Most recent posts, without bots or automated feeds. The text belongs to its authors. Search on Bluesky
Official sources
References
Links published by the sources. Open them with care.