CVE-2022-31679 Spring Data REST can expose hidden entity attributes

Low 3.7 Published Updated

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.

PackageAffectedFixed in
org.springframework.data:spring-data-rest-core MavenFrom 3.6.03.6.7
org.springframework.data:spring-data-rest-core MavenFrom 3.6.03.6.7
org.springframework.data:spring-data-rest-core MavenFrom 3.7.03.7.3
org.springframework.data:spring-data-rest-core MavenFrom 3.7.03.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.

Sources

Also known as GHSA-fv7x-v67w-cvqv.

Is CVE-2022-31679 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free