CVE-2026-129349
Apache Shiro: DefaultLdapRealm accepts any password when authentication caching is enabled
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)
| Artifact | Affected versions | Fixed in |
|---|---|---|
| org.apache.shiro » shiro-corepreliminary | < 3.0.1 | 3.0.1 |
Blast radius
73% of the dependent artifacts (3,066) still pull an affected version in their latest release.
| Depth | Dependent 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
- org.apache.kafka » kafka-clients3,135 usages
- org.apache.kafka » kafka1,450 usages
- org.apache.kafka » connect-api1,026 usages
- org.apache.kafka » connect-transforms659 usages
- org.apache.kafka » kafka-streams513 usages
- org.apache.solr » solr-core500 usages
- org.apereo.cas » cas-server-core-util-api492 usages
- org.apache.shiro » shiro-web460 usages
- org.apereo.cas » cas-server-core-authentication-api400 usages
- org.apache.shiro » shiro-spring312 usages
- org.apache.camel.quarkus » camel-quarkus-maven-plugin302 usages
- org.apereo.cas » cas-server-core-util296 usages
- org.apereo.cas » cas-server-core-web-api288 usages
- org.apereo.cas » cas-server-core-services280 usages
- org.neo4j » neo4j269 usages
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.
