Skip to main content
Mallory
CriticalExploited in the wildCISA KEVPublic exploitVulnerability

CVE-2022-22963: Spring Cloud Function SpEL Routing Expression RCE

Published Apr 1, 2022 · Updated 27 days ago
Trending this weekNot trendingOutside this week’s top 100
Mention activity · 30 daysNo mention activity in the last 30 days.
CVSS9.8Critical · v3.1
EPSS99.9%100th percentile
CISA KEVYesAdded Aug 25, 2022
In the wildActivePer CISA KEV
Vendors
Oracle CorporationVMware
IdentifiersCVE-2022-22963CWE-94 · Improper Control of Generation of…

CVE-2022-22963 is a code-injection vulnerability in Spring Cloud Function routing functionality. Vulnerable versions evaluate a user-controlled Spring Expression Language (SpEL) routing expression supplied through an HTTP request header. The routing-expression processing path permits crafted SpEL to be evaluated with capabilities that can invoke Java functionality, enabling access to local resources and potentially arbitrary code execution. Affected releases include Spring Cloud Function 3.1.6 and earlier unsupported 3.1.x releases, and 3.2.0 through 3.2.2.

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.

An unauthenticated remote attacker can inject a malicious SpEL expression and execute arbitrary commands in the security context of the vulnerable application. Successful exploitation can also provide access to local application resources, enabling compromise of data confidentiality, integrity, and availability and facilitating further post-compromise activity.

Mitigation

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

Where immediate upgrading is not possible, disable or avoid Spring Cloud Function routing functionality where operationally feasible. Prevent untrusted clients from sending routing-expression input to the application, restrict network access to affected HTTP endpoints, and deploy inspection controls capable of blocking malicious SpEL expression payloads. Monitor application and HTTP logs for suspicious routing-expression header use and investigate evidence of command execution.

Remediation

Patch, then assume compromise.

Upgrade Spring Cloud Function to version 3.1.7 or later in the 3.1.x line, or to version 3.2.3 or later in the 3.2.x line. For products that embed Spring Cloud Function, obtain and apply the vendor-provided fixed release rather than attempting to update an embedded dependency independently.

Public exploits

Exploits

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

View more in app →
spring_cloud_function_spel_injection.rbThis repository contains a single Metasploit module targeting CVE-2022-22963, a remote code execution vulnerability in VMware Spring Cloud Function (versions prior to 3.1.7 and 3.2.3). The exploit leverages unsafe evaluation of user-supplied SpEL (Spring Expression Language) in the 'spring.cloud.function.routing-expression' HTTP header. By sending a crafted POST request to the vulnerable endpoint (default: /functionRouter), an unauthenticated attacker can execute arbitrary commands or deploy a payload on the target system. The module supports both direct command execution (Unix Command target) and staged payload delivery (Linux Dropper target). The code is written in Ruby and is structured as a standard Metasploit exploit module, including detection and exploitation routines. No hardcoded IPs or domains are present; the exploit is generic and targets any accessible vulnerable instance. The main fingerprintable endpoint is the '/functionRouter' HTTP path and the use of the 'spring.cloud.function.routing-expression' header.Disclosed Mar 29, 2022 · Framework: metasploit · ruby · networkWeaponizedCVE-2022-22963This repository provides a proof-of-concept (PoC) exploit for CVE-2022-22963, a critical remote code execution (RCE) vulnerability in VMware Spring Cloud Function. The repository contains three files: a YAML template (CVE-2022-22963.yaml) describing the exploit in a format suitable for automated scanners, a README.md with background and usage information, and poc.py, a Python script that automates exploitation. The Python script reads a list of target URLs from a file, appends the /functionRouter path, and sends a specially crafted POST request with a malicious 'spring.cloud.function.routing-expression' header. This header injects a Spring Expression Language (SpEL) payload that executes arbitrary system commands (default: 'whoami') on the target server. If the server responds with a 500 error and an expected error message, the URL is considered vulnerable and is logged to 'vulnerable.txt'. The exploit is operational and can be used to verify and exploit vulnerable Spring Cloud Function deployments accessible over the network.dinosn · Disclosed Mar 30, 2022 · python · yaml · networkOperationalCVE-2022-22963_Reverse-Shell-ExploitThis repository contains a Python exploit script (exploit.py) targeting CVE-2022-22963, a remote code execution vulnerability in VMware's Spring Cloud Function. The exploit works by sending a specially crafted HTTP POST request to the /functionRouter endpoint of a vulnerable server, injecting a command via the 'spring.cloud.function.routing-expression' header. The script first checks if the target is vulnerable by attempting to create a file (/tmp/pwned) on the server. If the server is found to be vulnerable, the script can then launch a reverse shell payload, which connects back to the attacker's machine on TCP port 4444. The attacker is prompted for their IP address, and the script sets up a netcat listener to receive the shell. The repository consists of three files: a LICENSE, a README.md with usage instructions, and the main exploit script. The exploit is operational and provides a working reverse shell if the target is vulnerable and accessible.J0ey17 · Disclosed Mar 18, 2023 · python · bash · networkOperationalSpring-Cloud-Function-Vulnerability-CVE-2022-22963-RCEThis repository contains a Python exploit for CVE-2022-22963, a remote code execution vulnerability in Spring Cloud Function (<=3.1.6 for 3.1.x and <=3.2.2 for 3.2.x). The exploit works by creating a bash reverse shell script (shell.sh) in the attacker's directory, starting a local HTTP server to serve this script, and then using the vulnerable /functionRouter endpoint on the target to download, set permissions, and execute the shell script on the target system. The exploit leverages the 'spring.cloud.function.routing-expression' header to inject commands. The attacker must have a listener (e.g., netcat) running to receive the reverse shell. The repository consists of two files: a README.md with usage instructions and a single Python script (spring-cloud-rce.py) implementing the exploit logic. The exploit is operational and provides a working reverse shell if the target is vulnerable and accessible.randallbanner · Disclosed Apr 17, 2023 · python · bash · networkOperationalCVE-2022-22963This repository contains a Python exploit tool for CVE-2022-22963, a remote code execution vulnerability in Spring Cloud Function. The exploit targets the '/functionRouter' HTTP endpoint, leveraging a SpEL (Spring Expression Language) injection via the 'spring.cloud.function.routing-expression' HTTP header. The tool provides three main capabilities: (1) checking if a target is vulnerable, (2) verifying exploitation via DNSLOG (by triggering a DNS request from the target), and (3) executing arbitrary commands, including spawning a reverse shell to a specified IP and port. The code is operational and allows the user to specify the target URL, exploitation mode (dnslog or shell), and relevant parameters via command-line arguments. The README provides clear usage instructions, affected product versions, and legal disclaimers. The exploit is not part of a framework and is implemented as a standalone Python script.xmqaq · Disclosed Dec 28, 2023 · python · networkOperationalCVE-2022-22963---Software-VulnerabilitiesThis repository is a small standalone proof-of-concept for CVE-2022-22963 in Spring Cloud Function. It contains two files: a README describing how to launch a vulnerable Docker container and validate impact, and a Python script (exploit.py) that performs the exploit. The exploit constructs a POST request to the /functionRouter endpoint and places a SpEL payload in the spring.cloud.function.routing-expression header. That payload invokes java.lang.Runtime.getRuntime().exec() with an attacker-supplied command, enabling blind remote code execution. The script uses requests, disables TLS warnings, sets generic HTTP headers, and prints the HTTP status and truncated response body, though the README correctly notes that command output is generally not returned. A notable safety restriction is built into the code: it refuses to target anything except localhost or 127.0.0.1, making it a local demo PoC rather than a broadly weaponized exploit. The repository’s purpose is to demonstrate blind RCE and verify impact through filesystem side effects such as creating files in /tmp inside the vulnerable container.teofoli-matteo · Disclosed Apr 28, 2026 · python · markdown · web · networkOperationalCVE-2022-22963This repository contains a single Python proof-of-concept exploit script, poc.py, for CVE-2022-22963 affecting Spring Cloud Function. The script is standalone and not part of a larger exploit framework. It uses argparse to require two inputs: a target base URL and an arbitrary command to execute on the remote host. It then appends the fixed path /functionRouter to the supplied target and sends a crafted HTTP POST request using the requests library. The exploit works by placing a malicious Spring Expression Language payload in the HTTP header spring.cloud.function.routing-expression: T(java.lang.Runtime).getRuntime().exec("<cmd>"). If the target is vulnerable, the server evaluates this expression and executes the supplied operating system command. The script prints the full target URL, the header payload, and a raw representation of the HTTP request before sending it. It does not implement response parsing, output retrieval, reliability checks, or post-exploitation logic; its purpose is direct command execution only. Repository structure is minimal: one Python file with all logic inline at top level. There are no helper modules, no persistence mechanisms, and no detection-only behavior. Because it accepts an operator-supplied command and delivers real RCE against a known vulnerable endpoint, it is a valid operational exploit PoC rather than a mere scanner.cyberager · Disclosed May 5, 2026 · python · web · networkOperationalvulhub-spring-cve-2022-22963This is a deliberately vulnerable training environment with a genuine, manually delivered CVE-2022-22963 demonstration, rather than a standalone automated exploit. The English and Chinese guides under app/ contain a POST /functionRouter request whose spring.cloud.function.routing-expression header invokes Java Runtime.exec to run touch /tmp/success. No reverse shell, callback infrastructure, persistence mechanism, or command-output retrieval is supplied, despite the CTF metadata describing a shell objective. The basic hardcoded command payload supports an OPERATIONAL classification, but execution was not verified during this static analysis. The 34-file repository contains one Java application, five shell checks, seven Terraform modules, one Ruby Vagrantfile, and one Dockerfile, counted as 15 code files; remaining files provide configuration, metadata, licensing, and documentation. The Java application defines uppercase and lowercase function beans. Its Maven configuration pins Spring Cloud Function 3.2.2, Spring Boot 2.6.5, and Java 8; the vulnerable routing behavior resides in dependencies rather than custom injection code. isoloom.yml is the lab specification. Generated .isoloom/ outputs support Docker Compose, Kubernetes, Docker-in-VM through Vagrant or Proxmox, and six cloud providers: AWS, Azure, DigitalOcean, GCP, Linode, and OCI. app/ vendors the upstream walkthrough and minimal Compose deployment, while base/ vendors the Maven application and image-build sources. Runtime deployments use the published vulnerable image, not a local source build. UPSTREAM.md identifies Vulhub commit 8fd63916f7a8711e2e01dda0d27237e4d6175d38 as provenance, not as the analyzed repository's own reference. The original repository URL, analyzed ref, and archive size were not supplied; empty strings and zero represent unavailable metadata. The checks validate application availability, uppercase conversion, and attempted internet isolation; they do not test SpEL injection or confirm command execution. Docker isolation removes the container's default route, while Kubernetes uses NetworkPolicies. External reverse-shell connectivity would therefore be constrained by the generated lab isolation. Cloud deployments restrict inbound SSH and port 8080 to an operator-provided CIDR. GitHub workflows validate generated infrastructure, start and check the lab, and register approved labs using secret-supplied backend endpoints. Isoloom is deployment tooling, not an exploit framework. Provisioning and CI cleanup commands are contextual maintenance operations, not evidence of a fake exploit. No hardcoded attacker-controlled callback or exfiltration endpoint was found.CyberCTF · Disclosed Oct 8, 2026 · java · shell · web · networkOperationalspring-spel-0day-pocThis repository provides a proof-of-concept (POC) exploit for a remote code execution (RCE) vulnerability in Spring Cloud Function (version 3.1.6). The exploit leverages the 'spring.cloud.function.routing-expression' HTTP header to inject a malicious Spring Expression Language (SpEL) payload, allowing arbitrary command execution on the target server. The README.md contains detailed build and exploitation instructions, including example HTTP POST requests to the '/functionRouter' endpoint. Two main POCs are described: one that opens the Calculator app on macOS, and another that triggers a DNS request to a controlled domain for out-of-band verification. The repository does not contain any code files, only documentation and instructions for reproducing the exploit. The main attack vector is network-based, targeting HTTP endpoints exposed by vulnerable Spring Cloud Function deployments.hktalent · Disclosed Mar 26, 2022 · networkPoCCVE-2022-22963This repository provides a Dockerfile to build and run a vulnerable instance of Spring Cloud Function version 3.1.6, which is susceptible to CVE-2022-22963 (Spring4Shell). The Dockerfile automates the setup by downloading the vulnerable version, building it, and exposing it on port 8080. The README.md includes instructions for running the container and demonstrates an exploit using a crafted HTTP POST request to the /functionRouter endpoint, leveraging the 'spring.cloud.function.routing-expression' header to achieve remote code execution (RCE). The exploit example creates a file (/tmp/test) on the target system, proving code execution. The repository is a proof-of-concept (POC) for demonstrating the vulnerability and does not include weaponized or automated exploitation scripts.darryk10 · Disclosed Mar 30, 2022 · Dockerfile · 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 CorporationBanking Branchapplication
Oracle CorporationBanking Cash Managementapplication
Oracle CorporationBanking Corporate Lending Process Managementapplication
Oracle CorporationBanking Credit Facilities Process Managementapplication
Oracle CorporationBanking Electronic Data Exchange For Corporatesapplication
Oracle CorporationBanking Liquidity Managementapplication
Oracle CorporationBanking Originationapplication
Oracle CorporationBanking Supply Chain Financeapplication
Oracle CorporationBanking Trade Finance Process Managementapplication
Oracle CorporationBanking Virtual Account Managementapplication
Oracle CorporationCommunications Cloud Native Core Automated Test Suiteapplication
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 Policyapplication
Oracle CorporationCommunications Cloud Native Core Security Edge Protection Proxyapplication
Oracle CorporationCommunications Cloud Native Core Unified Data Repositoryapplication
Oracle CorporationCommunications Communications Policy Managementapplication
Oracle CorporationFinancial Services Analytical Applications Infrastructureapplication
Oracle CorporationFinancial Services Behavior Detection Platformapplication
Oracle CorporationFinancial Services Enterprise Case Managementapplication
Oracle CorporationMysql Enterprise Monitorapplication
Oracle CorporationProduct Lifecycle Analyticsapplication
Oracle CorporationRetail Xstore Point Of Serviceapplication
Oracle CorporationSd-Wan Edgeapplication
VMwareSpring Cloud Functionapplication
FAQ

Frequently asked questions

Is CVE-2022-22963 exploited in the wild?
Yes. As of Oct 29, 2026, Mallory has reports of exploitation in the wild, and CISA added it to KEV on Aug 25, 2022.
Is there a public exploit for CVE-2022-22963?
Yes. Mallory tracks 10 public exploits or proofs of concept for CVE-2022-22963, the earliest disclosed Mar 26, 2022.
Is there a patch for CVE-2022-22963?
Upgrade Spring Cloud Function to version 3.1.7 or later in the 3.1.x line, or to version 3.2.3 or later in the 3.2.x line. For products that embed Spring Cloud Function, obtain and apply the vendor-provided fixed release rather than attempting to update an embedded dependency independently.
What products are affected by CVE-2022-22963?
VMware Spring Cloud Function, Oracle Corporation Banking Branch, Oracle Corporation Banking Cash Management, Oracle Corporation Banking Corporate Lending Process Management, Oracle Corporation Banking Credit Facilities Process Management, and at least 23 more.
How severe is CVE-2022-22963?
CVE-2022-22963 has a CVSS v3.1 score of 9.8 (Critical) and an EPSS score of 99.9% (100th percentile) as of Oct 29, 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 evidenceEvery report linking this CVE to a named adversary.
Associated malware1Malware 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 activity1Community discussion across Reddit, Mastodon, and other social sources.