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

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** CRITICAL 9.8
- **CVSS:** 9.8 (v3.0, NVD) `CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Privileges required: None; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** Yes (see exploit references)
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 74.53% (percentile 100, 2026-11-26)
- **CWE:** CWE-20
- **Aliases:** EDB-44289, GHSA-9qf9-28h9-hqcj
- **Published:** 2018-01-04T06:00:00.000Z
- **Modified:** 2026-06-26T18:44:14.703Z

## Who should check

- Projects that depend on Maven package org.springframework.data:spring-data-rest-core (\< 2.6.9.RELEASE)
- Anyone running Pivotal Spring Data REST and Spring Boot Pivotal Spring Data REST versions prior to 2.6.9 (Ingalls SR9), 3.0.1 (Kay SR1) and Spring Boot versions prior to 1.5.9, 2.0 M6

## 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.

## Affected and fixed versions

- Maven `org.springframework.data:spring-data-rest-core`: affected \< 2.6.9.RELEASE; fixed 2.6.9.RELEASE, 3.0.1.RELEASE (osv)
- Pivotal Spring Data REST and Spring Boot: Pivotal Spring Data REST versions prior to 2.6.9 (Ingalls SR9), 3.0.1 (Kay SR1) and Spring Boot versions prior to 1.5.9, 2.0 M6 (cvelist)

## Mitigation

- Upgrade org.springframework.data:spring-data-rest-core to one of 2.6.9.RELEASE, 3.0.1.RELEASE (or later in the same release line).

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2017-8046. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2017-8046.md
Affected: org.springframework.data:spring-data-rest-core < 2.6.9.RELEASE
Fixed in: 2.6.9.RELEASE, 3.0.1.RELEASE

Steps:
1. Search this machine and project for org.springframework.data:spring-data-rest-core (Maven), Pivotal Spring Data REST and Spring Boot: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2017-8046 being exploited?

There is no confirmed exploitation: CVE-2017-8046 is not in the CISA Known Exploited Vulnerabilities catalog. Public exploit code or a proof of concept is available. EPSS estimates a 74.53% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2017-8046?

Critical: CVSS 9.8 (v3.0, scored by NVD). Remote, no login needed.

### Which versions are affected by CVE-2017-8046?

org.springframework.data:spring-data-rest-core \< 2.6.9.RELEASE.

### Is there a fix for CVE-2017-8046?

Yes. Fixed in 2.6.9.RELEASE, 3.0.1.RELEASE. Upgrade org.springframework.data:spring-data-rest-core to one of 2.6.9.RELEASE, 3.0.1.RELEASE (or later in the same release line).

### How do I check if I'm affected by CVE-2017-8046?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://pivotal.io/security/cve-2017-8046>
- vendor: <https://access.redhat.com/errata/RHSA-2018:2405>
- vendor: <https://nvd.nist.gov/vuln/detail/CVE-2017-8046>
- exploit: <https://www.exploit-db.com/exploits/44289/>
- exploit: <https://www.exploit-db.com/exploits/44289>
- other: <http://www.securityfocus.com/bid/100948>
- other: <https://github.com/spring-projects/spring-data-rest/issues/1487>
- other: <https://github.com/spring-projects/spring-data-rest/issues/1520>
- other: <https://bugzilla.redhat.com/show_bug.cgi?id=1553024>
- other: <https://github.com/spring-projects/spring-data-rest>
- other: <https://jira.spring.io/browse/DATAREST-1127?redirect=false>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2017-8046>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-9qf9-28h9-hqcj> (license: <https://creativecommons.org/licenses/by/4.0/>)
- Exploit-DB: Exploit metadata (ID and link only) from the Exploit Database <https://www.exploit-db.com/exploits/44289>

HTML: <https://flawdb.com/CVE-2017-8046> · JSON: <https://flawdb.com/api/v1/entries/CVE-2017-8046>
