CVE-2022-22965
Remote Code Execution in Spring Framework
Also known as GHSA-36p3-wjmg-h94x
Mitigation
- Upgrade org.springframework:spring-beans to one of 5.2.20.RELEASE, 5.3.18 (or later in the same release line).
- Upgrade org.springframework:spring-webmvc to one of 5.2.20.RELEASE, 5.3.18 (or later in the same release line).
- Upgrade org.springframework.boot:spring-boot-starter-web to one of 2.5.12, 2.6.6 (or later in the same release line).
- Upgrade org.springframework:spring-webflux to one of 5.2.20.RELEASE, 5.3.18 (or later in the same release line).
- Upgrade org.springframework.boot:spring-boot-starter-webflux to one of 2.5.12, 2.6.6 (or later in the same release line).
Who should check
- Projects that depend on Maven package org.springframework:spring-beans (< 5.2.20.RELEASE)
- Projects that depend on Maven package org.springframework:spring-webmvc (< 5.2.20.RELEASE)
- Projects that depend on Maven package org.springframework.boot:spring-boot-starter-web (< 2.5.12)
- Projects that depend on Maven package org.springframework:spring-webflux (< 5.2.20.RELEASE)
- Projects that depend on Maven package org.springframework.boot:spring-boot-starter-webflux (< 2.5.12)
- Anyone running 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
Vulnerability facts
- Affected
- org.springframework:spring-beans < 5.2.20.RELEASE; org.springframework:spring-webmvc < 5.2.20.RELEASE; org.springframework.boot:spring-boot-starter-web < 2.5.12; org.springframework:spring-webflux < 5.2.20.RELEASE; org.springframework.boot:spring-boot-starter-webflux < 2.5.12
- Fixed in
- 5.2.20.RELEASE, 5.3.18, 2.5.12, 2.6.6
- Exploited in the wild
- Yes: in CISA KEV since 2022-04-04; federal due date 2022-04-25
- Public exploit / PoC
- Yes: see the exploit references below
- Remote exploitation
- Remote, no login needed
- CVSS
- 9.8 (v3.1, CNA)CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:HOpen in CVSS calculator
Show all 8 CVSS metrics
- Attack vector: Network
- Attack complexity: Low
- Privileges required: None
- User interaction: None
- Scope: Unchanged
- Confidentiality impact: High
- Integrity impact: High
- Availability impact: High
- EPSS
- 89.19% chance of exploitation in 30 days (percentile 100, 2026-11-26)
- CWE
- CWE-94
- Modified
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
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| Maven org.springframework:spring-beans | < 5.2.20.RELEASE | 5.2.20.RELEASE, 5.3.18 | osv |
| Maven org.springframework:spring-webmvc | < 5.2.20.RELEASE | 5.2.20.RELEASE, 5.3.18 | osv |
| Maven org.springframework.boot:spring-boot-starter-web | < 2.5.12 | 2.5.12, 2.6.6 | osv |
| Maven org.springframework:spring-webflux | < 5.2.20.RELEASE | 5.2.20.RELEASE, 5.3.18 | osv |
| Maven org.springframework.boot:spring-boot-starter-webflux | < 2.5.12 | 2.5.12, 2.6.6 | osv |
| 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 | — | cvelist |
Timeline
- 2022-03-31 Published
- 2022-04-04 Added to CISA KEV (exploited in the wild)
- 2022-04-25 CISA remediation due date for US federal agencies
- 2026-06-17 Last modified
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2022-22965. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2022-22965.md Affected: org.springframework:spring-beans < 5.2.20.RELEASE; org.springframework:spring-webmvc < 5.2.20.RELEASE; org.springframework.boot:spring-boot-starter-web < 2.5.12; org.springframework:spring-webflux < 5.2.20.RELEASE; org.springframework.boot:spring-boot-starter-webflux < 2.5.12 Fixed in: 5.2.20.RELEASE, 5.3.18, 2.5.12, 2.6.6 Steps: 1. Search this machine and project for org.springframework:spring-beans (Maven), org.springframework:spring-webmvc (Maven), org.springframework.boot:spring-boot-starter-web (Maven), org.springframework:spring-webflux (Maven), org.springframework.boot:spring-boot-starter-webflux (Maven), Spring Framework: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
Vendor advisories
Patches
Exploits and PoCs
Other
- https://www.oracle.com/security-alerts/cpuapr2022.html
- https://psirt.global.sonicwall.com/vuln-detail/SNWLID-2022-0005
- https://www.kb.cert.org/vuls/id/970766
- https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2022-22965
- https://github.com/spring-projects/spring-boot/releases/tag/v2.5.12
- https://github.com/spring-projects/spring-boot/releases/tag/v2.6.6
- https://github.com/spring-projects/spring-framework
- https://github.com/spring-projects/spring-framework/releases/tag/v5.2.20.RELEASE
- https://github.com/spring-projects/spring-framework/releases/tag/v5.3.18
- https://spring.io/blog/2022/03/31/spring-framework-rce-early-announcement
FAQ
Is CVE-2022-22965 being exploited?
Yes. CISA lists CVE-2022-22965 in its Known Exploited Vulnerabilities catalog since 2022-04-04, which means attacks have been seen. Public exploit code or a proof of concept is available. EPSS estimates a 89.19% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2022-22965?
Critical: CVSS 9.8 (v3.1, scored by CNA). Remote, no login needed.
Which versions are affected by CVE-2022-22965?
org.springframework:spring-beans < 5.2.20.RELEASE; org.springframework:spring-webmvc < 5.2.20.RELEASE; org.springframework.boot:spring-boot-starter-web < 2.5.12; org.springframework:spring-webflux < 5.2.20.RELEASE; org.springframework.boot:spring-boot-starter-webflux < 2.5.12.
Is there a fix for CVE-2022-22965?
Yes. Fixed in 5.2.20.RELEASE, 5.3.18, 2.5.12, 2.6.6. Upgrade org.springframework:spring-beans to one of 5.2.20.RELEASE, 5.3.18 (or later in the same release line). Upgrade org.springframework:spring-webmvc to one of 5.2.20.RELEASE, 5.3.18 (or later in the same release line). Upgrade org.springframework.boot:spring-boot-starter-web to one of 2.5.12, 2.6.6 (or later in the same release line). Upgrade org.springframework:spring-webflux to one of 5.2.20.RELEASE, 5.3.18 (or later in the same release line). Upgrade org.springframework.boot:spring-boot-starter-webflux to one of 2.5.12, 2.6.6 (or later in the same release line).
How do I check if I'm affected by CVE-2022-22965?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.