Vulnerabilities in pkg:maven/org.apache.shiro/shiro-spring
PACKAGECVE-2026-23903 is a MODERATE (CVSS 5.3) authentication bypass vulnerability (CWE-289: Authentication Bypass by Alternate Name) affecting Spring Framework libraries in the Maven ecosystem. The issue involves apache shiro has an authentication bypass. Remediation is available by upgrading affected packages to version 2.1.0.
pkg:maven/org.apache.shiro/shiro-spring
Vulnerability advisories affecting package pkg:maven/org.apache.shiro/shiro-spring. Select an advisory below to view technical details or fixes.
| Advisory ID | CVE / NVD | Severity | Summary |
|---|---|---|---|
| GHSA-c244-p6m5-vqj6 | CVE-2026-23903 | MODERATE | Apache Shiro has an Authentication Bypass |
| GHSA-v98j-7crc-wvrj | CVE-2020-17523 | CRITICAL | Authentication bypass in Apache Shiro |
| GHSA-7cj4-gj8m-m2f7 | CVE-2020-17510 | CRITICAL | Authentication bypass in Apache Shiro |
CVE-2026-23903 at a Glance
Security Impact
CVSS: 5.3
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N).
How to Fix CVE-2026-23903
To remediate this vulnerability, upgrade all affected Spring Framework dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
<dependency>
<groupId>org.apache.shiro</groupId>
<artifactId>shiro-spring</artifactId>
<version>2.1.0</version>
</dependency>
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
mvn dependency:tree -Dincludes=org.apache.shiro
How to Check if You Are Affected
To determine whether your Java application is affected by CVE-2026-23903, inspect your build dependencies using the Maven Dependency Plugin:
mvn dependency:tree -Dincludes=org.apache.shiro
Analyze the terminal output to locate any version of Spring Framework in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2.1.0), your application is affected.
Note: The mvn dependency:tree -Dincludes=org.apache.shiro command inspects the resolved dependency graph declared in your project's POM files; it does not perform automated security scanning or inspect runtime dynamic classpaths. Always verify runtime container classpaths and shaded JARs.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-289: Authentication Bypass by Alternate Name, where the product performs authentication based on the name of a resource being accessed, or the name of the actor performing the access, but it does not properly check all possible names for that resource or actor. In Spring Framework, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2026-23903 Affected Spring Framework Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
org.apache.shiro:shiro-spring
|
Maven |
< 2.1.0
|
2.1.0
|
References
Frequently Asked Questions
What is CVE-2026-23903?
Which Spring Framework versions are affected?
What version fixes CVE-2026-23903?
Is shiro-spring affected?
What is the CVSS score of CVE-2026-23903?
What CWE is associated with CVE-2026-23903?
How can I check Maven dependencies for CVE-2026-23903?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-c244-p6m5-vqj6",
"modified" : "2026-02-11T19:48:43Z",
"published" : "2026-02-09T12:30:22Z",
"aliases" : [ "CVE-2026-23903" ],
"summary" : "Apache Shiro has an Authentication Bypass",
"details" : "### Impact\n\n**Authentication Bypass:**\nA vulnerability exists in Apache Shiro that allows authentication bypass for static files when served from a case-insensitive filesystem (such as the default configuration on macOS or Windows).\n\nThe issue arises when Shiro's URL filters are configured with lower-case rules (a common default), but the underlying operating system treats mixed-case filenames as identical. An attacker can access protected static resources by varying the capitalization of the filename in the request (e.g., requesting `/SECRET.TXT` to bypass a rule for `/secret.txt`).\n\nThis issue specifically affects static file handling and does not impact dynamic resource paths that are case-sensitive.\n\n### Patches\nUsers should upgrade to Apache Shiro **2.1.0** or later.\n\n**Important Configuration Note:**\nVersion 2.1.0 introduces a new configuration parameter to handle case-insensitivity, which must be enabled manually to resolve the issue:\n\n* **shiro.ini:**\n ```ini\n filterChainResolver.caseInsensitive = true\n ```\n* **Spring Boot (application.properties):**\n ```properties\n shiro.caseInsensitive=true\n ```\n\n*Note: Apache Shiro 3.0.0 (upcoming) will enable this setting by default.*\n\n### Workarounds\n* Ensure that the filesystem hosting the application is case-sensitive (e.g., Linux/Unix).\n* Manually configure all Shiro filter chains to handle all possible case variations of protected filenames (not recommended due to complexity).\n\n### Resources\n* [CVE-2026-23903](https://nvd.nist.gov/vuln/detail/CVE-2026-23903)\n* [Mailing List Announcement](https://lists.apache.org/thread/5jjf0hnjcol58z2m5y255c7scz1lnp8k)\n* [OSS-Security List](http://www.openwall.com/lists/oss-security/2026/02/08/1)",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Maven",
"name" : "org.apache.shiro:shiro-spring"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "2.1.0"
} ]
} ],
"database_specific" : {
"last_known_affected_version_range" : "<= 2.0.6"
}
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-23903"
}, {
"type" : "WEB",
"url" : "https://github.com/apache/shiro/commit/3b9638b957495004599aeaf24ba8949e309f26e8"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/apache/shiro"
}, {
"type" : "WEB",
"url" : "https://lists.apache.org/thread/5jjf0hnjcol58z2m5y255c7scz1lnp8k"
}, {
"type" : "WEB",
"url" : "http://www.openwall.com/lists/oss-security/2026/02/08/1"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-289" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2026-02-11T19:48:43Z",
"nvd_published_at" : "2026-02-09T10:15:57Z"
}
}