# CVE-2021-22047: Exposure of Resource to Wrong Sphere in Spring Data REST

- Severity: Medium 5.3 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.77%, higher than 56% of CVEs (2026-12-01)
- Published: 2021-10-28T15:21:26.000Z
- Modified: 2026-06-17T03:36:36.347Z
- Also known as: GHSA-4926-qpxg-6r3w
- Weaknesses: CWE-200, CWE-668
- Assigned by: vmware

## Description

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.

(As written by CVE List.)

## Affected

- 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
- org.springframework.data:spring-data-rest-core (Maven): from 3.4.0 before 3.4.14; from 3.5.0 before 3.5.6
- vmware spring_data_rest: from 3.4.0 up to 3.4.13; from 3.5.0 up to 3.5.5

## Every score

- GitHub: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N`
- NVD: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N`
- NVD: CVSS:2.0 4.3 Medium `AV:N/AC:M/Au:N/C:P/I:N/A:N`

## References

- <https://tanzu.vmware.com/security/cve-2021-22047> (vendor-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2021-22047> (advisory)

## Sources

- CVE List: [CVE-2021-22047](https://www.cve.org/CVERecord?id=CVE-2021-22047), CVE Terms of Use, modified 2024-08-03
- GitHub Advisory Database: [GHSA-4926-qpxg-6r3w](https://github.com/advisories/GHSA-4926-qpxg-6r3w), CC-BY-4.0, modified 2023-11-08
- NVD: [CVE-2021-22047](https://nvd.nist.gov/vuln/detail/CVE-2021-22047), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-22047 · Whole record: https://cve.day/CVE-2021-22047.json · Rebuilt by cve.day 2026-11-25T22:58:05.260Z
