# CVE-2022-22965: Remote Code Execution in Spring Framework

Source: https://junglewise.ai/threats/cve-2022-22965-spring-framework-jdk-9-remote-code-execution-vulnerability  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2022-03-31. Updated: 2026-05-10  
License: CC BY 4.0 with a link back

CVE-2022-22965 · Severity: critical · CVSS 3.1 · Exploited in the wild · Published 2022-03-31

A remote code execution vulnerability exists in Spring MVC and Spring WebFlux applications running on JDK 9+ due to improper data binding. Exploitation typically requires the application to be deployed as a WAR on Apache Tomcat, though the underlying vulnerability is more general. This flaw allows an unauthenticated attacker to execute arbitrary code on the host.

Technologies: [org.springframework:spring-webflux (Maven)](https://junglewise.ai/threats/technologies/org-springframework-spring-webflux), [org.springframework:spring-webmvc (Maven)](https://junglewise.ai/threats/technologies/org-springframework-spring-webmvc), [VMware Spring Framework](https://junglewise.ai/threats/technologies/spring-framework). Vendors: [Maven](https://junglewise.ai/threats/vendors/maven), [VMware](https://junglewise.ai/threats/vendors/vmware).

## Quick answers

**Is CVE-2022-22965 exploited in the wild?** Yes. CVE-2022-22965 is known to be exploited in the wild, first recorded on 4 April 2022. Treat it as urgent.

**How severe is CVE-2022-22965?** Critical severity, with a CVSS score of 3.1, published 31 March 2022.

**Which products and versions are affected?** org.springframework:spring-beans (Maven) ECOSYSTEM:introduced=0,fixed=5.2.20.RELEASE; org.springframework:spring-webflux (Maven) ECOSYSTEM:introduced=0,fixed=5.2.20.RELEASE; org.springframework:spring-webmvc (Maven) ECOSYSTEM:introduced=0,fixed=5.2.20.RELEASE; org.springframework.boot:spring-boot-starter-web (Maven) ECOSYSTEM:introduced=0,fixed=2.5.12; and 1 more.

**Is there a fix for CVE-2022-22965?** Yes. org.springframework:spring-beans (Maven): upgrade to 5.2.20.RELEASE or later; org.springframework:spring-webflux (Maven): upgrade to 5.2.20.RELEASE or later; org.springframework:spring-webmvc (Maven): upgrade to 5.2.20.RELEASE or later; org.springframework.boot:spring-boot-starter-web (Maven): upgrade to 2.5.12 or later; org.springframework.boot:spring-boot-starter-webflux (Maven): upgrade to 2.5.12 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**How is CVE-2022-22965 attacked?** It is attacked over the network, in a software library.

**Am I affected by CVE-2022-22965?** Check whether you run org.springframework:spring-beans (Maven), org.springframework:spring-webflux (Maven), org.springframework:spring-webmvc (Maven) or one of the others listed 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:spring-beans (Maven): upgrade to 5.2.20.RELEASE or later

  ```sh
  # set org.springframework:spring-beans to 5.2.20.RELEASE in your pom.xml or build.gradle
  ```

- org.springframework:spring-webflux (Maven): upgrade to 5.2.20.RELEASE or later

  ```sh
  # set org.springframework:spring-webflux to 5.2.20.RELEASE in your pom.xml or build.gradle
  ```

- org.springframework:spring-webmvc (Maven): upgrade to 5.2.20.RELEASE or later

  ```sh
  # set org.springframework:spring-webmvc to 5.2.20.RELEASE in your pom.xml or build.gradle
  ```

- org.springframework.boot:spring-boot-starter-web (Maven): upgrade to 2.5.12 or later

  ```sh
  # set org.springframework.boot:spring-boot-starter-web to 2.5.12 in your pom.xml or build.gradle
  ```

- org.springframework.boot:spring-boot-starter-webflux (Maven): upgrade to 2.5.12 or later

  ```sh
  # set org.springframework.boot:spring-boot-starter-webflux to 2.5.12 in your pom.xml or build.gradle
  ```


## Affected products

- VMware Spring Framework < 5.2.20, 5.3.0 to < 5.3.18
- Oracle JDK >= 9

## Identifiers

- CVE-2022-22965
- GHSA-36p3-wjmg-h94x

## Timeline

- 2022-04-04: disclosed
- 2022-04-04: kev added: Added to CISA Known Exploited Vulnerabilities Catalog
- 2022-04-04: advisory: NVD publication date

## Related threats

- [Spring Framework stream corruption in Server-Sent Events](https://junglewise.ai/threats/cve-2026-59313-spring-framework-stream-corruption-in-server-sent-events)
- [Spring Framework Server Sent Event stream corruption while rendering fragments](https://junglewise.ai/threats/cve-2026-47890-spring-framework-server-sent-event-stream-corruption-while)
- [Spring Framework information disclosure in WebSocket exception handling](https://junglewise.ai/threats/cve-2026-47893-spring-framework-information-disclosure-in-websocket-exception)
- [Spring Framework header predicate bypass in WebFlux functional endpoints](https://junglewise.ai/threats/cve-2026-47892-spring-framework-header-predicate-bypass-in-webflux-functional)
- [Spring Framework XML maxInMemorySize enforcement bypass](https://junglewise.ai/threats/cve-2026-47891-spring-framework-xml-maxinmemorysize-enforcement-bypass)
