CVE-2017-8046 Remote code execution in PATCH requests in Spring Data REST

Critical 9.8 Published Updated

Attackers can execute arbitrary Java code via malicious PATCH requests in Spring Data REST and Spring Boot applications.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2017-8046?

CVE-2017-8046 is a critical code injection vulnerability in Pivotal Spring Data REST and Spring Boot, published on 4 Jan 2018. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

Malicious PATCH requests submitted to servers using Spring Data REST versions prior to 2.6.9 (Ingalls SR9), versions prior to 3.0.1 (Kay SR1) and Spring Boot versions prior to 1.5.9, 2.0 M6 can use specially crafted JSON data to run arbitrary Java code.

Weakness: CWE-20

Which versions are affected by CVE-2017-8046?

4 open source packages ship an affected version, including org.springframework.data:spring-data-rest-core. It affects 3 products.

PackageAffectedFixed in
org.springframework.data:spring-data-rest-core MavenAll versions2.6.9.RELEASE
org.springframework.data:spring-data-rest-core MavenAll versions2.6.9.RELEASE
org.springframework.data:spring-data-rest-core MavenFrom 3.0.03.0.1.RELEASE
org.springframework.data:spring-data-rest-core MavenFrom 3.0.03.0.1.RELEASE

Products include Pivotal Software Spring Data Rest, Vmware Spring Boot, Vmware Spring Data Rest.

How do I fix CVE-2017-8046?

Upgrade org.springframework.data:spring-data-rest-core to a fixed version for your release line: 2.6.9.RELEASE or 3.0.1.RELEASE.

Upgrade, and never evaluate templates, expressions or code built from user input. More about Code injection.

Is CVE-2017-8046 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2017-8046 exists.

Public exploit code: 1 Exploit-DB entry, 1 Nuclei template and 10 proofs of concept on GitHub.

Sources

Also known as GHSA-9qf9-28h9-hqcj.

Is CVE-2017-8046 in your software?

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

Check your SBOMs for free