Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"schema_version": "1.4.0",
"id": "GHSA-36p3-wjmg-h94x",
"modified": "2025-10-22T19:18:34Z",
"modified": "2025-10-22T19:18:35Z",
"published": "2022-03-31T18:30:50Z",
"aliases": [
"CVE-2022-22965"
Expand All @@ -10,8 +10,8 @@
"details": "Spring Framework prior to versions 5.2.20 and 5.3.18 contains a remote code execution vulnerability known as `Spring4Shell`. \n\n## Impact\n\nA 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.\n\nThese are the prerequisites for the exploit:\n- JDK 9 or higher\n- Apache Tomcat as the Servlet container\n- Packaged as WAR\n- `spring-webmvc` or `spring-webflux` dependency\n\n## Patches\n\n- Spring Framework [5.3.18](https://github.com/spring-projects/spring-framework/releases/tag/v5.3.18) and [5.2.20](https://github.com/spring-projects/spring-framework/releases/tag/v5.2.20.RELEASE)\n- Spring Boot [2.6.6](https://github.com/spring-projects/spring-boot/releases/tag/v2.6.6) and [2.5.12](https://github.com/spring-projects/spring-boot/releases/tag/v2.5.12)\n\n## Workarounds\n\nFor those who are unable to upgrade, leaked reports recommend setting `disallowedFields` on `WebDataBinder` through an `@ControllerAdvice`. This works generally, but as a centrally applied workaround fix, may leave some loopholes, in particular if a controller sets `disallowedFields` locally through its own `@InitBinder` method, which overrides the global setting.\n\nTo apply the workaround in a more fail-safe way, applications could extend `RequestMappingHandlerAdapter` to update the `WebDataBinder` at the end after all other initialization. In order to do that, a Spring Boot application can declare a `WebMvcRegistrations` bean (Spring MVC) or a `WebFluxRegistrations` bean (Spring WebFlux).",
"severity": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H/E:H"
"type": "CVSS_V4",
"score": "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:N/SC:N/SI:N/SA:N"
}
],
"affected": [
Expand All @@ -25,10 +25,10 @@
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
"introduced": "5.3.0"
},
{
"fixed": "5.2.20.RELEASE"
"fixed": "5.3.18"
}
]
}
Expand All @@ -37,7 +37,7 @@
{
"package": {
"ecosystem": "Maven",
"name": "org.springframework:spring-beans"
"name": "org.springframework:spring-webmvc"
},
"ranges": [
{
Expand All @@ -56,7 +56,7 @@
{
"package": {
"ecosystem": "Maven",
"name": "org.springframework:spring-webmvc"
"name": "org.springframework.boot:spring-boot-starter-web"
},
"ranges": [
{
Expand All @@ -66,7 +66,7 @@
"introduced": "0"
},
{
"fixed": "5.2.20.RELEASE"
"fixed": "2.5.12"
}
]
}
Expand All @@ -75,17 +75,17 @@
{
"package": {
"ecosystem": "Maven",
"name": "org.springframework:spring-webmvc"
"name": "org.springframework.boot:spring-boot-starter-web"
},
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "5.3.0"
"introduced": "2.6.0"
},
{
"fixed": "5.3.18"
"fixed": "2.6.6"
}
]
}
Expand All @@ -94,17 +94,17 @@
{
"package": {
"ecosystem": "Maven",
"name": "org.springframework.boot:spring-boot-starter-web"
"name": "org.springframework:spring-webflux"
},
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
"introduced": "5.3.0"
},
{
"fixed": "2.5.12"
"fixed": "5.3.18"
}
]
}
Expand All @@ -113,17 +113,17 @@
{
"package": {
"ecosystem": "Maven",
"name": "org.springframework.boot:spring-boot-starter-web"
"name": "org.springframework.boot:spring-boot-starter-webflux"
},
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "2.6.0"
"introduced": "0"
},
{
"fixed": "2.6.6"
"fixed": "2.5.12"
}
]
}
Expand All @@ -132,17 +132,17 @@
{
"package": {
"ecosystem": "Maven",
"name": "org.springframework:spring-webflux"
"name": "org.springframework.boot:spring-boot-starter-webflux"
},
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
"introduced": "2.6.0"
},
{
"fixed": "5.2.20.RELEASE"
"fixed": "2.6.6"
}
]
}
Expand All @@ -151,17 +151,17 @@
{
"package": {
"ecosystem": "Maven",
"name": "org.springframework:spring-webflux"
"name": "org.springframework:spring-beans"
},
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "5.3.0"
"introduced": "0"
},
{
"fixed": "5.3.18"
"fixed": "5.2.20.RELEASE"
}
]
}
Expand All @@ -170,7 +170,7 @@
{
"package": {
"ecosystem": "Maven",
"name": "org.springframework.boot:spring-boot-starter-webflux"
"name": "org.springframework:spring-webmvc"
},
"ranges": [
{
Expand All @@ -180,7 +180,7 @@
"introduced": "0"
},
{
"fixed": "2.5.12"
"fixed": "5.2.20.RELEASE"
}
]
}
Expand All @@ -189,17 +189,17 @@
{
"package": {
"ecosystem": "Maven",
"name": "org.springframework.boot:spring-boot-starter-webflux"
"name": "org.springframework:spring-webflux"
},
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "2.6.0"
"introduced": "0"
},
{
"fixed": "2.6.6"
"fixed": "5.2.20.RELEASE"
}
]
}
Expand Down Expand Up @@ -285,7 +285,7 @@
"CWE-74",
"CWE-94"
],
"severity": "CRITICAL",
"severity": "LOW",
"github_reviewed": true,
"github_reviewed_at": "2022-03-31T18:30:50Z",
"nvd_published_at": "2022-04-01T23:15:00Z"
Expand Down
Loading