Spring Data REST JSON Patch bypasses Jackson read-only property protection on nested objects and collections
Spring Data REST
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| org.springframework.data:spring-data-rest-core Maven |
|
|
Spring Data REST
| Product | Affected | Fixed in |
|---|---|---|
| org.springframework.data:spring-data-rest-core Maven |
|
|
Spring Data REST's JSON Patch (application/json-patch+json) implementation does not apply the write-access filter to intermediate path segments when resolving a multi-segment JSON Pointer.
Affected versions: Spring Data REST 3.7.0 through 3.7.19; 4.3.0 through 4.3.16; 4.4.0 through 4.4.14; 4.5.0 through 4.5.11; 5.0.0 through 5.0.5.
From the CVE record · vmware
Spring Data REST does not apply its write-access filter to intermediate path segments when resolving a multi-segment JSON Pointer in a JSON Patch request. An attacker submitting such a request can bypass that filter for those segments. The input does not specify whether authentication or user interaction is required.
Engineers running Spring Data REST 3.7.0–3.7.19, 4.3.0–4.3.16, 4.4.0–4.4.14, 4.5.0–4.5.11, or 5.0.0–5.0.5 should check their deployments.