Improper Access Control Affecting org.springframework:spring-webmvc package, versions [5.3.0,5.3.26)[6.0.0,6.0.7)


Severity

Recommended
0.0
critical
0
10

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

Threat Intelligence

Exploit Maturity
Proof of concept
EPSS
0.07% (33rd 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 Learn

Learn about Improper Access Control vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-JAVA-ORGSPRINGFRAMEWORK-3369852
  • published23 Mar 2023
  • disclosed23 Mar 2023
  • creditUnknown

Introduced: 23 Mar 2023

CVE-2023-20860  (opens in a new tab)
CWE-284  (opens in a new tab)

How to fix?

Upgrade org.springframework:spring-webmvc to version 5.3.26, 6.0.7 or higher.

Overview

org.springframework:spring-webmvc is a package that provides Model-View-Controller (MVC) architecture and ready components that can be used to develop flexible and loosely coupled web applications.

Affected versions of this package are vulnerable to Improper Access Control when using an un-prefixed double wildcard pattern ("**") in the Spring Security configuration with the mvcRequestMatcher. This configuration creates a pattern-matching discrepancy between Spring Security and Spring MVC, potentially allowing unauthorized access.

Note: The Spring security team have published information about an existing PoC, but have not shared the PoC itself publicly, therefore we don't currently have the ability to verify it.

CVSS Scores

version 3.1