{"id":"MSF-multi--http--spring_framework_rce_spring4shell","name":"Spring Framework Class property RCE (Spring4Shell)","description":"Spring Framework versions 5.3.0 to 5.3.17, 5.2.0 to 5.2.19, and older versions when running on JDK 9 or above and specifically packaged as a traditional WAR and deployed in a standalone Tomcat instance are vulnerable to remote code execution due to an unsafe data binding used to populate an object from request parameters to set a Tomcat specific ClassLoader. By crafting a request to the application and referencing the org.apache.catalina.valves.AccessLogValve class through the classLoader with parameters such as the following: class.module.classLoader.resources.context.parent.pipeline.first.suffix=.jsp, an unauthenticated attacker can gain remote code execution.","cves":["CVE-2022-22965"],"author":"vleminator","published":"2022-03-31","platform":"Linux,Windows","type":"remote","language":"Ruby","source":"metasploit","sourceUrl":"https://github.com/rapid7/metasploit-framework/blob/90dfbaa741421d0179f9f371109c215d49400444/modules/exploits/multi/http/spring_framework_rce_spring4shell.rb","path":"modules/exploits/multi/http/spring_framework_rce_spring4shell.rb","revision":"90dfbaa741421d0179f9f371109c215d49400444","filename":"spring_framework_rce_spring4shell.rb","vulnerabilities":[{"id":"CVE-2022-22965","state":"PUBLISHED","title":null,"titleSource":null,"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.","descriptionSource":"CVE Program","descriptionUrl":"https://www.cve.org/CVERecord?id=CVE-2022-22965","cvss":{"version":"3.1","baseScore":9.8,"severity":"critical","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","source":"CISA-ADP","sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2022-22965"},"updatedAt":"2025-10-21T23:15:42.792Z","retrievedAt":"2026-11-25T16:13:33.581Z","stale":false,"error":null}],"imageUrl":"https://exploitbin.com/social/exploits/MSF-multi--http--spring_framework_rce_spring4shell.png?v=2","url":"https://exploitbin.com/exploits/MSF-multi--http--spring_framework_rce_spring4shell","downloadUrl":"https://exploitbin.com/api/v1/exploits/MSF-multi--http--spring_framework_rce_spring4shell/download","codeUrl":"https://exploitbin.com/api/v1/exploits/MSF-multi--http--spring_framework_rce_spring4shell/code","licenseUrl":"https://exploitbin.com/sources#metasploit"}