# CVE-2021-22047: Exposure of Resource to Wrong Sphere in Spring Data REST

Source: https://junglewise.ai/threats/cve-2021-22047-exposure-of-resource-to-wrong-sphere-in-spring-data-rest  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2022-05-24  
License: CC BY 4.0 with a link back

CVE-2021-22047 · Severity: low · CVSS 3.1 · Published 2022-05-24

Exposure of Resource to Wrong Sphere in Spring Data REST

Technologies: [org.springframework.data:spring-data-rest-core (Maven)](https://junglewise.ai/threats/technologies/org-springframework-data-spring-data-rest-core). Vendors: [Maven](https://junglewise.ai/threats/vendors/maven).

## Quick answers

**Is CVE-2021-22047 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2021-22047 being exploited in the wild.

**How severe is CVE-2021-22047?** Low severity, with a CVSS score of 3.1, published 24 May 2022.

**Which products and versions are affected?** org.springframework.data:spring-data-rest-core (Maven) ECOSYSTEM:introduced=3.4.0,fixed=3.4.14.

**Is there a fix for CVE-2021-22047?** Yes. org.springframework.data:spring-data-rest-core (Maven): upgrade to 3.4.14 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**Am I affected by CVE-2021-22047?** Check whether you run org.springframework.data:spring-data-rest-core (Maven) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix

- org.springframework.data:spring-data-rest-core (Maven): upgrade to 3.4.14 or later

  ```sh
  # set org.springframework.data:spring-data-rest-core to 3.4.14 in your pom.xml or build.gradle
  ```


## Affected products

- org.springframework.data:spring-data-rest-core (Maven) ECOSYSTEM:introduced=3.4.0,fixed=3.4.14

## Identifiers

- CVE-2021-22047
- GHSA-4926-qpxg-6r3w

## Related threats

- [VMware Spring Data REST improper access control in Querydsl integration](https://junglewise.ai/threats/cve-2026-41837-vmware-spring-data-rest-improper-access-control-in-querydsl)
- [VMware Spring Data REST information disclosure in exception serialization](https://junglewise.ai/threats/cve-2026-41730-vmware-spring-data-rest-information-disclosure-in-exception)
- [VMware Spring Data REST SpEL injection in JSON Patch processing](https://junglewise.ai/threats/cve-2026-41729-vmware-spring-data-rest-spel-injection-in-json-patch-processing)
- [VMware Spring Data REST improper access control in JSON Patch](https://junglewise.ai/threats/cve-2026-41728-vmware-spring-data-rest-improper-access-control-in-json-patch)
- [Spring Data REST can expose hidden entity attributes](https://junglewise.ai/threats/cve-2022-31679-spring-data-rest-can-expose-hidden-entity-attributes)
