CRITICAL 9.1

CVE-2026-129349

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

Preliminary: affected artifacts were declared by the CNA in the CVE record and have not been reviewed yet. They will be replaced by the reviewed advisory when it is published.

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 Maven artifacts (1)

ArtifactAffected versionsFixed in
org.apache.shiro » shiro-corepreliminary
< 3.0.1
3.0.1

Blast radius

1affected artifacts
54affected versions
4,147dependent artifacts (est.)
162,803dependent versions

73% of the dependent artifacts (3,066) still pull an affected version in their latest release.

DepthDependent versions
Direct
30,492
2 hops
69,150
3 hops
41,226
4 hops
14,916
5 hops
5,176
6 hops
1,843

Most used dependents

Computed from the dependency graph of build 20261124.0621 (compile and runtime scopes, nearest version wins). Exclusions and dependency management in consuming projects are not applied, so dependents are potentially affected. When several artifacts are affected, a dependent version that pulls more than one of them is counted once per artifact.