# CVE-2026-129349: Apache Shiro: DefaultLdapRealm accepts any password when authentication caching is enabled

- Severity: Critical 9.1 (CVSS:4.0, scored by apache) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.58%, higher than 49% of CVEs (2026-12-01)
- Published: 2026-11-15T09:31:50.485Z
- Modified: 2026-11-20T17:33:59.427Z
- Weaknesses: CWE-287
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: apache

## 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.

(As written by CVE List.)

## Affected

- org.apache.shiro:shiro-core: before 3.0.1

## References

- <https://lists.apache.org/thread.html/1whn52ht402lhc782c3s843c9hho8b4y> (vendor-advisory)
- <http://www.openwall.com/lists/oss-security/2026/11/14/8>

## Sources

- CVE List: [CVE-2026-129349](https://www.cve.org/CVERecord?id=CVE-2026-129349), CVE Terms of Use, modified 2026-11-17
- NVD: [CVE-2026-129349](https://nvd.nist.gov/vuln/detail/CVE-2026-129349), Public domain, modified 2026-11-20

---

Page: https://cve.day/CVE-2026-129349 · Whole record: https://cve.day/CVE-2026-129349.json · Rebuilt by cve.day 2026-11-25T22:59:50.822Z
