ADVISORIES

GitHub Advisory Database

GHSA-7phw-cxx7-q9vq

Spring Framework is vulnerable to security bypass via mvcRequestMatcher pattern mismatch

Critical CVE-2023-20860

Details

Spring Framework running version 6.0.0 - 6.0.6 or 5.3.0 - 5.3.25 using "**" as a pattern in Spring Security configuration with the mvcRequestMatcher creates a mismatch in pattern matching between Spring Security and Spring MVC, and the potential for a security bypass.

Affected packages

EcosystemPackageAffected versions
Mavenorg.springframework:spring
From 6.0.0 before 6.0.7 (fixed in 6.0.7)
Mavenorg.springframework:spring
From 5.3.0 before 5.3.26 (fixed in 5.3.26)
Mavenorg.springframework:spring-webmvc
From 6.0.0 before 6.0.7 (fixed in 6.0.7)
Mavenorg.springframework:spring-webmvc
From 5.3.0 before 5.3.26 (fixed in 5.3.26)

References