CVE-2022-22965: Spring Framework JDK 9+ Remote Code Execution Vulnerability
Advisory generated from the CVE record, CISA, Exploit Observer and VEDAS: what it is, whether it is exploited, who is affected, and how to fix and detect it.
Generated by VEDAS. Scores as of 2026-11-30 07:36 UTC. Rebuilt every few hours from cve-scores, CISA KEV and vedas-signatures. How this works and its limits.
What it is
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.
Description quoted from the CVE record (assigned by vmware, published 2022-04-01).
Weakness: CWE-94: Improper Control of Generation of Code (‘Code Injection’)
How it can be exploited
Exploitable over the network with low attack complexity needing no privileges and no user interaction. Impact: confidentiality high, integrity high, availability high. CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
CISA assessment (SSVC): CISA assesses exploitation as active. Automatable: yes. Technical impact: total.
- On CISA KEV since
- 2022-04-04
- US federal deadline
- 2022-04-25
- Ransomware use
- Not known
Public exploit evidence (Exploit Observer)
Exploit Observer found 3 Nuclei templates, 100 code repositories and 9 research write-ups naming this CVE.
Code repositories that name a CVE are often scanners, copies or fakes, and some are malware. Read the code before running anything.
See all 140 references on Exploit Observer
Live scores
- EPSS
- 0.892
very likely to be attacked soon - VEDAS
- 0.984
strong exploit evidence - On CISA KEV
- Yes, since 2022-04-04
Thin horizontal line: the “likely exploited” threshold (EPSS 0.10, VEDAS 0.5). Shaded “no data” areas are periods when cve-scores did not publish.
Who is affected
| Product | Affected | Not affected |
|---|---|---|
| Spring Framework | version Spring Framework versions 5.3.X prior to 5.3.18+, 5.2.x prior to 5.2.20+ and all old and unsupported versions | Not stated |
Version ranges exactly as the CVE record states them. “Before X” means X is the first fixed version.
How to fix it
CISA required action: Apply updates per vendor instructions.
Vendor guidance:
- 20220401 Vulnerability in Spring Framework Affecting Cisco Products: March 2022 (vendor-advisory, x_refsource_CISCO)
How to detect it
Nuclei template (active check)
Spring Framework - Code Injection
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.
Name and description quoted from the template, written by VEDAS.
The template sends 3 requests (POST {{BaseURL}}, GET /?class.module.classLoader.resources.context.configFile={{interact_..., GET /); it confirms through an out-of-band callback (interactsh), so the scanner must be able to receive it; it decides using word matchers. Severity in the template: critical. Marked as not yet verified against a live vulnerable target.
Run it against a host you own or are authorised to test:
nuclei -u https://your-host -t CVE-2022-22965.yamlShow the template (47 lines)
id: CVE-2022-22965
info:
name: "Spring Framework - Code Injection"
author: vedas-arpsyndicate
severity: critical
description: |
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.
reference:
- https://www.exploit.observer/?keyword=CVE-2022-22965&match=exact
- https://subdomain.center/?engine=ammonites&keyword=spring&match=exact
classification:
cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
cvss-score: 9.8
cve-id: CVE-2022-22965
cwe-id: CWE-94
metadata:
verified: false
tags: cve2022,cve,rce,spring,injection,oast,intrusive,kev,vmware,vkev,vuln
http:
- raw:
- |
POST {{BaseURL}} HTTP/1.1
Content-Type: application/x-www-form-urlencoded
class.module.classLoader.resources.context.configFile={{interact_protocol}}://{{interactsh-url}}&class.module.classLoader.resources.context.configFile.content.aaa=xxx
- |
GET /?class.module.classLoader.resources.context.configFile={{interact_protocol}}://{{interactsh-url}}&class.module.classLoader.resources.context.configFile.content.aaa=xxx HTTP/1.1
payloads:
interact_protocol:
- "http"
- https
matchers-condition: and
matchers:
- type: word
part: interactsh_protocol # Confirms the HTTP Interaction
words:
- "http"
- type: word
part: interactsh_request
words:
- "User-Agent: Java"
case-insensitive: true
Suricata rules (network detection)
1 rule that alert on traffic matching this exploit: VEDAS CVE-2022-22965 Spring Framework - Code Injection. Add them to your Suricata rule set and reload.
Show the rules
alert http $EXTERNAL_NET any -> $HTTP_SERVERS $HTTP_PORTS (msg:"VEDAS CVE-2022-22965 Spring Framework - Code Injection"; flow:established,to_server; http.request_body; content:"class.module.classLoader.resources.context.configFile=://&cl"; nocase; fast_pattern; classtype:web-application-attack; reference:cve,CVE-2022-22965; reference:url,https://www.exploit.observer/?keyword=CVE-2022-22965&match=exact; reference:url,https://subdomain.center/?engine=ammonites&keyword=spring&match=exact; sid:1011340; rev:1;)
CVE-2022-22965.rules on GitHub
Advisories on this CVE
References
Vendor advisories and patches
- 20220401 Vulnerability in Spring Framework Affecting Cisco Products: March 2022 (vendor-advisory, x_refsource_CISCO)
Government sources
- https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2022-22965 (government-resource)
Other references
- https://tanzu.vmware.com/security/cve-2022-22965 (x_refsource_MISC)
- https://www.oracle.com/security-alerts/cpuapr2022.html (x_refsource_MISC)
- https://psirt.global.sonicwall.com/vuln-detail/SNWLID-2022-0005 (x_refsource_CONFIRM)
- http://packetstormsecurity.com/files/166713/Spring4Shell-Code-Execution.html (x_refsource_MISC)
- https://cert-portal.siemens.com/productcert/pdf/ssa-254054.pdf (x_refsource_CONFIRM)
- https://www.oracle.com/security-alerts/cpujul2022.html (x_refsource_MISC)
- http://packetstormsecurity.com/files/167011/Spring4Shell-Spring-Framework-Class-Property-Remote-Code-Execution.html (x_refsource_MISC)
- https://www.kb.cert.org/vuls/id/970766
Other databases
Where this comes from
This advisory is generated automatically by VEDAS from: CVE.org record, CISA KEV, cve-scores (EPSS and VEDAS), Exploit Observer, vedas-signatures. Text in quotes is reproduced from the source; everything else is a fixed template filled with source fields. Nothing here is written by a language model. Check the vendor advisory before acting, and read how VEDAS and Exploit Observer work, and their limits.
Supporting partners