CVE-2021-22047
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.
| Package | Ecosystem | Fixed in |
|---|---|---|
| org.springframework.data:spring-data-rest-core | Maven Central | 3.5.6, 3.5.5, 3.4.14, 3.4.13 |
| spring_data_rest | vmware | 3.5.5, 3.4.13 |
Affected products
| Vendor | Product | Versions |
|---|---|---|
| n/a | Spring Data REST | Spring Data REST versions 3.4.x prior to 3.4.14+ ,3.5.x prior to 3.5.6+ and old unsupported versions |
| n/a | Spring Data REST | 3.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