Apache Shiro: DefaultLdapRealm accepts any password when authentication caching is enabled
CVE-2026-129349Published 15 Nov 2026, 09:31 UTC
Real-world risk
3.4/ 10Low
Routine
If the vulnerable configuration applies to you: 7.6
PreliminaryFrom the CVSS vector only · confidence low
CVSS
9.1
scored by the vendor (CNA), CVSS 4.0
In plain words
No plain-language summary yet. The original description is below.
Original description (from apache)
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.
Am I affected?
| Product | Affected versions (from the sources) | Fixed in |
|---|---|---|
| Apache ShiroCommon | < 3.0.1 | 3.0.1 |
What to do
Update to a fixed version: 3.0.1.
Why this score
| Factor | Value | Evidence | × |
|---|---|---|---|
| Impact | Major data exposureReads secrets, credentials, databases, arbitrary files | From the CVSS vector | 0.80 |
| Attacker position | InternetAnyone on the Internet can reach a typical deployment | From the CVSS vector | 1.00 |
| Privileges needed | NoneNo account | From the CVSS vector | 1.00 |
| Victim interaction | NoneNothing | From the CVSS vector | 1.00 |
| Configuration | UncommonNeeds a non-default feature that a minority enables | From the CVSS vector | 0.45 |
| Reliability | ReliableDeterministic: injection, logic bug, path traversal | From the CVSS vector | 1.00 |
Threat level T3: Public proof of concept (× 0.95)
A qualifying GitHub proof of concept, an unverified Exploit-DB entry, CISA's SSVC says PoC, or a reference tagged as an exploit
- Public proof of concept on GitHub
EPSS 0.6% chance of exploitation in 30 days (percentile 49), as of 2026-12-02.
The arithmetic
- Prerequisites multiplied together0.450
- Threat T3: Public proof of concept0.950
- 10 × impact 0.8 × prerequisites 0.45 × threat 0.953.420
- Rounded to one decimal between 0.1 and 103.4
Exploitation and evidence timeline
- 15 Nov 2026 Published
- 3 Dec 2026 Public proof of concept on GitHub first seen
- 3 Dec 2026 Risk 3.4 (cvss fallback)
Weakness
CWE-287