Spring Security's authorization rules can be misconfigured when using multiple servlets
High severity
GitHub Reviewed
Published
Jul 18, 2023
to the GitHub Advisory Database
•
Updated Nov 6, 2023
Package
Affected versions
>= 5.8.0, < 5.8.5
>= 6.0.0, < 6.0.5
>= 6.1.0, < 6.1.2
Patched versions
5.8.5
6.0.5
6.1.2
Description
Published by the National Vulnerability Database
Jul 18, 2023
Published to the GitHub Advisory Database
Jul 18, 2023
Reviewed
Jul 19, 2023
Last updated
Nov 6, 2023
Spring Security versions 5.8 prior to 5.8.5, 6.0 prior to 6.0.5, and 6.1 prior to 6.1.2 could be susceptible to authorization rule misconfiguration if the application uses requestMatchers(String) and multiple servlets, one of them being Spring MVC’s DispatcherServlet. (DispatcherServlet is a Spring MVC component that maps HTTP endpoints to methods on @Controller-annotated classes.)
Specifically, an application is vulnerable when all of the following are true:
An application is not vulnerable if any of the following is true:
References