PT-2022-1950 · Spring · Spring Cloud Gateway
Published
2021-10-11
·
Updated
2025-03-13
·
CVE-2022-22947
CVSS v3.1
10
  10
Critical
| Base vector | Vector | AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H | 
Name of the Vulnerable Software and Affected Versions
Spring Cloud Gateway versions prior to 3.1.1 and 3.0.7
Description
The issue is related to the Gateway Actuator component of Spring Cloud Gateway, which is vulnerable to code injection attacks due to incorrect code generation management. This can allow a remote attacker to execute arbitrary code by sending a specially crafted request. The vulnerability can be exploited when the Gateway Actuator endpoint is enabled, exposed, and unsecured. According to available data, 28% of cloud environments using Spring Cloud Gateway are at risk. The vulnerability can lead to sensitive data exposure, such as AWS keys and JWT tokens, and can also allow for Server-Side Request Forgery (SSRF) and potential Remote Code Execution (RCE).
Recommendations
For Spring Cloud Gateway versions prior to 3.1.1 and 3.0.7, update to version 3.1.1 or 3.0.7 or later to resolve the issue. As a temporary workaround, consider disabling the Gateway Actuator endpoint to minimize the risk of exploitation. Restrict access to the 
/actuatorenvheapdumpExploit
Fix
Code Injection
 Found an issue in the description?  Have something to add?  Feel free to write us 👾 
dbugs@ptsecurity.com
Related Identifiers
ALT-PU-2021-3018
ALT-PU-2021-3037
ALT-PU-2021-3060
BDU:2022-01507
CVE-2022-22947
GHSA-3GX9-37WW-9QW6
Affected Products
Spring Cloud Gateway
References · 230
- 🔥 https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/multi/http/apache_normalize_path_rce.rb⭐ 35126 🔗 14214 · Exploit
- 🔥 https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/linux/http/spring_cloud_gateway_rce.rb⭐ 34302 🔗 14014 · Exploit
- 🔥 https://github.com/savior-only/CVE-2022-22947⭐ 635 🔗 61 · Exploit
- 🔥 https://github.com/lucksec/Spring-Cloud-Gateway-CVE-2022-22947⭐ 220 🔗 59 · Exploit
- 🔥 https://github.com/charonlight/SpringExploitGUI⭐ 244 🔗 13 · Exploit
- 🔥 https://github.com/blasty/CVE-2021-41773⭐ 207 🔗 46 · Exploit
- 🔥 https://github.com/whwlsfb/cve-2022-22947-godzilla-memshell⭐ 203 🔗 28 · Exploit
- 🔥 https://github.com/inbug-team/CVE-2021-41773_CVE-2021-42013⭐ 147 🔗 48 · Exploit
- 🔥 https://github.com/thehackersbrain/CVE-2021-41773⭐ 106 🔗 35 · Exploit
- 🔥 https://github.com/Axx8/CVE-2022-22947_Rce_Exp⭐ 75 🔗 24 · Exploit
- 🔥 https://github.com/tangxiaofeng7/CVE-2022-22947-Spring-Cloud-Gateway⭐ 71 🔗 21 · Exploit
- 🔥 https://github.com/iilegacyyii/PoC-CVE-2021-41773⭐ 47 🔗 38 · Exploit
- 🔥 https://github.com/0730Nophone/CVE-2022-22947-⭐ 53 🔗 9 · Exploit
- 🔥 https://github.com/lorddemon/CVE-2021-41773-PoC⭐ 37 🔗 22 · Exploit
- 🔥 https://github.com/carlosevieira/CVE-2022-22947⭐ 39 🔗 14 · Exploit