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


0.0
medium

Snyk CVSS

    Attack Complexity Low

    Threat Intelligence

    EPSS 0.1% (42nd percentile)
Expand this section
NVD
3.7 low

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 ID SNYK-JAVA-ORGSPRINGFRAMEWORKDATA-3027428
  • published 20 Sep 2022
  • disclosed 20 Sep 2022
  • credit @Burpheart

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