Apache Shiroの認証回避脆弱性、修正版は3.0.1
Summary
DefaultLdapRealmで認証キャッシュを有効にしたApache Shiroでは、一度ログインしたユーザーに任意のパスワードで入れます。3.0.1より前を使うJavaアプリは、設定を確認して修正版へ更新してください。
AI summary
Produced by SecPulse using an external AI model; it may contain mistakes. Check the original description and references below before acting on it.
DefaultLdapRealmで認証キャッシュを有効にしたApache Shiroでは、一度ログインしたユーザーに任意のパスワードで入れます。3.0.1より前を使うJavaアプリは、設定を確認して修正版へ更新してください。
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| Apache Software FoundationApache Shiro |
< 3.0.1→ 3.0.1 |
3.0.1 |
Fix status by distribution
Records published by each distribution for this CVE. Fixed versions differ by release; check each link.
- Debian DEBIAN-CVE-2026-129349 shiro No fixed version in this record
- Ubuntu UBUNTU-CVE-2026-129349 shiro No fixed version in this record
Original description The description as published by the source.
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.
Source: oss-security (Openwall) NVD GitHub Advisory