CVE-2026-129349Apache Shiro: DefaultLdapRealm accepts any password when authentication caching is enabled
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.
What to do
Debian, Ubuntu have not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.10 | shiro | Fix pending | UBUNTU-CVE-2026-129349 | |
| Ubuntu 26.04 | shiro | Under investigation | UBUNTU-CVE-2026-129349 | |
| Ubuntu 24.04 | shiro | Fix pending | UBUNTU-CVE-2026-129349 | |
| Ubuntu 22.04 | shiro | Under investigation | UBUNTU-CVE-2026-129349 | |
| Ubuntu 20.04 | shiro | Fix pending | UBUNTU-CVE-2026-129349 | |
| Ubuntu 18.04 | shiro | Fix pending | UBUNTU-CVE-2026-129349 | |
| Ubuntu 16.04 | shiro | Fix pending | UBUNTU-CVE-2026-129349 | |
| Debian 14 | shiro | Fix pending | DEBIAN-CVE-2026-129349 | |
| Debian 13 | shiro | Fix pending | DEBIAN-CVE-2026-129349 | |
| Debian 12 | shiro | Fix pending | DEBIAN-CVE-2026-129349 |
What the vendor says
As published in the CVE record by apache, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- Apache Software Foundation Apache Shiro: affected: before 3.0.1; fixed in
3.0.1
Vendor advisories:
- https://lists.apache.org/thread.html/1whn52ht402lhc782c3s843c9hho8b4y (vendor-advisory)
References
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.