Patchfirst
CVE-2022-22965 KEVPublic exploit Critical · 9.8 EPSS 99.6%

Spring Framework JDK 9+ Remote Code Execution Vulnerability

VMware · Spring Framework

Summary

Spring Framework's data binding in Spring MVC and Spring WebFlux applications running on JDK 9+ contains a flaw that can lead to remote code execution. The flaw is in how these applications handle data binding, and it is specifically exposed when the application is deployed as a WAR on Tomcat, while Spring Boot executable jars are not affected by the specific exploit described. An attacker with network access and no authentication or user interaction could send crafted requests to a vulnerable WAR-deployed application to execute code on the server.

Official description · NVD

A Spring MVC or Spring WebFlux application running on JDK 9+ may be vulnerable to remote code execution (RCE) via data binding. The specific exploit requires the application to run on Tomcat as a WAR deployment. If the application is deployed as a Spring Boot executable jar, i.e. the default, it is not vulnerable to the exploit. However, the nature of the vulnerability is more general, and there may be other ways to exploit it.

Breakdown
86.0 / 100
Exploited
Yes, in CISA KEV
Reports
2
Tactics
2/15

How an attack unfolds

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

  2. What they do

First seen exploited 3 days after disclosure. Public exploit code (PoC-in-GitHub) was available 2 days before disclosure.

  1. Public exploit codePoC-in-GitHub2 days before
  2. Disclosedday 0
  3. First seen exploitedVulnCheck KEV evidenceAdded to CISA KEVEU database agrees+3 days

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

See the family tree

2 related vulnerabilities in the same code over 6 weeks. The latest fix listed for spring-webmvc is 6.0.14.

Same bug familyLinked by evidence that a fix failed or the same code was patched again. Oldest first.

  1. This CVECVE-2022-22965Spring Framework JDK 9+ Remote Code Execution1 Apr 2022KEV
  2. relatedHigh

    Why these are linked:

    • Fixed one release later5.2.20.RELEASE → 5.2.22.RELEASE (org.springframework:spring-beans)
    • Same code patched: CachedIntrospectionResults.java (machine-matched)Functions: CachedIntrospectionResults, introspectInterfacescommit 002546bcommit 50177b1commit 83186b6
    CVE-2022-22970In spring framework versions prior to 5.3.20+ , 5.2.22+ and old…12 May 2022

Fixes in spring-webmvcMaven package, by fixed version. Earlier and later fixes in the same package, not necessarily the same bug.

  1. 4.3.5CVE-2016-987829 Dec 2016
  2. 5.2.3.RELEASECVE-2020-539816 Jan 2020
  3. 5.2.3CVE-2020-539717 Jan 2020
  4. 5.3.18CVE-2022-229651 Apr 2022KEV
  5. 5.3.42CVE-2024-3882818 Nov 2024
  6. 6.0.7CVE-2023-2086027 Mar 2023
  7. 6.0.14CVE-2023-3405328 Nov 2023Latest listed

techniques

2 , grouped by in kill-chain order 2

Initial AccessTA0001

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

This remote code execution (RCE) vulnerability affects Spring MVC or Spring WebFlux applications running on JDK 9+ when deployed on Tomcat as a WAR file. This vulnerability can be exploited by a remote attacker via data binding, allowing malicious actors to execute arbitrary code. Specifically, it has been used to deploy and execute the Mirai botnet malware. The exploit involves downloading a Mirai sample to the "/tmp" directory and changing its permissions to make it executable using "chmod." The malware is then executed, enabling further malicious activities. The vulnerability does not affect applications deployed as Spring Boot executable jars. Observations of this exploit began in early April 2022, with malware variants available for different CPU architectures.

ExecutionTA0002

Command and Scripting Interpreter T1059 Medium
MITRE CTID mapping of the KEV entry · primary impact

Detection

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

Rules for this CVE

0 that reference CVE-2022-22965 directly.

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

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

5 packages in 1 ecosystem. No single main package: each of these ships the affected code.

  • Mavenorg.springframework:spring-beans
    Affected: 5.3.0 up to 5.3.18; All versions before 5.2.20.RELEASEUpgrade to 5.3.18 or later (older lines: 5.2.20.RELEASE)
  • Mavenorg.springframework:spring-webmvc
    Affected: 5.3.0 up to 5.3.18; All versions before 5.2.20.RELEASEUpgrade to 5.3.18 or later (older lines: 5.2.20.RELEASE)
  • Mavenorg.springframework.boot:spring-boot-starter-web
    Affected: 2.6.0 up to 2.6.6; All versions before 2.5.12Upgrade to 2.6.6 or later (older lines: 2.5.12)
  • Mavenorg.springframework:spring-webflux
    Affected: 5.3.0 up to 5.3.18; All versions before 5.2.20.RELEASEUpgrade to 5.3.18 or later (older lines: 5.2.20.RELEASE)
  • Mavenorg.springframework.boot:spring-boot-starter-webflux
    Affected: 2.6.0 up to 2.6.6; All versions before 2.5.12Upgrade to 2.6.6 or later (older lines: 2.5.12)

Check your lockfile against all CVEs

What security researchers reported

Named in 2 threat reports
2 reportsMicrosoftTrustwave

Reports are matched by finding the exact id CVE-2022-22965 in their text; nobody has reviewed the match. One passage is shown per report, at most 320 characters, linked to the original.

MicrosoftUndated

Microsoft research uncovers new Zerobot capabilities

…threat activity group detected An active ‘PrivateLoader’ malware process was detected while executing ‘Morila’ malware was prevented ‘Multiverze’ malware was detected Microsoft Defender for Endpoint also has detections for the following vulnerabilities exploited by Zerobot: CVE-2022-22965…

2 passages name itOriginal (opens in a new tab) ↗

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

10 links, grouped by NVD tag (8 duplicates merged)
↑ ↓ chooseEnter openEsc close