Stackurity Start free trial

CVEs / CVE-2022-22965

CVE-2022-22965: Spring Framework JDK 9+ Remote Code Execution Vulnerability

Are you affected? Check your servers with Stackurity: it lists the software on each server and the vulnerabilities to fix first.

Check your servers with Stackurity Already using Stackurity? Search for CVE-2022-22965

Summary

Spring MVC or Spring WebFlux application running on JDK 9+ may be vulnerable to remote code execution (RCE) via data binding.

CISA, Known Exploited Vulnerabilities catalog

Description

A Spring MVC or Spring WebFlux application running on JDK 9+ may be vulnerable to remote code execution (RCE) via data binding. The specific exploit requires the application to run on Tomcat as a WAR deployment. If the application is deployed as a Spring Boot executable jar, i.e. the default, it is not vulnerable to the exploit. However, the nature of the vulnerability is more general, and there may be other ways to exploit it.

The CVE record, via NVD · published 1 Apr 2022 · NVD status: Analyzed

Affected and fixed versions

As stated by the CVE record (from the CNA)
ProductAffectedFixed in
n/a Spring FrameworkSpring Framework versions 5.3.X prior to 5.3.18+, 5.2.x prior to 5.2.20+ and all old and unsupported versions—
As stated by OSV
ProductAffectedFixed in
org.springframework:spring-beans (Maven)before 5.2.20.RELEASE5.2.20.RELEASE
org.springframework:spring-beans (Maven)from 5.3.0, before 5.3.185.3.18
org.springframework:spring-webmvc (Maven)before 5.2.20.RELEASE5.2.20.RELEASE
org.springframework:spring-webmvc (Maven)from 5.3.0, before 5.3.185.3.18
org.springframework.boot:spring-boot-starter-web (Maven)before 2.5.122.5.12
org.springframework.boot:spring-boot-starter-web (Maven)from 2.6.0, before 2.6.62.6.6
org.springframework:spring-webflux (Maven)before 5.2.20.RELEASE5.2.20.RELEASE
org.springframework:spring-webflux (Maven)from 5.3.0, before 5.3.185.3.18
org.springframework.boot:spring-boot-starter-webflux (Maven)before 2.5.122.5.12
org.springframework.boot:spring-boot-starter-webflux (Maven)from 2.6.0, before 2.6.62.6.6

Package versions from GHSA-36p3-wjmg-h94x.

Exploitation

In CISA KEV since4 Apr 2022
Due date for US federal agencies25 Apr 2022
Used in ransomware campaignsUnknown
Required actionApply updates per vendor instructions.

Severity

CVSS 3.19.8 critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Scored by NVD
WeaknessCWE-94

References

Sources

Exploitation status from the CISA Known Exploited Vulnerabilities catalog. EPSS scores from FIRST. Descriptions, severity and references from the National Vulnerability Database. Open-source package versions from OSV (CC-BY 4.0). Text is shown as each source states it; Stackurity does not edit it. Check the vendor's advisory before acting.

This product uses data from the NVD API but is not endorsed or certified by the NVD.