{"id":"CVE-2022-22947","published":"2022-03-03T22:15:08Z","modified":"2026-06-17T04:29:13Z","title":"VMware Spring Cloud Gateway Code Injection Vulnerability","vendor":"VMware","product":"Spring Cloud Gateway","tier":"core","eol":null,"description":{"text":"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.","provenance":"source","from":"NVD"},"summary":{"text":"VMware Spring Cloud Gateway contains a code injection flaw in its Gateway Actuator endpoint, which is exploitable when that endpoint is enabled, exposed and left unsecured. An unauthenticated remote attacker who can reach the endpoint can send a maliciously crafted request that results in arbitrary code execution on the host, with no user interaction required.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-10-29T13:44:39Z"},"cvss":{"score":10.0,"severity":"CRITICAL","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H","provenance":"source","from":"NVD"},"epss":{"score":0.98253,"percentile":0.99916,"date":"2026-10-29","provenance":"source"},"kev":{"dateAdded":"2022-05-16","dueDate":"2022-06-06","ransomware":false,"requiredAction":"Apply updates per vendor instructions.","notes":"https://nvd.nist.gov/vuln/detail/CVE-2022-22947","provenance":"source"},"vulncheckKev":{"dateAdded":"2022-04-27","exploitedFirstSeen":"2022-04-27","ransomware":false,"evidence":[{"url":"https://www.botconf.eu/wp-content/uploads/2022/05/Botconf2022-24-PalotayZsigovits.pdf","date":"2022-04-27"},{"url":"https://www.bleepingcomputer.com/news/security/microsoft-sysrv-botnet-targets-windows-linux-servers-with-new-exploits/","date":"2022-05-13"},{"url":"https://www.cisa.gov/sites/default/files/feeds/known_exploited_vulnerabilities.json","date":"2022-05-16"},{"url":"https://www.malwarebytes.com/blog/news/2022/05/sysrv-botnet-is-out-to-mine-monero-on-your-windows-and-linux-servers","date":"2022-05-22"},{"url":"https://cybersecurity.att.com/blogs/labs-research/rapidly-evolving-iot-malware-enemybot-now-targeting-content-management-system-servers","date":"2022-05-26"},{"url":"https://unit42.paloaltonetworks.com/recent-exploits-network-security-trends/","date":"2022-08-19"},{"url":"https://cujo.com/blog/the-2022-2023-iot-botnet-report-vulnerabilities-targeted/","date":"2023-04-27"},{"url":"https://cujo.com/the-2022-2023-iot-botnet-report-vulnerabilities-targeted/","date":"2023-04-27"},{"url":"https://dashboard.shadowserver.org/statistics/honeypot/vulnerability/map/?day=2023-11-18&host_type=src&vulnerability=cve-2022-22947","date":"2023-11-18"},{"url":"https://dashboard.shadowserver.org/statistics/honeypot/vulnerability/map/?day=2023-11-19&host_type=src&vulnerability=cve-2022-22947","date":"2023-11-19"}],"evidenceTotal":320,"provenance":"source"},"exploited":true,"otx":{"pulseCount":50,"pulses":[{"name":"Actively_Exploited_Kev | Oct 29, 2026","url":"https://otx.alienvault.com/pulse/6ae20c1db17e7057ae7d9ad1","created":"2026-10-28"},{"name":"Actively_Exploited_Kev | Oct 28, 2026","url":"https://otx.alienvault.com/pulse/6ae0ba7e0e2a97ff7b218819","created":"2026-10-27"},{"name":"Actively_Exploited_Kev | Oct 27, 2026","url":"https://otx.alienvault.com/pulse/6adf68b85c3e852f3c111d18","created":"2026-10-26"},{"name":"Actively_Exploited_Kev | Oct 24, 2026","url":"https://otx.alienvault.com/pulse/6adb740e397c3ad4799aa4cd","created":"2026-10-23"},{"name":"Actively_Exploited_Kev | Oct 23, 2026","url":"https://otx.alienvault.com/pulse/6ada236fcfba2dfa730ea482","created":"2026-10-22"},{"name":"Actively_Exploited_Kev | Oct 22, 2026","url":"https://otx.alienvault.com/pulse/6ad8d33a077cbb5cab524d80","created":"2026-10-21"},{"name":"Actively_Exploited_Kev | Oct 21, 2026","url":"https://otx.alienvault.com/pulse/6ad78130c4d1ac2be83a8b6d","created":"2026-10-20"},{"name":"Actively_Exploited_Kev | Oct 20, 2026","url":"https://otx.alienvault.com/pulse/6ad62f63c24a405a3423cc13","created":"2026-10-19"},{"name":"Actively_Exploited_Kev | Oct 19, 2026","url":"https://otx.alienvault.com/pulse/6ad4dda174e5797d0bd238b7","created":"2026-10-18"},{"name":"Actively_Exploited_Kev | Oct 18, 2026","url":"https://otx.alienvault.com/pulse/6ad38c22e1848f8189d1c121","created":"2026-10-17"}],"provenance":"machine"},"cwes":[{"id":"CWE-917","name":"Improper Neutralization of Special Elements used in an Expression Language Statement"},{"id":"CWE-94","name":"Improper Control of Generation of Code"}],"references":[{"url":"http://packetstormsecurity.com/files/166219/Spring-Cloud-Gateway-3.1.0-Remote-Code-Execution.html","tags":["Exploit","Third Party Advisory","VDB Entry"]},{"url":"http://packetstormsecurity.com/files/168742/Spring-Cloud-Gateway-3.1.0-Remote-Code-Execution.html","tags":["Exploit","Third Party Advisory","VDB Entry"]},{"url":"https://tanzu.vmware.com/security/cve-2022-22947","tags":["Mitigation","Vendor Advisory"]},{"url":"https://www.oracle.com/security-alerts/cpuapr2022.html","tags":["Patch","Third Party Advisory"]},{"url":"https://www.oracle.com/security-alerts/cpujul2022.html","tags":["Patch","Third Party Advisory"]},{"url":"http://packetstormsecurity.com/files/166219/Spring-Cloud-Gateway-3.1.0-Remote-Code-Execution.html","tags":["Exploit","Third Party Advisory","VDB Entry"]},{"url":"http://packetstormsecurity.com/files/168742/Spring-Cloud-Gateway-3.1.0-Remote-Code-Execution.html","tags":["Exploit","Third Party Advisory","VDB Entry"]},{"url":"https://tanzu.vmware.com/security/cve-2022-22947","tags":["Mitigation","Vendor Advisory"]},{"url":"https://www.oracle.com/security-alerts/cpuapr2022.html","tags":["Patch","Third Party Advisory"]},{"url":"https://www.oracle.com/security-alerts/cpujul2022.html","tags":["Patch","Third Party Advisory"]},{"url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2022-22947","tags":["US Government Resource"]}],"techniques":[{"id":"T1190","name":"Exploit Public-Facing Application","tactics":["initial-access"],"provenance":"source","basis":"ctid-kev","bases":["ctid-kev"],"basisDetail":"CTID Mappings Explorer KEV 07/28/2025 (ATT&CK 16.1); capability: Code Injection","mappingType":"exploitation_technique","evidence":[],"comment":"This vulnerability is exploited by a remote attacker via a code injection attack to gain perform arbitrary remote code execution. CISA has linked this vulnerability to adversary campaigns performed by Andariel to perform cyber espionage via ransomware operations. \n","confidence":"high"},{"id":"T1059","name":"Command and Scripting Interpreter","tactics":["execution"],"provenance":"source","basis":"ctid-kev","bases":["ctid-kev"],"basisDetail":"CTID Mappings Explorer KEV 07/28/2025 (ATT&CK 16.1); capability: Code Injection","mappingType":"primary_impact","evidence":[],"comment":"This vulnerability is exploited by a remote attacker via a code injection attack to gain perform arbitrary remote code execution. CISA has linked this vulnerability to adversary campaigns performed by Andariel to perform cyber espionage via ransomware operations. \n","confidence":"high"},{"id":"T1486","name":"Data Encrypted for Impact","tactics":["impact"],"provenance":"source","basis":"ctid-kev","bases":["ctid-kev"],"basisDetail":"CTID Mappings Explorer KEV 07/28/2025 (ATT&CK 16.1); capability: Code Injection","mappingType":"secondary_impact","evidence":[],"comment":"This vulnerability is exploited by a remote attacker via a code injection attack to gain perform arbitrary remote code execution. CISA has linked this vulnerability to adversary campaigns performed by Andariel to perform cyber espionage via ransomware operations. \n","confidence":"high"}],"reports":[],"affected":[{"ecosystem":"Maven","package":"org.springframework.cloud:spring-cloud-gateway","vulnerableRanges":["<3.0.7",">=3.1.0, <3.1.1"],"patched":["3.0.7","3.1.1"],"from":["GHSA-3gx9-37ww-9qw6"],"provenance":"source"}],"advisories":[{"id":"GHSA-3gx9-37ww-9qw6","url":"https://github.com/advisories/GHSA-3gx9-37ww-9qw6","severity":"CRITICAL","ecosystem":"Maven","package":"org.springframework.cloud:spring-cloud-gateway","vulnerableRanges":["<3.0.7"],"patched":["3.0.7"],"provenance":"source","from":"GHSA"},{"id":"GHSA-3gx9-37ww-9qw6","url":"https://github.com/advisories/GHSA-3gx9-37ww-9qw6","severity":"CRITICAL","ecosystem":"Maven","package":"org.springframework.cloud:spring-cloud-gateway","vulnerableRanges":[">=3.1.0, <3.1.1"],"patched":["3.1.1"],"provenance":"source","from":"GHSA"}],"euvd":{"id":"EUVD-2022-1288","url":"https://euvd.enisa.europa.eu/vulnerability/EUVD-2022-1288","exploited":true,"exploitedSince":"2022-05-16","provenance":"source"},"exploits":[{"id":50799,"url":"https://www.exploit-db.com/exploits/50799","title":"Spring Cloud Gateway 3.1.0 - Remote Code Execution (RCE)","type":"webapps","platform":"java","date":"2022-03-07","verified":false,"provenance":"source"}],"exploitSources":{"exploitdb":{"count":1,"earliest":"2022-03-07"},"pocGithub":{"count":57,"skipped":5,"earliest":"2022-03-02","earliestUrl":"https://github.com/lucksec/Spring-Cloud-Gateway-CVE-2022-22947","repos":[{"name":"lucksec/Spring-Cloud-Gateway-CVE-2022-22947","url":"https://github.com/lucksec/Spring-Cloud-Gateway-CVE-2022-22947","stars":222,"created":"2022-03-02"},{"name":"whwlsfb/cve-2022-22947-godzilla-memshell","url":"https://github.com/whwlsfb/cve-2022-22947-godzilla-memshell","stars":210,"created":"2022-04-26"},{"name":"SecNN/CVE-2022-22947_Rce_Exp","url":"https://github.com/SecNN/CVE-2022-22947_Rce_Exp","stars":77,"created":"2022-03-03"},{"name":"tangxiaofeng7/CVE-2022-22947-Spring-Cloud-Gateway","url":"https://github.com/tangxiaofeng7/CVE-2022-22947-Spring-Cloud-Gateway","stars":72,"created":"2022-03-04"},{"name":"0730Nophone/CVE-2022-22947-","url":"https://github.com/0730Nophone/CVE-2022-22947-","stars":59,"created":"2022-05-16"}]},"metasploit":[{"name":"Spring Cloud Gateway Remote Code Execution","module":"exploit/linux/http/spring_cloud_gateway_rce","type":"exploit","disclosureDate":"2022-01-26","url":"https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/linux/http/spring_cloud_gateway_rce.rb"}],"nuclei":[{"id":"CVE-2022-22947","name":"Spring Cloud Gateway Code Injection","severity":"critical","path":"http/cves/2022/CVE-2022-22947.yaml","url":"https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2022/CVE-2022-22947.yaml"}],"first":{"date":"2022-01-26","source":"Metasploit","url":"https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/linux/http/spring_cloud_gateway_rce.rb"},"provenance":"source"},"exploitRefs":["http://packetstormsecurity.com/files/166219/Spring-Cloud-Gateway-3.1.0-Remote-Code-Execution.html","http://packetstormsecurity.com/files/168742/Spring-Cloud-Gateway-3.1.0-Remote-Code-Execution.html"],"flow":[{"stage":"exploitation","techniques":["T1190"],"provenance":"source"},{"stage":"primary","techniques":["T1059"],"provenance":"source"},{"stage":"secondary","techniques":["T1486"],"provenance":"source"}],"timeline":[{"date":"2022-01-26","kind":"exploit-public","label":"First public exploit: Metasploit; later: PoC-in-GitHub 2022-03-02, Exploit-DB 2022-03-07","url":"https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/linux/http/spring_cloud_gateway_rce.rb","provenance":"source"},{"date":"2022-03-03","kind":"published","label":"Published (NVD)","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-22947","provenance":"source"},{"date":"2022-04-27","kind":"exploited-reported","label":"Exploitation first reported (VulnCheck KEV evidence)","url":"https://www.botconf.eu/wp-content/uploads/2022/05/Botconf2022-24-PalotayZsigovits.pdf","provenance":"source"},{"date":"2022-05-16","kind":"kev","label":"Added to CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","provenance":"source"},{"date":"2022-05-16","kind":"euvd-exploited","label":"ENISA EUVD: exploited","url":"https://euvd.enisa.europa.eu/vulnerability/EUVD-2022-1288","provenance":"source"}],"speed":{"daysToPublicExploit":null,"firstExploitFrom":"Metasploit","daysToKev":74},"priority":{"score":70.0,"factors":[{"name":"In a KEV catalog","points":35.0,"detail":"listed in CISA KEV and VulnCheck KEV"},{"name":"Recent KEV listing","points":0.0,"detail":"added 1647 days ago"},{"name":"Known ransomware use","points":0.0,"detail":"not known"},{"name":"EPSS percentile","points":19.98,"detail":"percentile 0.9992"},{"name":"Named in threat reports","points":0.0,"detail":"0 reports"},{"name":"Public exploit code","points":5.0,"detail":"2 NVD references tagged Exploit; 1 Exploit-DB entry; 57 PoC-in-GitHub repos; 1 Metasploit module; 1 nuclei template"},{"name":"Mentioned in OTX pulses","points":3.0,"detail":"50 pulses"},{"name":"CVSS severity","points":7.0,"detail":"base score 10.0"},{"name":"End-of-life product","points":0.0,"detail":"supported or unknown"}]},"lineage":{"packageHistory":[{"cve":"CVE-2021-22051","published":"2021-11-08","fixed":"3.0.5","kev":false,"link":{"from":"CVE-2021-22051","to":"CVE-2022-22947","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Maven:org.springframework.cloud:spring-cloud-gateway","fromFixed":"3.0.5","toFixed":"3.0.7","daysApart":115}]}},{"cve":"CVE-2022-22947","published":"2022-03-03","fixed":"3.1.1","kev":true},{"cve":"CVE-2026-22750","published":"2026-04-10","fixed":"4.2.1","kev":false}],"package":"Maven:org.springframework.cloud:spring-cloud-gateway"}}