Skip to main content
← All vulnerabilities
CVE-2023-34035GHSA-4VPR-XFRP-CJ64

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 misconfig

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 5.8.5, 6.0.5, 6.1.2
2 proofs of concept on GitHub
  • Exploitation: none
  • Automatable: no
  • Technical impact: partial

Summary

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

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: none · Automatable: no · Technical impact: partial

  3. Record last updated

Affected versions

  • n/a Spring Security

    Version range not reported

  • org.springframework.security:spring-security-configMaven

    From 5.8.0 · fixed in 5.8.5

  • org.springframework.security:spring-security-configMaven

    From 6.0.0 · fixed in 6.0.5

  • org.springframework.security:spring-security-configMaven

    From 6.1.0 · fixed in 6.1.2

References 3

spring.io

GitHub · jzheaux/cve-2023-34035-mitigations

GitHub · mouadk/CVE-2023-34035-Poc