patchminder
Exploited in the wild · CISA KEV CVE-2022-22947

Code injectionin VMware Spring Cloud Gateway.

Published 3 Mar 2022 · Updated 21 Oct 2025 · Every fact sourced

JSONCite
Is it exploited?
Yes

On CISAThe US cyber defence agency. Its list names every hole it has seen used in real attacks.'s exploited list since 16 May 2022.

On CISA's listAttack code is public
Severity
Critical 10.0
CVSSA severity score from 0 to 10. 9 and higher is critical. 3.1 · CISAThe US cyber defence agency. Its list names every hole it has seen used in real attacks. assessment · no login needed
Attack likelihood
Very high
EPSSA daily score from FIRST: the chance a hole is attacked in the next 30 days. 98.3% chance in 30 days · 4 Dec 2026
Fix
Available
Fixed in 3.0.7, 3.1.1
In plain words

In spring cloud gateway versions prior to 3.1.1+ and 3.0.7+ , applications are vulnerable to a code injection attack when the Gateway Actuator endpoint is enabled, exposed and unsecured. A remote attacker could make a maliciously crafted request that could allow arbitrary remote execution on the remote host.

CISA: Spring Cloud Gateway applications are vulnerable to a code injection attack when the Gateway Actuator endpoint is enabled, exposed and unsecured.

What to do now
  • Upgrade org.springframework.cloud:spring-cloud-gateway (Maven) to 3.0.7, 3.1.1 or later, whichever matches your release line.
  • CISA requires US federal agencies to fix it by 6 Jun 2022.
Versions

Affected and fixed versions

Product or package
Affected
Fixed in
Source
Spring Cloud Gateway
Not confirmed
Not confirmed
CVE record
org.springframework.cloud:spring-cloud-gateway (Maven)
before 3.0.7
3.0.7
GitHub advisory
org.springframework.cloud:spring-cloud-gateway (Maven)
3.1.0 to before 3.1.1
3.1.1
GitHub advisory

From the CVE record, NVD and package advisories. When no source has versions yet, this table says "not confirmed" instead of guessing.

Timeline

From first report to first attacks

  1. 10 Jan 2022
    CVE ID reserved by vmware.
  2. 26 Jan 2022
    Metasploit module: Spring Cloud Gateway Remote Code Execution.
  3. 2 Mar 2022
    First public proof of concept on GitHub.
  4. 3 Mar 2022
    Published in the CVE List.
  5. 16 May 2022
    Added to CISA's Known Exploited Vulnerabilities list.
  6. 21 Oct 2025
    CVE record last updated.
Exploit code

Attack code anyone can find

Exploit maturity: Exploited in the wild (CISA KEV). CISA assessment (SSVC): exploitation active.

Metasploit module
1 module
Nuclei scan template
Available
Exploit-DB
1 entry
GitHub proof of concepts
63 repositories
NucleiSpring Cloud Gateway Code Injectiondetection template
Exploit-DBEDB-ID 50799web application exploit for java, published 7 Mar 2022
GitHubno warning signs foundlucksec/Spring-Cloud-Gateway-CVE-2022-22947221 stars · created 2 Mar 2022CVE-2022-22947
GitHubno warning signs foundwhwlsfb/cve-2022-22947-godzilla-memshell210 stars · created 26 Apr 2022CVE-2022-22947 注入Godzilla内存马
GitHubno warning signs foundSecNN/CVE-2022-22947_Rce_Exp77 stars · created 3 Mar 2022Spring Cloud Gateway 远程代码执行漏洞Exp Spring_Cloud_Gateway_RCE_Exp-CVE-2022-22947
GitHubno warning signs foundtangxiaofeng7/CVE-2022-22947-Spring-Cloud-Gateway72 stars · created 4 Mar 2022CVE-2022-22947批量
GitHubno warning signs found0730Nophone/CVE-2022-22947-59 stars · created 16 May 2022Spring Cloud Gateway Actuator API SpEL表达式注入命令执行(CVE-2022-22947) 注入哥斯拉内存马
GitHubno warning signs foundcrowsec-edtech/CVE-2022-2294737 stars · created 3 Mar 2022Spring Cloud Gateway < 3.0.7 & < 3.1.1 Code Injection (RCE)
GitHubno warning signs found0x7eTeam/CVE-2022-2294734 stars · created 8 Mar 2022CVE-2022-22947_EXP,CVE-2022-22947_RCE,CVE-2022-22947反弹shell,CVE-2022-22947 getshell
GitHubno warning signs foundTas9er/SpringCloudGatewayRCE27 stars · created 3 Mar 2022SpringCloudGatewayRCE · CVE-2022-22947 / Code By:Tas9er
GitHubno warning signs foundZh0um1/CVE-2022-2294727 stars · created 7 Feb 2023CVE-2022-22947注入哥斯拉内存马
GitHubno warning signs foundviemsr/spring_cloud_gateway_memshell18 stars · created 18 Mar 2022CVE-2022-22947 memshell

Listed so defenders can judge how urgent this is and test systems they are authorised to test. Patchminder does not host exploit code; links open the source page. Labels for GitHub repositories come from their public details and are never a promise about the code. Run anything only in an isolated lab.

Related

Other Spring Cloud Gateway vulnerabilities

Same weakness: Code injection

All CWE-94 vulnerabilities

References
Cite this page

Patchminder. CVE-2022-22947: Code injection in VMware Spring Cloud Gateway. https://patchminder.com/cve/cve-2022-22947/ (accessed 5 December 2026).