CVE-2022-31679 Spring Data REST can expose hidden entity attributes
Attackers can expose hidden entity attributes via crafted HTTP PATCH requests if they know the domain model structure.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2022-31679?
CVE-2022-31679 is a low-severity vulnerability in Spring Data REST, published on 21 Sep 2022. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
Applications that allow HTTP PATCH access to resources exposed by Spring Data REST in versions 3.6.0 - 3.5.5, 3.7.0 - 3.7.2, and older unsupported versions, if an attacker knows about the structure of the underlying domain model, they can craft HTTP requests that expose hidden entity attributes.
Which versions are affected by CVE-2022-31679?
4 open source packages ship an affected version, including org.springframework.data:spring-data-rest-core. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
org.springframework.data:spring-data-rest-core Maven | From 3.6.0 | 3.6.7 |
org.springframework.data:spring-data-rest-core Maven | From 3.6.0 | 3.6.7 |
org.springframework.data:spring-data-rest-core Maven | From 3.7.0 | 3.7.3 |
org.springframework.data:spring-data-rest-core Maven | From 3.7.0 | 3.7.3 |
Products include Vmware Spring Data Rest.
How do I fix CVE-2022-31679?
Upgrade org.springframework.data:spring-data-rest-core to a fixed version for your release line: 3.6.7 or 3.7.3.
Is CVE-2022-31679 being exploited?
There is no known exploitation of CVE-2022-31679 in the wild and no public exploit code.
Other vulnerabilities in Spring Data REST
- CVE-2026-41729 Spring Data REST SpEL Injection via Map Key in JSON Patch
- CVE-2026-41728 Spring Data REST JSON Patch bypasses Jackson read-only property protection on nested objects and collections
- CVE-2026-47849 Spring Data REST allows mutation of identifier and version properties via JSON Patch
- CVE-2026-41730 Spring Data REST exposes persistence-layer internals in error responses
- CVE-2026-41837 Spring Data REST Querydsl integration exposes Jackson-hidden persistent fields as filter keys
Sources
Also known as GHSA-fv7x-v67w-cvqv.