CVE-2026-129349 — Apache Software Foundation Apache Shiro
Research article
Apache Shiro Authentication Cache Flaw in DefaultLdapRealm
| CVE | CVE-2026-129349 |
|---|---|
| Vendor and product | Apache Software Foundation Apache Shiro |
| Published | November 18, 2026 08:30 UTC |
| Research cut-off | November 18, 2026 08:05 UTC |
| Sources reviewed | 5: NVD record (last modified 2026-11-17); CISA KEV catalog; vendor advisory page (seclists.org); FIRST EPSS (2026-11-17) |
Executive summary
A critical flaw in Apache Shiro's DefaultLdapRealm allows attackers to bypass LDAP bind checks after a successful login, granting unauthorized access to user accounts [1]. The CVSS 4.0 score is 9.1, CRITICAL, with the vulnerability affecting versions prior to 3.0.1 [3]. The reviewed sources do not report exploitation [2]. The main action is to upgrade to version 3.0.1 or later [1].
Key points
- A critical flaw in Apache Shiro's DefaultLdapRealm allows attackers to bypass LDAP bind checks after a successful login [3].
- The vulnerability affects versions of Apache Shiro prior to 3.0.1 and is fixed in 3.0.1 [1].
- The reviewed sources do not report exploitation of this vulnerability [2].
- The CVSS 4.0 score is 9.1, CRITICAL, with the vulnerability impacting confidentiality and integrity [3].
- The main action is to upgrade to version 3.0.1 or later and disable authentication caching [1].
Vulnerability identification
| CVE ID | Vendor | Product | CWE | CVSS 4.0 | Published | Last Modified | Record Status |
|---|---|---|---|---|---|---|---|
| CVE-2026-129349 | Apache Software Foundation | Apache Shiro | CWE-287 | 9.1 CRITICAL, scored by security@apache.org | 2026-11-15T10:16:53 | 2026-11-17T16:17:51 | Received |
Technical background
The sources do not describe the product's architecture or functionality beyond its role in authentication mechanisms. The Apache Shiro project provides a framework for authentication and authorization in Java applications, but no source gives a detailed technical description of its internal operations [1].
Vulnerability description
A flaw exists in the authentication caching mechanism of the DefaultLdapRealm, which allows an attacker to bypass LDAP bind checks after a successful login. This enables unauthorized access to user accounts, as the system accepts any password for subsequent logins [3]. The vulnerability is only present when authentication caching is explicitly enabled on the LDAP realm [1].
Root cause analysis
The sources state that the root cause is improper handling of cached authentication data, which bypasses necessary credential verification steps. This results in the system accepting any credentials after a successful initial login [3].
Technical mechanics
The sources describe that cached authentication skips the LDAP bind process, and the AllowAllCredentialsMatcher installed by default accepts any credentials. An attacker with knowledge of a legitimate username can impersonate that user [1]. The exact mechanics of how the cache is stored or validated are not described in the sources [1].
Attack surface and exploitation prerequisites
The attack requires access to the system where authentication caching is enabled and knowledge of a valid username. The attacker does not need user interaction, as the CVSS 4.0 vector shows no user interaction (UI:N) [1].
Exploitation scenarios and attack lifecycle
The sources do not describe specific attack scenarios or the full lifecycle of an exploit. The reviewed sources describe the mechanism but do not describe specific attack steps an attacker would take [1].
Impact analysis
The vulnerability allows unauthorized access to user accounts, enabling an attacker to impersonate a valid user. According to the CVSS vector, the confidentiality and integrity of the system are significantly impacted, while availability is not affected [3].
Affected products and versions
| Affected Version | Fixed Version |
|---|---|
| Apache Shiro < 3.0.1 | 3.0.1 |
The reviewed sources do not mention any other affected products or versions beyond Apache Shiro [1].
Exploitation and threat intelligence status
CVE-2026-129349 is not listed in the CISA Known Exploited Vulnerabilities Catalog as of 2026-11-18 [2]. The EPSS score for this vulnerability is 0.60%, indicating a low probability of exploitation in the next 30 days [5].
Indicators of compromise
The sources give no indicators of compromise for this vulnerability [1].
Detection and exposure assessment
Check installed versions of Apache Shiro against the affected versions. If a version prior to 3.0.1 is in use, it is vulnerable [1].
Immediate mitigation
Disable authentication caching on the LDAP realm or configure a credentials matcher that verifies credentials against cached authentication information. This is the default configuration for DefaultLdapRealm [3].
Permanent remediation
Upgrade Apache Shiro to version 3.0.1 or any newer release, since that version stops setting up AllowAllCredentialsMatcher automatically [1].
Workarounds and compensating controls
The sources give disabling authentication caching or configuring a credentials matcher as mitigations [1][3].
Validation and verification
Confirm the installed version of Apache Shiro after applying any updates. Verify that authentication caching is disabled or that a credentials matcher is configured to prevent unauthorized access [3].
Incident response
If exploitation is suspected, isolate the affected system and review access logs for any unauthorized activity. Contact the Apache Shiro project for further guidance [3].
Security hardening and prevention
Implement access controls to limit the use of authentication caching. Regularly review and update authentication mechanisms to ensure they are configured securely [3].
Risk assessment
The CVSS 4.0 score is 9.1, CRITICAL, scored by security@apache.org [1]. The reviewed sources do not report exploitation [2]. The EPSS score is 0.60%, indicating a low probability of exploitation in the next 30 days [5].
Conclusion
A critical flaw in Apache Shiro's DefaultLdapRealm allows attackers to bypass LDAP bind checks after a successful login, granting unauthorized access to user accounts. The vulnerability is fixed in Apache Shiro version 3.0.1 and later. Defenders should upgrade to the fixed version and ensure authentication caching is disabled or configured securely to prevent exploitation [1].
Remediation checklist
- Upgrade Apache Shiro to version 3.0.1 or later [1].
- Disable authentication caching on the LDAP realm [3].
- Configure a credentials matcher, such as SimpleCredentialsMatcher, to verify credentials against cached authentication information [1].
- Review access logs for any unauthorized activity [3].
- Isolate affected systems if exploitation is suspected [3].
- Confirm the installed version of Apache Shiro after applying updates [3].
Evidence gaps
- The sources do not describe the exact mechanics of how cached authentication is stored or validated [1].
- The reviewed sources do not provide a complete version range of affected products [1].
- The vulnerability's fixed version is only listed as 3.0.1, with no mention of later versions [1].
- The reviewed sources do not provide evidence of exploitation [2].
- The sources give no indicators of compromise for this vulnerability [1].
References
- CVE-2026-129349 record. NIST National Vulnerability Database (NVD), 2026-11-17. https://nvd.nist.gov/vuln/detail/CVE-2026-129349. Accessed 2026-11-18.
- Known Exploited Vulnerabilities Catalog. Cybersecurity and Infrastructure Security Agency (CISA), 2026-11-18. https://www.cisa.gov/known-exploited-vulnerabilities-catalog. Accessed 2026-11-18.
- Vendor bulletin page (seclists.org). seclists.org. https://seclists.org/oss-sec/2026/q4/705. Accessed 2026-11-18.
- Further facts from the advisories reviewed. seclists.org. https://seclists.org/oss-sec/2026/q4/705. Accessed 2026-11-18.
- EPSS score for CVE-2026-129349. FIRST, 2026-11-17. https://api.first.org/data/v1/epss?cve=CVE-2026-129349. Accessed 2026-11-18.
Summary
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.
Severity breakdown
Critical · 9.1
An attacker without an account can exploit this over the network, without any user action, but only under specific conditions.
- Attack from
- the network (remotely)
- Attack complexity
- low (no special conditions)
- Special conditions
- only in some setups or conditions
- Login needed
- no
- User action needed
- no
- Impact
- high on confidentiality and integrity, none on availability
- Impact on other systems
- none
Weakness
- CWE-287: Improper Authentication
Affected and fixed versions
| Product | Affected versions | Fixed in |
|---|---|---|
| Apache Software Foundation Apache Shiro | < 3.0.1 | 3.0.1 |
References by type
Other references
Affected
- Apache Software Foundation Apache Shiro
Frequently asked questions
What is CVE-2026-129349?
A critical flaw in Apache Shiro's DefaultLdapRealm allows attackers to bypass LDAP bind checks after a successful login, granting unauthorized access to user accounts. The CVSS 4.0 score is 9.1, CRITICAL, with the vulnerability affecting versions prior to 3.0.1. The reviewed sources do not report exploitation. The main action is to upgrade to version 3.0.1 or later. Weakness type: Improper Authentication (CWE-287).
How severe is CVE-2026-129349?
CVE-2026-129349 has a CVSS 4.0 base score of 9.1 (critical), from the CNA (apache.org). An attacker without an account can exploit this over the network, without any user action, but only under specific conditions.
Is CVE-2026-129349 being exploited?
Not as far as is known: CVE-2026-129349 is not in CISA's Known Exploited Vulnerabilities catalog as of November 29, 2026. EPSS estimates a 0.6% chance that it is exploited in the next 30 days.
Which versions are affected by CVE-2026-129349?
Apache Software Foundation Apache Shiro < 3.0.1 (fixed in 3.0.1).
How do I fix CVE-2026-129349?
Upgrade Apache Shiro to version 3.0.1 or later. Disable authentication caching on the LDAP realm. Configure a credentials matcher, such as SimpleCredentialsMatcher, to verify credentials against cached authentication information.
Timeline & sources
- oss-security: CVE-2026-129349: Apache Shiro: DefaultLdapRealm accepts any password when authentication caching is enabled
- NVD: CVE-2026-129349 — Apache Software Foundation Apache Shiro
References
Related vulnerabilities & news
- Apache Shiro ActiveDirectoryRealm Flaw Allows Login With Empty Username (CVE-2026-137686)
- Ubuntu patches Apache::Session::Browseable so LDAP certificate checks are on by default
- Apache WSS4J Vulnerability Allows Replay Attacks in Certain Configurations
- Apache APISIX Vulnerability Allows Identity Spoofing
- Apache APISIX Authorization Flaw Affects Multiple Versions