
Provides a detailed Spring4Shell (CVE-2022-22965) write-up covering root cause, exploitation conditions, impact, CVSS, and mitigation for vulnerable Spring apps.
Critical Remote Code Execution (RCE) vulnerability
Publicly disclosed: March 31, 2022
Spring4Shell is the nickname for , a vulnerability in Spring’s data binding mechanism that could allow attackers to achieve .
It primarily affected applications using:
Spring MVC automatically maps HTTP request parameters to Java object fields — a process called data binding.
Under certain conditions, attackers could:
This ultimately allowed arbitrary code execution on the server.

Spring4Shell was not universally exploitable. All of the following had to be true:
If packaged as a Spring Boot executable JAR, exploitation was typically not possible.
If successfully exploited, an attacker could:
| Metric | Value |
|---|---|
| CVE ID | CVE-2022-22965 |
| CVSS Score | 9.8 (Critical) |
| Attack Vector | Network |
| Authentication Required | ❌ No |
| User Interaction | ❌ None |
| Impact | Full RCE |
Upgrade to:
Spring Boot versions were also updated accordingly.
| Date | Event |
|---|---|
| March 2022 | Vulnerability reported |
| March 31, 2022 | Public disclosure |
| Same day | Patch released |
| Following days | Security scanning begins globally |
| Feature | Spring4Shell | Log4Shell |
|---|---|---|
| Framework | Spring Framework | Apache Log4j |
| CVE | 2022-22965 | 2021-44228 |
| Exploit Complexity | Moderate (requires conditions) | Extremely Low |
| Default Exposure | Limited | Widespread |
| CVSS | 9.8 | 10.0 |
Spring4Shell was serious, but Log4Shell had broader real-world exposure.
| Field | Value |
|---|---|
| Name | Spring4Shell |
| CVE | CVE-2022-22965 |
| Type | Remote Code Execution |
| Affected Software | Spring Framework |
| Severity | Critical |
| Patch Available | Yes |
| Exploit Conditions | Specific configuration required |
Spring4Shell demonstrated how complex object binding and reflection in modern frameworks can introduce unexpected attack surfaces.
While not as globally impactful as Log4Shell, it remains a critical vulnerability that required immediate patching in affected environments.