CVE-2026-129349: Apache Shiro: When authentication caching is enabled on DefaultLdapRealm, after a user logs in successfully once, subsequent logins for that user succeed with any password
This Apache advisory covers CVE-2026-129349 in Apache Shiro.
- CVE-2026-129349
Key facts
- Vendor rating
- Critical, CVSS 9.1
- CVSS vector
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N/S:N/AU:Y/R:U/V:C/RE:L/U:Red· base score 9.1, scored by apacheAttack vector: network. Attack complexity: low. Attack requirements: present. Privileges required: none. User interaction: none. Confidentiality impact on the vulnerable system: high. Integrity impact on the vulnerable system: high. Availability impact on the vulnerable system: none. Confidentiality impact on subsequent systems: none. Integrity impact on subsequent systems: none. Availability impact on subsequent systems: none.- Weakness
- CWE-287 Improper Authentication
- EPSS
- 0.60% chance of exploitation in the next 30 days (49th percentile). FIRST EPSS, .
- CISA SSVC
- Exploitation: none observed. Automatable: no. Technical impact: total. CISA, .
- CISA KEV
- Not listed (catalogue checked )
- Affected
- through 3.0.0
- Fixed in
- 3.0.1
- Source published
- Source revised
- Listed by VulniPulse
- Record changed
Compiled by VulniPulse from the linked sources. How records are collected and checked.
Affected products & platforms
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.
Text from the source record.
How to fix CVE-2026-129349
Upgrade to a fixed release named by Apache:
- 3.0.1
Vendor guidance
- Mitigation: Upgrade to version 3.0.1 or later, which fixes the issue by no longer installing AllowAllCredentialsMatcher by default.
Workarounds
- 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.
More Apache Software Foundation advisories
CVE-2026-129348Nov 16, 2026Apache Shiro: When PropertiesRealm reloads its properties file, removed users and narrowedCVE-2026-129347Nov 16, 2026Apache Shiro: `DefaultPasswordService` and `SimpleCredentialsMatcher` could treat an emptyCVE-2026-74762Nov 16, 2026Apache Shiro is vulnerable to session fixationCVE-2026-74763Nov 16, 2026Apache Shiro: Authorization annotations, such as @RequiresRoles and @RequiresPermissionsCVE-2026-88019Nov 16, 2026When Apache Shiro is used with the Jakarta EE integration module, the automatic formCVE-2026-129320Nov 16, 2026Apache Shiro: The shiro:principal tags in shiro-web (Jakarta Pages) and shiro-jakarta-ee
Apache Software Foundation advisories, November 2026All Apache Software Foundation advisories
Get an email when Apache publishes the next one.
See Apache's last 90 days first. Live alerts for one product are free for life; every vendor is US$15 a month after a free month.