Exploited now
Vulnerability WatchVulnerabilities, exploits & advisories — updated every 15 minutes
Alerts

Home › CVE › Apache

CVE-2026-129349 — Apache Software Foundation Apache Shiro

Critical · CVSS 9.1EPSS 0.6% First seen November 14, 2026
ApacheWebIdentity & authVulnerabilities

Research article

Apache Shiro Authentication Cache Flaw in DefaultLdapRealm

CVECVE-2026-129349
Vendor and productApache Software Foundation Apache Shiro
PublishedNovember 18, 2026 08:30 UTC
Research cut-offNovember 18, 2026 08:05 UTC
Sources reviewed5: 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 IDVendorProductCWECVSS 4.0PublishedLast ModifiedRecord Status
CVE-2026-129349Apache Software FoundationApache ShiroCWE-2879.1 CRITICAL, scored by security@apache.org2026-11-15T10:16:532026-11-17T16:17:51Received

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 VersionFixed Version
Apache Shiro < 3.0.13.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

  1. Upgrade Apache Shiro to version 3.0.1 or later [1].
  2. Disable authentication caching on the LDAP realm [3].
  3. Configure a credentials matcher, such as SimpleCredentialsMatcher, to verify credentials against cached authentication information [1].
  4. Review access logs for any unauthorized activity [3].
  5. Isolate affected systems if exploitation is suspected [3].
  6. 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

  1. 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. CVE record details, CVSS scores, affected versions, mitigation steps
  2. 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. CISA KEV status, indicating no exploitation is reported
  3. Vendor bulletin page (seclists.org). seclists.org. https://seclists.org/oss-sec/2026/q4/705. Accessed 2026-11-18. Technical background, vulnerability description, root cause, impact, mitigation, and CVSS details
  4. Further facts from the advisories reviewed. seclists.org. https://seclists.org/oss-sec/2026/q4/705. Accessed 2026-11-18. Vendor recommendation to upgrade to version 3.0.1 or later
  5. 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. EPSS score and its statistical context

Written with AI assistance from the 5 sources listed above, as of the research cut-off; each fact is cited to its source. Check the vendor's advisory before acting.

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.

Description: NIST National Vulnerability Database (public domain)

Severity breakdown

Critical · 9.1 CVSS 4.0 base score 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.

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

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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:N/AU:Y/R:U/V:C/RE:L/U:Red

Weakness

Affected and fixed versions

ProductAffected versionsFixed in
Apache Software Foundation Apache Shiro< 3.0.13.0.1

From the vendor's CVE record; confirm with the vendor advisory before relying on a version number.

References by type

Other references

Details from NVD (public domain).

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

References

Related vulnerabilities & news