Patchfirst
CVE-2022-22963 KEVPublic exploit Critical · 9.8 EPSS 99.9%

VMware Tanzu Spring Cloud Function Remote Code Execution Vulnerability

VMware Tanzu · Spring Cloud

Summary

The flaw is in the routing functionality of VMware Tanzu's Spring Cloud Function, part of the Spring Cloud product, where routing expressions are evaluated without adequate neutralisation. An attacker who can supply a specially crafted SpEL routing expression can achieve remote code execution and access local resources, without authentication or user interaction, provided the application uses the routing feature.

Official description · NVD

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.

Breakdown
69.9 / 100
Exploited
Yes, in CISA KEV
Reports
0
Tactics
3/15

How an attack unfolds

Based on mappings. Select a step to see the evidence.
  1. How attackers get in

  2. What they do

  3. What can follow

First seen exploited 5 months after disclosure. Public exploit code (PoC-in-GitHub) was available 6 days before disclosure.

  1. Public exploit codePoC-in-GitHub6 days before
  2. Disclosedday 0
  3. First seen exploitedVulnCheck KEV evidence+5 mo
  4. Added to CISA KEVEU database agrees+5 mo

CISA KEV listing is when exploitation was confirmed, not necessarily the first attack.

techniques

3 , grouped by in kill-chain order 3

Initial AccessTA0001

Exploit Public-Facing Application T1190 Medium
MITRE CTID mapping of the KEV entry · how it is exploited

In certain versions of Spring Cloud Function, a vulnerability allows remote code execution through a specially crafted Spring Expression Language (SpEL) routing expression. This vulnerability, known as "Spring4Shell," can be exploited by sending crafted queries to a server running the Spring Core framework. Hackers are actively exploiting this flaw to execute malicious Java code on vulnerable servers. Initial exploit attempts were observed targeting a honeypot on port 9001. The exploit modifies logging configurations to create a webshell by writing code to a log file, which is then executed via a browser. Although there is scanning activity for vulnerable hosts, the exploitation is less widespread compared to Log4Shell, as it requires specific conditions beyond just using the framework.

ExecutionTA0002

JavaScript T1059.007 Medium
MITRE CTID mapping of the KEV entry · primary impact

PersistenceTA0003

Web Shell T1505.003 Medium
MITRE CTID mapping of the KEV entry · follow-on activity

Detection

0 rules for this CVE · 213 general rules for its techniques

Rules for this CVE

0 that reference CVE-2022-22963 directly.

CVE-specific rules are not available in this build. Search SigmaHQ ↗

General rules for this CVE’s techniques

These detect the technique in general, not this specific vulnerability.

Sigma rules © SigmaHQ, Detection Rule License 1.1; linked, not reproduced.

Am I affected? What do I upgrade to?

From GitHub Security Advisories and OSV

1 package in 1 ecosystem. Main package: org.springframework.cloud:spring-cloud-function-context.

Mavenorg.springframework.cloud:spring-cloud-function-contextGHSA-6v73-fgf6-w5j7

Upgrade to 3.2.3 or later

Set the version to 3.2.3 or later in your pom.xml or build.gradle.

The first fix for CVE-2022-22963. No other CVE tracked by Patchfirst affects this package.

Affected versions, by release line

If you runUpgrade to
3.2.0 up to 3.2.33.2.3
All versions before 3.1.73.1.7

“Up to” means the second version is the fix and is not affected.

Check your lockfile against all CVEs

What security researchers reported

Not named in any threat report yet

Also mentioned in 50 community threat pulses (AlienVault OTX)

Weaker evidence

Pulses are indicator collections that anyone can publish. A mention is not confirmation of exploitation.

References

7 links, grouped by NVD tag (6 duplicates merged)
↑ ↓ chooseEnter openEsc close