GHSA-36p3-wjmg-h94x
CRITICALRemote Code Execution in Spring Framework
EPSS Exploitation Probability
EPSS (Exploit Prediction Scoring System) is a daily probability model maintained by FIRST.org. It estimates the likelihood a CVE will be exploited in production environments within the next 30 days, derived from real-world threat intelligence signals.
Blast Radius
org.springframework:spring-beans☕org.springframework:spring-beans☕org.springframework:spring-webmvc☕org.springframework:spring-webmvc☕org.springframework.boot:spring-boot-starter-web☕org.springframework.boot:spring-boot-starter-web☕org.springframework:spring-webflux☕org.springframework:spring-webflux+2 moreReal-time download stats are indexed for npm and PyPI packages. This vulnerability affects Maven packages — download data is not available via public APIs for these ecosystems.
Description
Spring Framework prior to versions 5.2.20 and 5.3.18 contains a remote code execution vulnerability known as Spring4Shell.
Impact
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-webmvcorspring-webfluxdependency
Patches
Workarounds
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).
Affected Packages
| Ecosystem | Package | Vulnerable range | Fix |
|---|---|---|---|
| ☕Maven | org.springframework:spring-beans | all versions | 5.2.20.RELEASE |
| ☕Maven | org.springframework:spring-beans | ≥ 5.3.0&&< 5.3.18 | 5.3.18 |
| ☕Maven | org.springframework:spring-webmvc | all versions | 5.2.20.RELEASE |
| ☕Maven | org.springframework:spring-webmvc | ≥ 5.3.0&&< 5.3.18 | 5.3.18 |
| ☕Maven | org.springframework.boot:spring-boot-starter-web | all versions | 2.5.12 |
| ☕Maven | org.springframework.boot:spring-boot-starter-web | ≥ 2.6.0&&< 2.6.6 | 2.6.6 |
Research use only. For defensive security, authorized penetration testing, and academic research only. Never execute exploit code against systems without explicit written authorization.
A Spring MVC or Spring WebFlux application running on JDK 9+ may be vuln…
A Spring MVC or Spring WebFlux application running on JDK 9+ may be vuln…
A Spring MVC or Spring WebFlux application running on JDK 9+ may be vuln…
A Spring MVC or Spring WebFlux application running on JDK 9+ may be vuln…
A Spring MVC or Spring WebFlux application running on JDK 9+ may be vuln…
A Spring MVC or Spring WebFlux application running on JDK 9+ may be vuln…
A Spring MVC or Spring WebFlux application running on JDK 9+ may be vuln…
A Spring MVC or Spring WebFlux application running on JDK 9+ may be vuln…
A Spring MVC or Spring WebFlux application running on JDK 9+ may be vuln…
A Spring MVC or Spring WebFlux application running on JDK 9+ may be vuln…
Frequently Asked Questions
Is GHSA-36p3-wjmg-h94x in your stack?
O3 detects GHSA-36p3-wjmg-h94x across Maven dependencies and uses function-level reachability to confirm whether the vulnerable code path is actually reachable — not just present. No false positives.