When using Apache Shiro before 1.11.0 together with Spring Boot 2.6+, a specially crafted HTTP request may cause an authentication bypass.
The authentication bypass occurs when Shiro and Spring Boot are using different pattern-matching techniques. Both Shiro and Spring Boot < 2.6 default to Ant style pattern matching.
Mitigation: Update to Apache Shiro 1.11.0, or set the following Spring Boot configuration value: spring.mvc.pathmatch.matching-strategy = ant_path_matcher
{
"cna_assigner": "apache",
"cwe_ids": [
"CWE-436"
],
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/22xxx/CVE-2023-22602.json",
"unresolved_ranges": [
{
"extracted_events": [
{
"fixed": "1.11.0"
}
],
"source": "DESCRIPTION"
}
]
}{
"cpe": "cpe:2.3:a:apache:shiro:*:*:*:*:*:*:*:*",
"extracted_events": [
{
"introduced": "0"
},
{
"fixed": "1.11.0"
}
],
"source": "CPE_RANGE"
}
{
"cpe": "cpe:2.3:a:vmware:spring_boot:2.6.0:\\+:*:*:*:*:*:*",
"extracted_events": [
{
"introduced": "2.6.0-\\+"
},
{
"last_affected": "2.6.0-\\+"
}
],
"source": "CPE_STRING"
}