Loading advisory.
Loading advisory.
Remote Code Execution in Spring Framework
Spring Framework prior to versions 5.2.20 and 5.3.18 contains a remote code execution vulnerability known as Spring4Shell.
Published 2022-03-31 18:30 UTC · Modified 2025-10-22 19:34 UTC
Severity and EPSS are shown separately. Helm does not combine them into one score. How tiers work
| Package | Ecosystem | Affected | Fixed in | Upgrade command |
|---|---|---|---|---|
| org.springframework:spring-beans | Maven | < 5.2.20.RELEASE >= 5.3.0, < 5.3.18 versions 1.0, 1.0-m4, 1.0-rc1, 1.0.1, 1.2, 1.2-rc1, 1.2-rc2, 1.2.1, 1.2.2, 1.2.3, 1.2.4, 1.2.5, 1.2.6, 1.2.7, 1.2.8, 1.2.9, 2.0, 2.0-m1, 2.0-m2, 2.0-m3 and 195 more | 5.2.20.RELEASE, 5.3.18 | No single command for Maven. Update to 5.2.20.RELEASE, 5.3.18 in your build file. |
| org.springframework:spring-webmvc | Maven | < 5.2.20.RELEASE >= 5.3.0, < 5.3.18 versions 1.0, 1.0-rc1, 1.0.1, 1.1, 1.1-rc1, 1.1-rc2, 1.1.1, 1.1.2, 1.1.3, 1.1.4, 1.1.5, 1.2, 1.2-rc1, 1.2-rc2, 1.2.1, 1.2.2, 1.2.3, 1.2.4, 1.2.5, 1.2.6 and 202 more | 5.2.20.RELEASE, 5.3.18 | No single command for Maven. Update to 5.2.20.RELEASE, 5.3.18 in your build file. |
| org.springframework.boot:spring-boot-starter-web | Maven | < 2.5.12 >= 2.6.0, < 2.6.6 versions 1.0.0.RELEASE, 1.0.1.RELEASE, 1.0.2.RELEASE, 1.1.0.RELEASE, 1.1.1.RELEASE, 1.1.10.RELEASE, 1.1.11.RELEASE, 1.1.12.RELEASE, 1.1.2.RELEASE, 1.1.3.RELEASE, 1.1.4.RELEASE, 1.1.5.RELEASE, 1.1.6.RELEASE, 1.1.7.RELEASE, 1.1.8.RELEASE, 1.1.9.RELEASE, 1.2.0.RELEASE, 1.2.1.RELEASE, 1.2.2.RELEASE, 1.2.3.RELEASE and 133 more | 2.5.12, 2.6.6 | No single command for Maven. Update to 2.5.12, 2.6.6 in your build file. |
| org.springframework:spring-webflux | Maven | < 5.2.20.RELEASE >= 5.3.0, < 5.3.18 versions 5.0.0.RELEASE, 5.0.1.RELEASE, 5.0.10.RELEASE, 5.0.11.RELEASE, 5.0.12.RELEASE, 5.0.13.RELEASE, 5.0.14.RELEASE, 5.0.15.RELEASE, 5.0.16.RELEASE, 5.0.17.RELEASE, 5.0.18.RELEASE, 5.0.19.RELEASE, 5.0.2.RELEASE, 5.0.20.RELEASE, 5.0.3.RELEASE, 5.0.4.RELEASE, 5.0.5.RELEASE, 5.0.6.RELEASE, 5.0.7.RELEASE, 5.0.8.RELEASE and 60 more | 5.2.20.RELEASE, 5.3.18 | No single command for Maven. Update to 5.2.20.RELEASE, 5.3.18 in your build file. |
| org.springframework.boot:spring-boot-starter-webflux | Maven | < 2.5.12 >= 2.6.0, < 2.6.6 versions 2.0.0.RELEASE, 2.0.1.RELEASE, 2.0.2.RELEASE, 2.0.3.RELEASE, 2.0.4.RELEASE, 2.0.5.RELEASE, 2.0.6.RELEASE, 2.0.7.RELEASE, 2.0.8.RELEASE, 2.0.9.RELEASE, 2.1.0.RELEASE, 2.1.1.RELEASE, 2.1.10.RELEASE, 2.1.11.RELEASE, 2.1.12.RELEASE, 2.1.13.RELEASE, 2.1.14.RELEASE, 2.1.15.RELEASE, 2.1.16.RELEASE, 2.1.17.RELEASE and 68 more | 2.5.12, 2.6.6 | No single command for Maven. Update to 2.5.12, 2.6.6 in your build file. |
Spring Framework prior to versions 5.2.20 and 5.3.18 contains a remote code execution vulnerability known as Spring4Shell.
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.
These are the prerequisites for the exploit:
JDK 9 or higher
Apache Tomcat as the Servlet container
Packaged as WAR
spring-webmvc or spring-webflux dependency
For 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.
To 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).
Exploit code or a detection template for this CVE is published by the sources below. This is not a report of use against real systems (that is what CISA KEV records) and it does not change the tier.
EPSS went from 0.996 on 2026-11-24 to 0.892 on 2026-11-26, over 2 recorded scores.
| Date | Score | Previous | Model |
|---|---|---|---|
| 2026-11-24 | 0.996 | first score | v2026.06.15 |
| 2026-11-26 | 0.892 | 0.996 | v2026.06.15 |