Apache Shiro CVE-2026-137686: ActiveDirectoryRealm auth bypass via empty username
Apache Shiro versions through 3.0.1 allow unauthenticated login when ActiveDirectoryRealm lacks principalSuffix and the directory permits anonymous binds.
Reported by oss-security
First reported Summary updated
- Public PoC
- Yes
- Exploited
- Not known
- CVSS
- 6.3 Medium
What happened
The earlier fix for CVE-2014-0074 did not fully address ActiveDirectoryRealm, which continued to treat an empty username and password as an anonymous LDAP bind.1
This allowed an unauthenticated user to log in with an empty principal.1
The issue is tracked as CVE-2026-137686 and rated CVSS 4.0 6.3 (medium).1
Who is affected
- Apache Shiro (org.apache.shiro:shiro-core), before 3.0.21
Is there a public exploit?
Yes, public Public PoC or exploit code has been published, listed below.
- Reference issues.apache.org/jira/browse/SHIRO-460
PoC code comes from strangers and is not checked by us. Read it before you run it, and only run it in a lab or against targets you are allowed to test.
Exploited in the wild?
Not known None of the sources reports attacks using it so far.
What to do
- Upgrade to Apache Shiro 3.0.2 or later.1
- Alternatively, set principalSuffix on the realm.1
- Or disable anonymous binds on the directory server.1
Vendor advisories and patches: issues.apache.org/jira/browse/SHIRO-460
For bug hunters
This is an authentication bypass caused by accepting empty credentials during an LDAP bind. Similar flaws appear in login and directory-integration endpoints where empty or missing fields are treated as valid. Test whether submitting an empty username or password returns an authenticated session or different error behaviour.
What to test
- Submit an empty username and password to login endpoints and check for authenticated sessions.
- Try omitting username or password fields entirely and compare responses.
- Test LDAP-backed login forms with blank credentials against anonymous bind behaviour.
- Check whether empty principals receive default roles or access to protected pages.
Written by bugbounty.wiki with AI from its source. Every statement above comes with a quote we checked against the source it cites (the numbers link to it); anything we could not check was left out. It can still be wrong, so read the coverage before relying on a detail.
Coverage
The article this story is based on. Each headline opens the outlet's own article.
-
1
oss-security
CVE-2026-137686: Apache Shiro: Authentication bypass in ActiveDirectoryRealm via empty username (incomplete fix for CVE-2014-0074)“The fix for CVE-2014-0074 https://shiro.apache.org/security-reports.html#cve20140074 was incomplete for ActiveDirectoryRealm, which still accepted an empty username and password as an anonymous LDAP bind.”