CVE-2023-34035: High severity VMware Spring Security vulnerability
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:
Spring MVC is on the classpath Spring Security is securing more than one servlet in a single application (one of them being Spring MVC’s DispatcherServlet) The application uses requestMatchers(String) to refer to endpoints that are not Spring MVC endpoints
An application is not vulnerable if any of the following is true:
The application does not have Spring MVC on the classpath The application secures no servlets other than Spring MVC’s DispatcherServlet The application uses requestMatchers(String) only for Spring MVC endpoints
Other sources
VMware Tanzu Spring Security could allow a remote attacker to bypass security restrictions, caused by a flaw when the application uses requestMatchers(String) and multiple servlets. By using a specially crafted configuration, an attacker could exploit this vulnerability to cause an authorization rule misconfiguration issue.
— IBM
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
maven/org.springframework.security:spring-security-configto a version that resolves this vulnerability.Fixed in 6.1.2 - Upgrade
Upgrade
maven/org.springframework.security:spring-security-configto a version that resolves this vulnerability.Fixed in 6.0.5 - Upgrade
Upgrade
maven/org.springframework.security:spring-security-configto a version that resolves this vulnerability.Fixed in 5.8.5 - Upgrade
Upgrade
Spring Securityto a version that resolves this vulnerability.Fixed in 5.8.5 - Upgrade
Upgrade
Spring Securityto a version that resolves this vulnerability.Fixed in 6.0.5 - Upgrade
Upgrade
Spring Securityto a version that resolves this vulnerability.Fixed in 6.1.2
Event History
Frequently Asked Questions
What is the severity of CVE-2023-34035?
The severity of CVE-2023-34035 is high with a severity value of 7.
Which versions of Spring Security are affected by CVE-2023-34035?
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 are affected by CVE-2023-34035.
How can I fix CVE-2023-34035?
To fix CVE-2023-34035, update your Spring Security version to 5.8.5, 6.0.5, or 6.1.2.
What is the vulnerability description of CVE-2023-34035?
CVE-2023-34035 is a vulnerability in Spring Security that could be susceptible to authorization rule misconfiguration if the application uses requestMatchers(String) and multiple servlets, one of them being Spring MVC’s DispatcherServlet.
Are VMware Spring Security versions affected by CVE-2023-34035?
Yes, VMware 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 are affected by CVE-2023-34035.