High

Spring Security's authorization rules can be misconfigured when using multiple servlets

  • Disclosed: 18.07.2023
  • Updated: 11.10.2026 11:22

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 software

Click a technology to see all vulnerabilities affecting it.

PlatformPackageVulnerable versionsFixed in
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

References

CVSS score 7.3/10
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L
Weakness (CWE)
CWE-863
Platform
Java / Kotlin (Maven)
Package
org.springframework.security:spring-security-config
Disclosed
18.07.2023
Updated
11.10.2026 11:22

Sources and licenses

OSV / GitHub Advisory Database - GHSA-4vpr-xfrp-cj64 - CC BY 4.0

Vulnerability history: org.springframework.security:spring-security-config

All published vulnerabilities of this package (Java / Kotlin (Maven)), newest first. Shows whether this is a one-off slip or a package that needs watching.

Total entries
5
First → latest
07.2023 04.2026
Without a fix
0
Exploited in attacks
0

Severity breakdown

  • Critical 1
  • High 3
  • Medium 1

Disclosures per year

  1. 2023: 2
  2. 2024: 1
  3. 2025: 0
  4. 2026: 2
  1. Medium · 5.5 CVE-2023-34042 >= 6.1.1, < 6.1.4, >= 6.0.4, < 6.0.7, >= 5.8.4, < 5.8.7, >= 5.7.9, < 5.7.11 6.1.4, 6.0.7, 5.8.7, 5.7.11
  2. Critical · 9.1 CVE-2023-34034 >= 5.6.0, < 5.6.12, >= 5.7.0, < 5.7.10, >= 5.8.0, < 5.8.5, >= 6.0.0, < 6.0.5, >= 6.1.0, < 6.1.2 5.6.12, 5.7.10, 5.8.5, 6.0.5, 6.1.2
  3. Spring Security's authorization rules can be misconfigured when using multiple servlets this entry
    High · 7.3 CVE-2023-34035 >= 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

Know which vulnerabilities affect your application

With the DockRay integration and software inventory enabled, DockRay checks reported component versions against known vulnerabilities and notifies you about confirmed matches. Coverage depends on the supported technology and available advisory data.

Connect your application
DockRay newsletter

Application security in your inbox

Important vulnerabilities, actionable guidance and practical advice for your applications. Choose your technologies and follow what matters to your project.

  • A daily digest of new vulnerabilities, critical ones included.
  • Notifications about important updates.
  • Practical advice on application security and monitoring.

Leave empty to receive updates for every technology.

Free to subscribe. Unsubscribe with one click in any email.