CVE-2026-129349 Apache Shiro: DefaultLdapRealm accepts any password when authentication caching is enabled
Attackers knowing a username can log in as that user with any password when LDAP caching is enabled in Apache Shiro.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Harmful if only installed
- No
- Needs a specific call
- Yes
- Fix
- None listed
What is CVE-2026-129349?
CVE-2026-129349 is a critical authentication bypass vulnerability in Apache Shiro, published on 15 Nov 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official 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.
Weakness: CWE-287
Which versions are affected by CVE-2026-129349?
1 open source package ship an affected version, including org.apache.shiro:shiro-core.
An affected version is only exploitable if your software calls DefaultLdapRealm or AllowAllCredentialsMatcher. Many projects that include it are not exposed.
| Package | Affected | Fixed in |
|---|---|---|
org.apache.shiro:shiro-core Mavenpkg:maven/org.apache.shiro/shiro-core | All versions | 3.0.1 |
How do I fix CVE-2026-129349?
Upgrade org.apache.shiro:shiro-core to 3.0.1 or later.
Upgrade, and rotate credentials and sessions that may have been exposed. More about Authentication bypass.
Is CVE-2026-129349 being exploited?
There is no known exploitation of CVE-2026-129349 in the wild and no public exploit code.
Public exploit code: 1 proofs of concept on GitHub.
Sources
Also known as DEBIAN-CVE-2026-129349, GHSA-3j37-vw7v-fxxw, UBUNTU-CVE-2026-129349.