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.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| — | Spring Cloud Function | Spring Cloud Function versions 3.1.6, 3.2.2 and all old and unsupported versions | — |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Red Hat
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Red Hat Serverless 1 | openshift-serverless-clients | 1.0.1-2.el8 | RHSA-2022:1291 |
Public exploits
Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.
Metasploit 1 module
-
Spring Cloud Function SpEL Injection
exploit/multi/http/spring_cloud_function_spel_injection
Exploit-DB 1
- Spring Cloud 3.2.2 - Remote Command Execution (RCE) EDB-51577 · webapps · Jul 11, 2023
GitHub 30 repositories · most starred shown
-
hktalent/spring-spel-0day-poc ★ 355 · Mar 26, 2022
spring-cloud / spring-cloud-function,spring.cloud.function.routing-expression,RCE,0day,0-day,POC,EXP,CVE-2022-22963
-
dinosn/CVE-2022-22963 ★ 118 · Mar 30, 2022
CVE-2022-22963 PoC
-
darryk10/CVE-2022-22963 ★ 34 · Mar 30, 2022
-
J0ey17/CVE-2022-22963_Reverse-Shell-Exploit ★ 24 · Mar 18, 2023
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 g…
-
me2nuk/CVE-2022-22963 ★ 19 · Mar 31, 2022
Spring Cloud Function Vulnerable Application / CVE-2022-22963
-
RanDengShiFu/CVE-2022-22963 ★ 15 · Mar 30, 2022
CVE-2022-22963 Spring-Cloud-Function-SpEL_RCE_exploit
-
kh4sh3i/Spring-CVE ★ 14 · Mar 31, 2022
This includes CVE-2022-22963, a Spring SpEL / Expression Resource Access Vulnerability, as well as CVE-2022-22965, the spring-webmvc/spring-webflux RCE termed "SpringShell".
-
Kirill89/CVE-2022-22963-PoC ★ 9 · Mar 30, 2022
-
charis3306/CVE-2022-22963 ★ 8 · Mar 7, 2023
spring cloud function 一键利用工具! by charis 博客https://charis3306.top/
-
k3rwin/spring-cloud-function-rce ★ 8 · Apr 14, 2022
Spring Cloud Function SPEL表达式注入漏洞(CVE-2022-22963)
Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.
Automated scanner template
A ready-made Nuclei template detects this vulnerability automatically. Vulnerabilities with public scanner templates are typically probed across the internet soon after the template appears — exposed systems should be patched first.
- Spring Cloud - Remote Code Execution http/cves/2022/CVE-2022-22963.yaml
Source: projectdiscovery/nuclei-templates (MIT) — updated daily. Only links are listed.
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| Maven | org.springframework.cloud:spring-cloud-function-context | >= 3.2.0, < 3.2.3 | 3.2.3 | GHSA-6v73-fgf6-w5j7 |
| Maven | org.springframework.cloud:spring-cloud-function-context | < 3.1.7 | 3.1.7 | GHSA-6v73-fgf6-w5j7 |
Advisories 2
- RHSA-2022:1291 Red Hat Security Advisory: Release of OpenShift Serverless Client kn 1.21.1 Red Hat Security Advisories (RHSA) · Mar 18, 2026
- WID-SEC-2022-1375 JFrog Artifactory: Mehrere Schwachstellen BSI CERT-Bund (WID) · Oct 12, 2025
References
- https://tanzu.vmware.com/security/cve-2022-22963
- 20220401 Vulnerability in Spring Cloud Function Framework Affecting Cisco Products: March 2022 vendor-advisory
- https://www.oracle.com/security-alerts/cpuapr2022.html
- https://psirt.global.sonicwall.com/vuln-detail/SNWLID-2022-0005
- https://www.oracle.com/security-alerts/cpujul2022.html
- http://packetstormsecurity.com/files/173430/Spring-Cloud-3.2.2-Remote-Command-Execution.html