Information Exposure Affecting org.springframework.data:spring-data-rest-webmvc package, versions [0,3.6.7)[3.7.0,3.7.3)


Severity

Recommended
0.0
medium
0
10

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

Threat Intelligence

EPSS
0.1% (43rd 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-3027428
  • published20 Sept 2022
  • disclosed20 Sept 2022
  • credit@Burpheart

Introduced: 20 Sep 2022

CVE-2022-31679  (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.6.7, 3.7.3 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 by allowing an attacker to craft HTTP requests that expose hidden entity attributes, given that the attacker knows about the structure of the underlying domain model.

Note: Applications that have generally disabled HTTP PATCH support, either through the corresponding configuration of Spring Data REST, Spring Boot, or through their runtime infrastructure, are not affected.

Workarounds:

Users who are unable to upgrade to the fixed version can disable HTTP PATCH support as described at https://docs.spring.io/spring-data/rest/docs/current/reference/html/#customizing-sdr.http-methods

CVSS Scores

version 3.1