Every CVE Search/ Get API key

CVE-2021-22047

Exposure of Resource to Wrong Sphere in Spring Data REST

5.3 MediumFix available

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.

Attack profile

How easy it is to exploit

Attack vector
Network
Complexity
Low
Privileges needed
None
User interaction
None

What an attacker can affect

Confidentiality
Low
Integrity
None
Availability
None

Exploit likelihood

0.77%Up 0.4 points since Oct 29, 2021
90%50%10%1%

What each source reports

NVD Score used 5.3

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.

Record
CVE-2021-22047
CVSS 3.1
5.3 MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
CVSS 2.0
4.3 MediumAV:N/AC:M/Au:N/C:P/I:N/A:N
Weakness
CWE-200, CWE-668
Updated
2026-11-02
CVE List No score

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.

Record
CVE-2021-22047
Weakness
CWE-200
Updated
2026-11-02
EUVDEUVD-2022-2343 No score

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.

Record
EUVD-2022-2343
Updated
2026-11-03
GitHub AdvisoriesGHSA-4926-qpxg-6r3w 5.3

Exposure of Resource to Wrong Sphere in Spring Data REST

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.

Record
GHSA-4926-qpxg-6r3w
CVSS 3.1
5.3 MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
Weakness
CWE-668
Updated
2026-11-02
OSV 5.3

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.

Record
CVE-2021-22047
CVSS 3.1
5.3 MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
Updated
2026-11-02
OSVGHSA-4926-qpxg-6r3w 5.3

Exposure of Resource to Wrong Sphere in Spring Data REST

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.

Record
GHSA-4926-qpxg-6r3w
CVSS 3.1
5.3 MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
Weakness
CWE-668
Updated
2026-11-02

Affected products

Affected packages

Affected packages
PackageAffectedFixed
org.springframework.data:spring-data-rest-core
Maven
3.4.0 to 3.4.13
3.4.14
org.springframework.data:spring-data-rest-core
Maven
3.5.0 to 3.5.5
3.5.6
org.springframework.data:spring-data-rest-core
Maven
3.4.0 up to 3.4.14, plus listed versions
3.4.13.4.103.4.113.4.123.4.13
Show 8 moreShow less
3.4.23.4.33.4.43.4.53.4.63.4.73.4.83.4.9
3.4.14
org.springframework.data:spring-data-rest-core
Maven
3.5.0 up to 3.5.6, plus listed versions
3.5.13.5.23.5.33.5.43.5.5
3.5.6

History

History
RecordedChangedSources
aliasesEUVD
first indexedCVE List, GitHub Advisories, NVD, OSV

Dates are when Every CVE recorded each change. Upstream dates may differ.

In short

CVE-2021-22047 is a medium vulnerability (CVSS 5.3) in Vmware Spring Data Rest, published October 28, 2021. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 0.77%, the 55th percentile. Fixed in org.springframework.data:spring-data-rest-core 3.4.14.

References

MoveEnter Open