Skip to content
KitploitKITPLOIT
ToolsBlog
Submit
ToolsBlog
Submit

Hacking, PenTest, and Cybersecurity Tools for Your Security Arsenal!

Kitploit is a directory of hacking, cybersecurity, and pentesting tools. Discover the latest project updates to find vulnerabilities, analyze systems, automate testing, and strengthen your security.

··Feeds·Contact·Privacy·© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
CVE-2022-22965_Spring_Core_RCE — CVE-2022-22965\Spring-Core-RCE堪比关于 Apache Log4j2核弹级别漏洞exp的rce一键利用 | Kitploit
Tools/GitHubGitHub/wjl110/cve-2022-22965_spring_core_rce
Payload GenerationVulnerability AnalysisExploitationWeb Application ExploitationPenetration TestingLearning & Education
GitHubwjl110/cve-2022-22965_spring_core_rce

CVE-2022-22965_Spring_Core_RCE

CVE-2022-22965\Spring-Core-RCE堪比关于 Apache Log4j2核弹级别漏洞exp的rce一键利用

Most Popular

View all →

Discover the most used tools by our community.

Explore all tools

Browse our collection of tools

View all tools →
Share
View Repository
1674 years agoNot yet reviewed

Spring-Core-RCE Spring Framework Remote Command Execution Vulnerability (CVE-2022-22965)

Spring-Core-RCE is comparable to the Apache Log4j2 nuclear-level vulnerability exp for one-click RCE exploitation

Overview

Recently, a remote command execution vulnerability regarding Spring Core was mentioned in the Spring official GitHub issue. This vulnerability widely exists in the Spring framework and its derived frameworks. image

Vulnerability Description

Spring Core is a toolkit in the Spring product series responsible for discovering, creating, and handling relationships between beans. It is a core toolkit containing the basic Spring framework, and other Spring components must use this package.


Unauthenticated attackers can use this vulnerability to perform remote arbitrary code execution. This vulnerability widely exists in the Spring framework and its derived frameworks. JDK 9.0 and above are affected. Products using older JDK versions are not affected. It is recommended that enterprises with this vulnerability block requests containing special strings at the firewall to avoid attacks.

Vulnerability Reproduction

image

One-Click POC Exploitation

Setting Up the Vulnerability Environment

0x01. Use Docker to download: docker pull vulfocus/spring-core-rce-2022-03-29

image

0x02. Run the target container

docker run -d -p 8080:8080 vulfocus/spring-core-rce-2022-03-29:latest image

0x03. Visit http://127.0.0.1:8080/ - if 'ok' appears, the service is running normally

image

0x04. Use the exploit to attack

image

0x05. Obtain highest privileges:

Visit http://127.0.0.1:8080/tomcatwar.jsp?pwd=j&cmd=whoami image

Affected Scope

Spring framework and its derived frameworks are affected. (JDK version must be 9.0 or above.)

According to the latest FOFA system data (within one year), there are a total of 7,023,506 related services exposed globally (using the above FOFA query statement). China has the highest number with 2,987,121; the United States second with 1,215,955; Brazil third with 381,319; South Korea fourth with 219,201; Germany fifth with 213,097.

Global distribution is as follows (distribution only, not vulnerability impact scope)

Remediation Suggestions

Upgrade Spring Framework version

root@kitploit:~
Spring Framework == 5.3.18 

Spring Framework == 5.2.20

Temporary Defense Measures:

1. WAF Defense.

Add the following rules to the WAF to filter special input strings:

root@kitploit:~
Class.*

class.*

*.class.*

*Class.*

2. Protection via blacklist strategy.

In the affected product code, search for the @InitBinder annotation and check if the method body contains the dataBinder.serDisallowerFields method. If found, add the following filtering rules to the blacklist:

root@kitploit:~
Class.*

class.*

*.class.*

*Class.*

References

[1] https://github.com/spring-projects/spring-framework/issues/27483

[2] https://github.com/google/tsunami-security-scanner-plugins/issues/234

Download Tool