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.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| — | Spring Framework | Spring Framework versions 5.3.X prior to 5.3.18+, 5.2.x prior to 5.2.20+ and all old and unsupported versions | — |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | libspring-java | No fix yet | — |
| Debian 13 | libspring-java | No fix yet | — |
| Debian 12 | libspring-java | No fix yet | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 25.10 | libspring-java | 4.3.30-2ubuntu1 | — |
Show 4 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu Pro 24.04 LTS | libspring-java | 4.3.30-2ubuntu0.24.04.1~esm1 | USN-7165-1 |
| Ubuntu Pro 22.04 LTS | libspring-java | 4.3.30-1ubuntu0.1~esm1 | USN-7165-1 |
| Ubuntu Pro 20.04 LTS | libspring-java | 4.3.22-4ubuntu0.1~esm1 | USN-7165-1 |
| Ubuntu Pro 18.04 LTS | libspring-java | 4.3.22-1~18.04.1~esm1 | USN-7165-1 |
Public exploits
Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.
Metasploit 1 module
-
Spring Framework Class property RCE (Spring4Shell)
exploit/multi/http/spring_framework_rce_spring4shell
GitHub 100 repositories · most starred shown
-
BobTheShoplifter/Spring4Shell-POC ★ 379 · Mar 30, 2022
Spring4Shell Proof Of Concept/And vulnerable application CVE-2022-22965
-
reznok/Spring4Shell-POC ★ 326 · Mar 31, 2022
Dockerized Spring4Shell (CVE-2022-22965) PoC application and exploit
-
tpt11fb/SpringVulScan ★ 153 · Jun 19, 2022
burpsuite 的Spring漏洞扫描插件。SpringVulScan:支持检测:路由泄露|CVE-2022-22965|CVE-2022-22963|CVE-2022-22947|CVE-2016-4977
-
TheGejr/SpringShell ★ 130 · Mar 30, 2022
Spring4Shell - Spring Core RCE - CVE-2022-22965
-
zangcc/CVE-2022-22965-rexbb ★ 102 · Dec 28, 2022
CVE-2022-22965\Spring-Core-RCE核弹级别漏洞的rce图形化GUI一键利用工具,基于JavaFx开发,图形化操作更简单,提高效率。
-
alt3kx/CVE-2022-22965 ★ 100 · Apr 7, 2022
Spring Framework RCE (CVE-2022-22965) Nmap (NSE) Checker (Non-Intrusive)
-
SecNN/SpringFramework_CVE-2022-22965_RCE ★ 72 · Apr 1, 2022
SpringFramework 远程代码执行漏洞CVE-2022-22965
-
4nth0ny1130/spring4shell_behinder ★ 62 · Apr 7, 2022
CVE-2022-22965写入冰蝎webshell脚本
-
Mr-xn/spring-core-rce ★ 50 · Mar 30, 2022
CVE-2022-22965 : about spring core rce
-
FourCoreLabs/spring4shell-exploit-poc ★ 44 · Mar 31, 2022
Exploit a vulnerable Spring application with the Spring4Shell (CVE-2022-22965) Vulnerability.
Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.
Automated scanner template
A ready-made Nuclei template detects this vulnerability automatically. Vulnerabilities with public scanner templates are typically probed across the internet soon after the template appears — exposed systems should be patched first.
- Spring - Remote Code Execution http/cves/2022/CVE-2022-22965.yaml
Source: projectdiscovery/nuclei-templates (MIT) — updated daily. Only links are listed.
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| Maven | org.springframework:spring-beans | < 5.2.20.RELEASE | 5.2.20.RELEASE | GHSA-36p3-wjmg-h94x |
| Maven | org.springframework:spring-beans | >= 5.3.0, < 5.3.18 | 5.3.18 | GHSA-36p3-wjmg-h94x |
| Maven | org.springframework:spring-webflux | < 5.2.20.RELEASE | 5.2.20.RELEASE | GHSA-36p3-wjmg-h94x |
| Maven | org.springframework:spring-webflux | >= 5.3.0, < 5.3.18 | 5.3.18 | GHSA-36p3-wjmg-h94x |
| Maven | org.springframework:spring-webmvc | < 5.2.20.RELEASE | 5.2.20.RELEASE | GHSA-36p3-wjmg-h94x |
| Maven | org.springframework:spring-webmvc | >= 5.3.0, < 5.3.18 | 5.3.18 | GHSA-36p3-wjmg-h94x |
| Maven | org.springframework.boot:spring-boot-starter-web | < 2.5.12 | 2.5.12 | GHSA-36p3-wjmg-h94x |
| Maven | org.springframework.boot:spring-boot-starter-web | >= 2.6.0, < 2.6.6 | 2.6.6 | GHSA-36p3-wjmg-h94x |
| Maven | org.springframework.boot:spring-boot-starter-webflux | < 2.5.12 | 2.5.12 | GHSA-36p3-wjmg-h94x |
| Maven | org.springframework.boot:spring-boot-starter-webflux | >= 2.6.0, < 2.6.6 | 2.6.6 | GHSA-36p3-wjmg-h94x |
Advisories 11
- WID-SEC-2026-1955 Atlassian Bamboo, Bitbucket, Confluence, Fisheye, Crucible, Jira und Jira Service Management: Mehrere Schwachstellen BSI CERT-Bund (WID) · Sep 23, 2026
- USN-7165-1 libspring-java vulnerability Ubuntu Security Notices (USN) · Apr 27, 2026
- WID-SEC-2022-0169 Oracle MySQL: Mehrere Schwachstellen BSI CERT-Bund (WID) · Jan 25, 2026
- WID-SEC-2022-0033 VMware Tanzu Spring Framework: Schwachstelle ermöglicht Ausführen von beliebigem Programmcode BSI CERT-Bund (WID) · Dec 18, 2024
- WID-SEC-2024-0528 Dell Data Protection Advisor: Mehrere Schwachstellen BSI CERT-Bund (WID) · Feb 29, 2024
- WID-SEC-2023-1016 Oracle Fusion Middleware: Mehrere Schwachstellen BSI CERT-Bund (WID) · Dec 26, 2023
- WID-SEC-2023-1012 Oracle Insurance Applications: Mehrere Schwachstellen BSI CERT-Bund (WID) · Apr 18, 2023
- WID-SEC-2023-0139 Oracle Commerce: Mehrere Schwachstellen BSI CERT-Bund (WID) · Jan 17, 2023
- WID-SEC-2023-0016 IBM Tivoli Monitoring: Mehrere Schwachstellen BSI CERT-Bund (WID) · Jan 3, 2023
- ICSA-22-286-05 Hitachi Energy Lumada Asset Performance Management Prognostic Model Executor Service CISA ICS & IT advisories · Oct 13, 2022
- SSA-254054 SSA-254054: Spring Framework Vulnerability (Spring4Shell or SpringShell, CVE-2022-22965) - Impact to Siemens Products Siemens ProductCERT · Oct 11, 2022
References
- https://tanzu.vmware.com/security/cve-2022-22965
- 20220401 Vulnerability in Spring Framework Affecting Cisco Products: March 2022 vendor-advisory
- https://www.oracle.com/security-alerts/cpuapr2022.html
- https://psirt.global.sonicwall.com/vuln-detail/SNWLID-2022-0005
- http://packetstormsecurity.com/files/166713/Spring4Shell-Code-Execution.html
- https://cert-portal.siemens.com/productcert/pdf/ssa-254054.pdf
- https://www.oracle.com/security-alerts/cpujul2022.html
- http://packetstormsecurity.com/files/167011/Spring4Shell-Spring-Framework-Class-Property-Remote-Code-Execution.html