Information Exposure Affecting org.springframework.data:spring-data-rest-webmvc package, versions [3.5.0,3.5.6)[,3.4.14)


Severity

Recommended
0.0
medium
0
10

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

Threat Intelligence

EPSS
0.08% (38th 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-ORGSPRINGFRAMEWORKDATA-1767823
  • published27 Oct 2021
  • disclosed27 Oct 2021
  • creditBrian Schrader

Introduced: 27 Oct 2021

CVE-2021-22047  (opens in a new tab)
CWE-200  (opens in a new tab)

How to fix?

Upgrade org.springframework.data:spring-data-rest-webmvc to version 3.5.6, 3.4.14 or higher.

Overview

org.springframework.data:spring-data-rest-webmvc is a maven plugin for Spring Data REST - WebMVC.

Affected versions of this package are vulnerable to Information Exposure. HTTP resources implemented by custom controllers using a configured base API path and a controller type-level request mapping are additionally exposed under URIs that can potentially be exposed for unauthorized access depending on the Spring Security configuration.

Note: This vulnerability is only exploitable in a project if the Spring Data REST base path configuration is set to a non-empty string AND the project registers a custom Spring MVC controller to customize HTTP resources in the URI space of Spring Data REST and that controller uses a type-level @RequestMapping annotation;the project only secures the paths exposed by Spring Data REST within the base path but does not apply security measures to URIs matching the mappings without the configured base path prepended.

CVSS Scores

version 3.1