Spring Security's authorization rules can be misconfigured when using multiple servlets
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
Software afectado
Haz clic en una tecnología para ver todas sus vulnerabilidades.
| Plataforma | Paquete | Versiones vulnerables | Corregida en |
|---|---|---|---|
| Java / Kotlin (Maven) | org.springframework.security:spring-security-config | >= 5.8.0, < 5.8.5, >= 6.0.0, < 6.0.5, >= 6.1.0, < 6.1.2 | 5.8.5, 6.0.5, 6.1.2 |
Referencias
- https://nvd.nist.gov/vuln/detail/CVE-2023-34035
- https://github.com/spring-projects/spring-security-samples/commit/4e3bec904a5467db28ea33e25ac9d90524b53d66
- https://github.com/spring-projects/spring-security/commit/bb46a5427005e33e637b15948de8adae244ce547
- https://github.com/spring-projects/spring-security/commit/df239b6448ccf138b0c95b5575a88f33ac35cd9a
- https://github.com/spring-projects/spring-security-samples/tree/main/servlet/java-configuration/authentication/preauth
- https://spring.io/security/cve-2023-34035
- Vector CVSS
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L- Debilidad (CWE)
CWE-863- Plataforma
- Java / Kotlin (Maven)
- Paquete
org.springframework.security:spring-security-config- Publicada
- 18.07.2023
- Actualizado
- 11.10.2026 11:22
Fuentes y licencias
OSV / GitHub Advisory Database - GHSA-4vpr-xfrp-cj64 - CC BY 4.0
Historial de vulnerabilidades: org.springframework.security:spring-security-config
Todas las vulnerabilidades publicadas de este paquete (Java / Kotlin (Maven)), de la más reciente a la más antigua. Muestra si es un fallo aislado o un paquete que hay que vigilar.
- Entradas en total
- 5
- Primera → última
- 07.2023 04.2026
- Sin corrección
- 0
- Explotada en ataques
- 0
Distribución por gravedad
- Crítica 1
- Alta 3
- Media 1
Divulgaciones por año
- 2023: 2
- 2024: 1
- 2025: 0
- 2026: 2
-
Spring Security's authorization rules can be misconfigured when using multiple servlets esta entrada
Identifica las vulnerabilidades de tu aplicación
Con la integración de DockRay y el inventario de software activado, DockRay compara las versiones notificadas de los componentes con las vulnerabilidades conocidas y avisa de las coincidencias confirmadas. La cobertura depende de la tecnología compatible y de los avisos disponibles.