5.3medium
Exposure of Resource to Wrong Sphere in Spring Data REST
- Severity
- 5.3medium CVSS:3.1 by NVD
- Exploit likelihood
- 0.77% (higher than 56% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- vmware
- Also known as
- GHSA-4926-qpxg-6r3w
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| 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 | CVE List |
| org.springframework.data:spring-data-rest-core (Maven) | from 3.4.0 before 3.4.14, from 3.5.0 before 3.5.6 | GitHub Advisory Database |
| vmware spring_data_rest | from 3.4.0 up to 3.4.13, from 3.5.0 up to 3.5.5 | NVD |
All scores
| GitHub | 5.3medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N |
| NVD | 5.3medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N |
| NVD | 4.3medium CVSS:2.0 | AV:N/AC:M/Au:N/C:P/I:N/A:N |
Classification
What each source says
CVE List
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.
NVD (es)
En Spring Data REST versiones 3.4.0 - 3.4.13, 3.5.0 - 3.5.5, y versiones anteriores no soportadas, los recursos HTTP implementados por controladores personalizados que usan una ruta de API base configurada y un mapeo de peticiones a nivel de tipo de controlador están expuestos adicionalmente bajo URIs que pueden ser potencialmente expuestos para un acceso no autorizado dependiendo de la configuración de Spring Security
References
| https://tanzu.vmware.com/security/cve-2021-22047 | vendor-advisory, web | |
| https://nvd.nist.gov/vuln/detail/CVE-2021-22047 | advisory | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2021-22047 changed 2024-08-03 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-4926-qpxg-6r3w changed 2023-11-08 | CC-BY-4.0 |
| NVD | CVE-2021-22047 changed 2026-06-17 | Public domain |