CVE-2021-41303: Apache Shiro vulnerable to a specially crafted HTTP request causing an authentication bypass
9.8
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.9806%
CWE
Published
9/20/2021
Updated
1/27/2023
KEV Status
No
Technology
Java
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
org.apache.shiro:shiro-core | maven | < 1.8.0 | 1.8.0 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems from how Shiro's path matching interacts with Spring Boot's URL normalization. The PathMatchingFilterChainResolver.getChain method is the core component responsible for matching incoming requests to security chains. In vulnerable versions, this method didn't account for Spring Boot's path handling behaviors, allowing specially crafted requests to bypass authentication. The function signature is identified based on Shiro's security architecture and known fixes in version 1.8.0 that modified path resolution logic in this class.