Urgent
Apache Shiro LDAP authentication cache accepts any password
CVE-2026-129349
Java app logins can be passed with any password!
- CVE
- CVE-2026-129349 (opens in a new tab)
- Score
- CVSS 9.1
- First seen
9.1
Products
Mitigation
Update Apache Shiro to 3.0.1 or later. Until then, turn off authentication caching on the LDAP realm (the default), or configure a credentials matcher such as SimpleCredentialsMatcher.
Summary
Apache Shiro's DefaultLdapRealm, with authentication caching enabled, lets a user who has logged in once sign in with any password afterward. An attacker who knows the username can log in as that user; versions through 3.0.0 are affected.
Affected when
- DefaultLdapRealm or JndiLdapRealm in use
- authenticationCachingEnabled set to true (not the default)
3 other Incidents of this product in the last 30 days
Incidents by product: Apache Shiro
Distribution packages (2) (every link below opens in a new tab)
- Debian 13 (trixie)shiro · not fixed yet
- Debian 12 (bookworm)shiro · not fixed yet
Sources: Debian Security Tracker
Read the advisory · lists.apache.org (opens in a new tab)
- Advisory: lists.apache.org (opens in a new tab)
- Write-up: shiro.apache.org (opens in a new tab)
- CVE record: cve.org (opens in a new tab)
- Discussion: CVE-2026-129349: Apache Shiro: DefaultLdapRealm accepts any password when authentication caching is enabled (opens in a new tab)
- Discussion: Apache Shiro – Critical security advisories: LDAP realm and cookie fixes (opens in a new tab)
- Newsletter: Risky Bulletin: Hackers hijack Optimizely to deliver malware on 178 popular sites (opens in a new tab)
- Newsletter: Srsly Risky Biz: Phew! Some Regulatory Relief for AI Hacks (opens in a new tab)
- Repository: googlesky/CVE-2026-129349 (opens in a new tab)