CVE-2026-129349 Apache Shiro: DefaultLdapRealm accepts any password when authentication caching is enabled
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: no · technical impact: total
- Technology
- UbuntuDebian
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.
Upgrade path
8 packages: 1 fixed, 7 with no fix yet.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| debian/shiro(Debian 12) | = 1.3.2-5; = 1.3.2-6; All versions | No fix listed | No fix yet |
| debian/shiro(Debian 13) | = 1.3.2-6; All versions | No fix listed | No fix yet |
| debian/shiro(Debian 14) | = 1.3.2-6; All versions | No fix listed | No fix yet |
| ubuntu/shiro(Ubuntu 22.04) | All versions | No fix listed | No fix yet |
| ubuntu/shiro(Ubuntu 24.04) | All versions | No fix listed | No fix yet |
| ubuntu/shiro(Ubuntu 26.04) | All versions | No fix listed | No fix yet |
| ubuntu/shiro(Ubuntu 26.10) | All versions | No fix listed | No fix yet |
| org.apache.shiro/shiro-core(Maven) | < 3.0.1 | 3.0.1 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| debian/shiro(Debian:12) | All versions | No fix listed |
| debian/shiro(Debian:14) | All versions | No fix listed |
| debian/shiro(Debian:13) | All versions | No fix listed |
| org.apache.shiro/shiro-core(Maven) | < 3.0.1 | 3.0.1 |
| ubuntu/shiro(Ubuntu:22.04) | All versions | No fix listed |
| ubuntu/shiro(Ubuntu:24.04) | All versions | No fix listed |
| ubuntu/shiro(Ubuntu:26.04) | All versions | No fix listed |
| ubuntu/shiro(Ubuntu:26.10) | All versions | No fix listed |
| debian/shiro(Debian:12) | = 1.3.2-5 | No fix listed |
| debian/shiro(Debian:12) | = 1.3.2-6 | No fix listed |
| debian/shiro(Debian:13) | = 1.3.2-6 | No fix listed |
| debian/shiro(Debian:14) | = 1.3.2-6 | No fix listed |
References
- Debian Security Tracker CVE-2026-129349 vendor-advisory
- lists.apache.org vendor-advisory
- www.openwall.com
- bugs.debian.org issue-tracking
- Ubuntu CVE tracker vendor-advisory
- www.cve.org
- ENISA EUVD EUVD-2026-126005 third-party-advisory