VDB

CVE-2021-22047

CVE-2021-22047 PUBLISHED

Exposure of Resource to Wrong Sphere in Spring Data REST

Reported by vmware · Published October 28, 2021

spring-data-rest-core is fixed in 3.5.6, 3.5.5, 3.4.14 and 1 more (Maven Central)

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.

Fixed versions

Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.

PackageEcosystemFixed in
org.springframework.data:spring-data-rest-coreMaven Central3.5.6, 3.5.5, 3.4.14, 3.4.13
spring_data_restvmware3.5.5, 3.4.13

Affected products

VendorProductVersions
n/aSpring Data RESTSpring Data REST versions 3.4.x prior to 3.4.14+ ,3.5.x prior to 3.5.6+ and old unsupported versions
n/aSpring Data REST3.4.x

Timeline

  • Oct 28, 2021 CVE Published
  • Oct 28, 2021 PoC Published
  • Oct 29, 2021 EPSS Score (30 in total, the first dated here)
  • Nov 21, 2024 CVE Updated
  • Mar 17, 2026 Security Advisory
  • Aug 25, 2026 Coalition ESS Score

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2021-22047
vulnetix vdb fixes CVE-2021-22047

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2021-22047/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

References

  • x_refsource_MISC
Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›