CVEs / CVE-2022-22965
CVE-2022-22965: Spring Framework JDK 9+ Remote Code Execution Vulnerability
- Known exploited in the CISA KEV catalog since 4 Apr 2022
- critical 9.8 CVSS 3.1 (NVD)
- EPSS 99.6% chance of exploitation in the next 30 days, higher than 99% of CVEs (30 Oct 2026)
- Last changed at its sources
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.
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.
Affected and fixed versions
| Product | Affected | Fixed in |
|---|---|---|
| n/a Spring Framework | Spring Framework versions 5.3.X prior to 5.3.18+, 5.2.x prior to 5.2.20+ and all old and unsupported versions | — |
| Product | Affected | Fixed in |
|---|---|---|
| org.springframework:spring-beans (Maven) | before 5.2.20.RELEASE | 5.2.20.RELEASE |
| org.springframework:spring-beans (Maven) | from 5.3.0, before 5.3.18 | 5.3.18 |
| org.springframework:spring-webmvc (Maven) | before 5.2.20.RELEASE | 5.2.20.RELEASE |
| org.springframework:spring-webmvc (Maven) | from 5.3.0, before 5.3.18 | 5.3.18 |
| org.springframework.boot:spring-boot-starter-web (Maven) | before 2.5.12 | 2.5.12 |
| org.springframework.boot:spring-boot-starter-web (Maven) | from 2.6.0, before 2.6.6 | 2.6.6 |
| org.springframework:spring-webflux (Maven) | before 5.2.20.RELEASE | 5.2.20.RELEASE |
| org.springframework:spring-webflux (Maven) | from 5.3.0, before 5.3.18 | 5.3.18 |
| org.springframework.boot:spring-boot-starter-webflux (Maven) | before 2.5.12 | 2.5.12 |
| org.springframework.boot:spring-boot-starter-webflux (Maven) | from 2.6.0, before 2.6.6 | 2.6.6 |
Package versions from GHSA-36p3-wjmg-h94x.
Exploitation
| In CISA KEV since | 4 Apr 2022 |
|---|---|
| Due date for US federal agencies | 25 Apr 2022 |
| Used in ransomware campaigns | Unknown |
| Required action | Apply updates per vendor instructions. |
Severity
| CVSS 3.1 | 9.8 criticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:HScored by NVD |
|---|---|
| Weakness | CWE-94 |
References
- CVE-2022-22965 on NVD
- CVE-2022-22965 in the CISA KEV catalog
- CVE-2022-22965 on OSV
- http://packetstormsecurity.com/files/166713/Spring4Shell-Code-Execution.html Exploit, Third Party Advisory, VDB Entry
- http://packetstormsecurity.com/files/167011/Spring4Shell-Spring-Framework-Class-Property-Remote-Code-Execution.html Third Party Advisory, VDB Entry
- https://cert-portal.siemens.com/productcert/pdf/ssa-254054.pdf Patch, Third Party Advisory
- https://psirt.global.sonicwall.com/vuln-detail/SNWLID-2022-0005 Third Party Advisory
- https://tanzu.vmware.com/security/cve-2022-22965 Mitigation, Vendor Advisory
- https://tools.cisco.com/security/center/content/CiscoSecurityAdvisory/cisco-sa-java-spring-rce-Zx9GUc67 Third Party Advisory
- https://www.oracle.com/security-alerts/cpuapr2022.html Third Party Advisory
- https://www.oracle.com/security-alerts/cpujul2022.html Patch, Third Party Advisory
- https://www.kb.cert.org/vuls/id/970766 US Government Resource
- https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2022-22965 US Government Resource
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.