# CVE-2022-22963: VMware Tanzu Spring Cloud Function Remote Code Execution

> Attackers can achieve remote code execution by injecting malicious SpEL expressions into routing functionality in Spring Cloud Function.

- **Severity:** Critical 9.8 (`CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`)
- **Exploited in the wild:** Yes, since 25 Aug 2022 (CISA KEV)
- **Login needed:** Not needed
- **Attackable:** Over the internet
- **Victim action needed:** Not needed
- **Fix available:** Yes
- **Published:** 1 Apr 2022
- **Updated:** 21 Oct 2025
- **Also known as:** GHSA-6v73-fgf6-w5j7, RHSA-2022:1291

## What is CVE-2022-22963?

CVE-2022-22963 is a critical code injection vulnerability in Oracle Communications Cloud Native Core Automated Test Suite, published on 1 Apr 2022. An attacker can exploit it over the internet without logging in, with no action from the victim.

### Official description

In Spring Cloud Function versions 3.1.6, 3.2.2 and older unsupported versions, when using routing functionality it is possible for a user to provide a specially crafted SpEL as a routing-expression that may result in remote code execution and access to local resources.

Weakness: CWE-917 (Improper Neutralization of Special Elements used in an Expression Language Statement), CWE-94 (Improper Control of Generation of Code)

## Which versions are affected by CVE-2022-22963?

4 open source packages ship an affected version, including org.springframework.cloud:spring-cloud-function-context. It affects 28 products.


| Package | Ecosystem | Affected | Fixed in |
| --- | --- | --- | --- |
| `org.springframework.cloud:spring-cloud-function-context` | Maven | All versions | 3.1.7 |
| `org.springframework.cloud:spring-cloud-function-context` | Maven | All versions | 3.1.7 |
| `org.springframework.cloud:spring-cloud-function-context` | Maven | From 3.2.0 | 3.2.3 |
| `org.springframework.cloud:spring-cloud-function-context` | Maven | From 3.2.0 | 3.2.3 |
| `openshift-serverless-clients` | Red Hat:serverless:1.0::el8 | All versions | 0:1.0.1-2.el8 |

Products: Oracle Banking Branch, Oracle Banking Cash Management, Oracle Banking Corporate Lending Process Management, Oracle Banking Credit Facilities Process Management, Oracle Banking Electronic Data Exchange for Corporates, Oracle Banking Liquidity Management, Oracle Banking Origination, Oracle Banking Supply Chain Finance, Oracle Banking Trade Finance Process Management, Oracle Banking Virtual Account Management, Oracle Communications Cloud Native Core Automated Test Suite, Oracle Communications Cloud Native Core Console, Oracle Communications Cloud Native Core Network Exposure Function, Oracle Communications Cloud Native Core Network Function Cloud Native Environment, Oracle Communications Cloud Native Core Network Repository Function, Oracle Communications Cloud Native Core Network Slice Selection Function, Oracle Communications Cloud Native Core Policy, Oracle Communications Cloud Native Core Security Edge Protection Proxy, Oracle Communications Cloud Native Core Unified Data Repository, Oracle Communications Communications Policy Management and 8 more.

## How do I fix CVE-2022-22963?

Upgrade org.springframework.cloud:spring-cloud-function-context to a fixed version for your release line: 3.1.7 or 3.2.3. US federal agencies must fix it by 15 Sep 2022.

## Is CVE-2022-22963 being exploited?

Yes. Attackers have exploited CVE-2022-22963 in the wild since at least 25 Aug 2022.

Public exploit code:

- spring-cloud / spring-cloud-function,spring.cloud.function.routing-expression,RCE,0day,0-day,POC,EXP,CVE-2022-22963 (github_poc): https://github.com/hktalent/spring-spel-0day-poc
- CVE-2022-22963 PoC  (github_poc): https://github.com/dinosn/CVE-2022-22963
- https://github.com/darryk10/CVE-2022-22963 (github_poc): https://github.com/darryk10/CVE-2022-22963
- CVE-2022-22963 is a vulnerability in the Spring Cloud Function Framework for Java that allows remote code execution. This python script will verify if the vulnerability exists, and if it does, will give you a reverse shell. (github_poc): https://github.com/J0ey17/CVE-2022-22963_Reverse-Shell-Exploit
- Spring Cloud Function Vulnerable Application / CVE-2022-22963 (github_poc): https://github.com/me2nuk/CVE-2022-22963
- CVE-2022-22963 Spring-Cloud-Function-SpEL_RCE_exploit (github_poc): https://github.com/RanDengShiFu/CVE-2022-22963

## Fix prompt for AI coding agents

```text
Check this codebase for CVE-2022-22963 and fix it if it is affected.

What it is: CVE-2022-22963 is a critical code injection vulnerability in Oracle Communications Cloud Native Core Automated Test Suite, published on 1 Apr 2022. An attacker can exploit it over the internet without logging in, with no action from the victim.
Exploitation: Yes. Attackers have exploited CVE-2022-22963 in the wild since at least 25 Aug 2022.

Affected packages and fixed versions:
- org.springframework.cloud:spring-cloud-function-context (Maven): affected all versions; fixed in 3.1.7
- org.springframework.cloud:spring-cloud-function-context (Maven): affected all versions; fixed in 3.1.7
- org.springframework.cloud:spring-cloud-function-context (Maven): affected from 3.2.0; fixed in 3.2.3
- org.springframework.cloud:spring-cloud-function-context (Maven): affected from 3.2.0; fixed in 3.2.3

Task:
1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.
2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.
3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.
4. Run the tests and summarise what changed and why.
5. If nothing in the project is affected, say so and change nothing.

Reference: https://insights.sbomify.com/CVE-2022-22963/ (Markdown: https://insights.sbomify.com/CVE-2022-22963/index.md)
```

## Sources

- CVE record: https://www.cve.org/CVERecord?id=CVE-2022-22963
- NVD: https://nvd.nist.gov/vuln/detail/CVE-2022-22963
- OSV: https://osv.dev/vulnerability/CVE-2022-22963

---
From sbomify Insights: https://insights.sbomify.com/CVE-2022-22963/
Summaries are generated and may contain mistakes; the official description above is the record.
