CVE-2022-22963
Spring Cloud Function Code Injection with a specially crafted SpEL as a routing expression
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 Maven artifacts (1)
| Artifact | Affected versions | Fixed in |
|---|---|---|
| org.springframework.cloud » spring-cloud-function-context | < 3.1.7>= 3.2.0, < 3.2.3 | 3.1.7, 3.2.3 |
Blast radius
32% of the dependent artifacts (162) still pull an affected version in their latest release.
| Depth | Dependent versions |
|---|---|
| Direct | 614 |
| 2 hops | 2,043 |
| 3 hops | 3,224 |
| 4 hops | 516 |
| 5 hops | 336 |
| 6 hops | 18 |
Most used dependents
- org.springframework.cloud » spring-cloud-stream427 usages
- org.springframework.cloud » spring-cloud-starter-stream-kafka280 usages
- org.springframework.cloud » spring-cloud-starter-stream-rabbit236 usages
- org.springframework.cloud » spring-cloud-bus232 usages
- org.springframework.cloud » spring-cloud-stream-binder-rabbit181 usages
- org.springframework.cloud » spring-cloud-stream-binder-kafka174 usages
- org.springframework.cloud » spring-cloud-stream-test-support134 usages
- city.smartb.f2 » f2-spring-boot-starter-function96 usages
- org.springframework.cloud » spring-cloud-starter-bus-amqp81 usages
- org.springframework.cloud » spring-cloud-stream-binder-test44 usages
- org.springframework.cloud » spring-cloud-starter-bus-kafka41 usages
- city.smartb.i2 » i2-commons-api33 usages
- org.springframework.cloud » spring-cloud-function-web29 usages
- org.springframework.cloud » spring-cloud-starter-consul-all26 usages
- com.alibaba.cloud » spring-cloud-starter-stream-rocketmq24 usages
Computed from the dependency graph of build 20261124.0621 (compile and runtime scopes, nearest version wins). Exclusions and dependency management in consuming projects are not applied, so dependents are potentially affected. When several artifacts are affected, a dependent version that pulls more than one of them is counted once per artifact.
References
- Advisoryhttps://nvd.nist.gov/vuln/detail/CVE-2022-22963
- Packagehttps://github.com/spring-cloud/spring-cloud-function
- Webhttps://psirt.global.sonicwall.com/vuln-detail/SNWLID-2022-0005
- Webhttps://tanzu.vmware.com/security/cve-2022-22963
- Webhttps://tools.cisco.com/security/center/content/CiscoSecurityAdvisory/cisco-sa-java-spring-scf-rce-DQrHhJxH
- Webhttps://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2022-22963
- Webhttps://www.oracle.com/security-alerts/cpuapr2022.html
- Webhttps://www.oracle.com/security-alerts/cpujul2022.html
- Webhttp://packetstormsecurity.com/files/173430/Spring-Cloud-3.2.2-Remote-Command-Execution.html
