ADVISORIES

GitHub Advisory Database

GHSA-4926-qpxg-6r3w

Exposure of Resource to Wrong Sphere in Spring Data REST

Moderate CVE-2021-22047

Details

In Spring Data REST versions 3.4.0 - 3.4.13, 3.5.0 - 3.5.5, and older unsupported versions, 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.

Affected packages

EcosystemPackageAffected versions
Mavenorg.springframework.data:spring-data-rest-core
From 3.4.0 before 3.4.14 (fixed in 3.4.14)
Mavenorg.springframework.data:spring-data-rest-core
From 3.5.0 before 3.5.6 (fixed in 3.5.6)

References