Exploit database

Vulnerability

CVE-2026-129349

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

Vulnerability details

Score
9.1
Severity
critical

CVSS 4.0 · apache

Vector string

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

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.

CVE Program

Exploit source choices

1 source
googlesky/cve-2026-129349
GH-c36f8693861ae2918e895481bc80cebcGitHubUnofficial GitHub sourcePreferred

Apache Shiro <=3.0.0 DefaultLdapRealm + authenticationCachingEnabled: one valid login, then ANY password (incl. empty) authenticates — cached auth skips the LDAP bind and AllowAllCredentialsMatcher accepts everything. Real realm + real in-memory LDAP; only diff is shiro 3.0.0 vs fixed 3.0.1.

2026-11-1524 files · 4 stars