Description
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
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| — | Spring Security | Spring Security 5.8.0 to 5.8.4, Spring Security 6.0.0 to 6.0.4, Spring Security 6.1.0 to 6.1.1 | — |
Public exploits
Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.
GitHub 2 repositories
-
jzheaux/cve-2023-34035-mitigations ★ 4 · Aug 1, 2023
-
mouadk/CVE-2023-34035-Poc ★ 0 · May 16, 2023
Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| Maven | org.springframework.security:spring-security-config | >= 5.8.0, < 5.8.5 | 5.8.5 | GHSA-4vpr-xfrp-cj64 |
| Maven | org.springframework.security:spring-security-config | >= 6.0.0, < 6.0.5 | 6.0.5 | GHSA-4vpr-xfrp-cj64 |
| Maven | org.springframework.security:spring-security-config | >= 6.1.0, < 6.1.2 | 6.1.2 | GHSA-4vpr-xfrp-cj64 |
Advisories 4
- WID-SEC-2024-0794 Dell ECS: Mehrere Schwachstellen BSI CERT-Bund (WID) · Aug 11, 2026
- WID-SEC-2023-1802 VMware Tanzu Spring Security: Schwachstelle ermöglicht nicht spezifizierten Angriff BSI CERT-Bund (WID) · Jun 29, 2025
- ICSA-24-046-15 Siemens SINEC NMS CISA ICS & IT advisories · Mar 12, 2024
- SSA-943925 SSA-943925: Multiple Vulnerabilities in SINEC NMS before V2.0 SP1 Siemens ProductCERT · Mar 12, 2024