Security mailing lists by PureSourceCode

CVE-2023-34035

MEDIUM 5.3CVSS 3.1

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
Published
18 Jul 2023
Last modified
17 Jun 2026
Assigned by
security@vmware.com
NVD status
Modified
Weakness
CWE-863
Also known as
GHSA-4vpr-xfrp-cj64
Sources
NVDJSONOSV GHSA-4vpr-xfrp-cj64JSON

Scores

SourceScored byVersionScoreVector / decision
NVD security@vmware.com (Secondary) CVSS 3.1 HIGH 7.3 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L
OSV GitHub CVSS 3.1 HIGH 7.3 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L
NVD nvd@nist.gov (Primary) CVSS 3.1 MEDIUM 5.3 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
NVD vmware spring_security
cpe:2.3:a:vmware:spring_security:*:*:*:*:*:*:*:*
>= 5.8.0, < 5.8.5 5.8.5
NVD vmware spring_security
cpe:2.3:a:vmware:spring_security:*:*:*:*:*:*:*:*
>= 6.0.0, < 6.0.5 6.0.5
NVD vmware spring_security
cpe:2.3:a:vmware:spring_security:*:*:*:*:*:*:*:*
>= 6.1.0, < 6.1.2 6.1.2
OSV Maven org.springframework.security:spring-security-config >= 5.8.0, < 5.8.5 5.8.5
OSV Maven org.springframework.security:spring-security-config >= 6.0.0, < 6.0.5 6.0.5
OSV Maven org.springframework.security:spring-security-config >= 6.1.0, < 6.1.2 6.1.2

References

History

  • 25 Nov 2026 20:36 UTC · NVD: first stored (published 18 Jul 2023)
  • 25 Nov 2026 20:13 UTC · OSV: first stored (published 18 Jul 2023)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.