Improper Authorization Affecting org.springframework.security:spring-security-config package, versions [5.8.0,5.8.5)[6.0.0,6.0.5)[6.1.0,6.1.2)


Severity

Recommended
0.0
high
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of concept
EPSS
0.07% (32nd percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-JAVA-ORGSPRINGFRAMEWORKSECURITY-5777882
  • published18 Jul 2023
  • disclosed18 Jul 2023
  • creditMouad Kondah from Kudelski Security

Introduced: 18 Jul 2023

CVE-2023-34035  (opens in a new tab)
CWE-285  (opens in a new tab)

How to fix?

Upgrade org.springframework.security:spring-security-config to version 5.8.5, 6.0.5, 6.1.2 or higher.

Overview

org.springframework.security:spring-security-config is a security configuration package for Spring Framework.

Affected versions of this package are vulnerable to Improper Authorization due to improper validation in the requestMatchers, leading to authorization rule misconfiguration when the application uses requestMatchers(String) and multiple servlets, one of them being Spring MVC’s DispatcherServlet.

Notes:

An application is only vulnerable when all of the following are true:

  1. Spring MVC is on the classpath.

  2. Spring Security is securing more than one servlet in a single application (one of them being Spring MVC’s DispatcherServlet).

  3. The application uses requestMatchers(String) to refer to endpoints that are not Spring MVC endpoints.

CVSS Scores

version 3.1