cve.bz

CVE-2022-22965 (Spring4Shell) Spring Framework JDK 9+ Remote Code Execution Vulnerability

9.8 criticalKEVExploitEPSS 99.6%Fix available

Known as Spring4Shell, SpringShell

Critical (9.8) in VMware Spring Framework. In CISA KEV since 2022-04-04. EPSS 99.6% estimated probability of exploitation activity in the next 30 days. Fixed in org.springframework:spring-beans 5.2.20.RELEASE, 5.3.18.

On this page
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.

Severity

CVSS 3.1

9.8 critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
EPSS
99.6% (unchanged from 99.6% a week ago; 99.6% 30 days ago) estimated probability of exploitation activity in the next 30 days; 100th percentile. Scored 2026-11-21. A forecast for this CVE across the internet, not for your own systems.
CISA KEV
listed 2022-04-04, due 2022-04-25
CISA's assessment (SSVC)
Exploitation: active · Automatable: yes · Technical impact: total, assessed 2025-01-29. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-94 Improper Control of Generation of Code (Code Injection)
OWASP Top 10
A05:2025 Injection
Published
Modified
NVD analysis
Analyzed
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2022-22965 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2022-22965?via=ask-ai-copy and https://cve.bz/cve/CVE-2022-22965?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2022-22965 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
vmware:spring_frameworkbefore 5.2.20
vmware:spring_frameworkfrom 5.3.0 before 5.3.18
cisco:cx_cloud_agentbefore 2.1.0
oracle:communications_cloud_native_core_automated_test_suite1.9.0
oracle:communications_cloud_native_core_automated_test_suite22.1.0
oracle:communications_cloud_native_core_console1.9.0
oracle:communications_cloud_native_core_console22.1.0
oracle:communications_cloud_native_core_network_exposure_function22.1.0
oracle:communications_cloud_native_core_network_function_cloud_native_environment1.10.0
oracle:communications_cloud_native_core_network_function_cloud_native_environment22.1.0
oracle:communications_cloud_native_core_network_repository_function1.15.0
oracle:communications_cloud_native_core_network_repository_function22.1.0
oracle:communications_cloud_native_core_network_slice_selection_function1.8.0
oracle:communications_cloud_native_core_network_slice_selection_function1.15.0
oracle:communications_cloud_native_core_network_slice_selection_function22.1.0
oracle:communications_cloud_native_core_policy1.15.0
oracle:communications_cloud_native_core_policy22.1.0
oracle:communications_cloud_native_core_security_edge_protection_proxy1.7.0
oracle:communications_cloud_native_core_security_edge_protection_proxy22.1.0
oracle:communications_cloud_native_core_unified_data_repository1.15.0
oracle:communications_cloud_native_core_unified_data_repository22.1.0
oracle:communications_policy_management12.6.0.0.0
oracle:financial_services_analytical_applications_infrastructure8.1.1
oracle:financial_services_analytical_applications_infrastructure8.1.2.0
oracle:financial_services_behavior_detection_platform8.1.1.0
oracle:financial_services_behavior_detection_platform8.1.1.1
oracle:financial_services_behavior_detection_platform8.1.2.0
oracle:financial_services_enterprise_case_management8.1.1.0
oracle:financial_services_enterprise_case_management8.1.1.1
oracle:financial_services_enterprise_case_management8.1.2.0
oracle:mysql_enterprise_monitorbefore 8.0.29
oracle:product_lifecycle_analytics3.6.1
oracle:retail_xstore_point_of_service20.0.1
oracle:retail_xstore_point_of_service21.0.0
oracle:sd-wan_edge9.0
oracle:sd-wan_edge9.1
siemens:operation_schedulerbefore 2.0.4
siemens:sipass_integrated2.80
siemens:sipass_integrated2.85
siemens:siveillance_identity1.5
siemens:siveillance_identity1.6
veritas:access_appliance7.4.3
veritas:access_appliance7.4.3.100
veritas:access_appliance7.4.3.200
veritas:flex_appliance1.3
veritas:flex_appliance2.0
veritas:flex_appliance2.0.1
veritas:flex_appliance2.0.2
veritas:flex_appliance2.1
veritas:netbackup_flex_scale_appliance2.1
veritas:netbackup_flex_scale_appliance3.0
veritas:netbackup_appliance4.0
veritas:netbackup_appliance4.0.0.1:maintenance_release1
veritas:netbackup_appliance4.0.0.1:maintenance_release2
veritas:netbackup_appliance4.0.0.1:maintenance_release3
veritas:netbackup_appliance4.1
veritas:netbackup_appliance4.1.0.1:maintenance_release1
veritas:netbackup_appliance4.1.0.1:maintenance_release2
veritas:netbackup_virtual_appliance4.0
veritas:netbackup_virtual_appliance4.0.0.1:maintenance_release1
veritas:netbackup_virtual_appliance4.0.0.1:maintenance_release2
veritas:netbackup_virtual_appliance4.0.0.1:maintenance_release3
veritas:netbackup_virtual_appliance4.1
veritas:netbackup_virtual_appliance4.1.0.1:maintenance_release1
veritas:netbackup_virtual_appliance4.1.0.1:maintenance_release2
siemens:simatic_speech_assistant_for_machinesbefore 1.2.1
siemens:sinec_network_management_systembefore 1.0.3
oracle:commerce_platform11.3.2
oracle:communications_cloud_native_core_binding_support_function22.1.3
oracle:communications_unified_inventory_management7.4.1
oracle:communications_unified_inventory_management7.4.2
oracle:communications_unified_inventory_management7.5.0
oracle:retail_bulk_data_integration16.0.3
oracle:retail_customer_management_and_segmentation_foundation17.0
oracle:retail_customer_management_and_segmentation_foundation18.0
oracle:retail_customer_management_and_segmentation_foundation19.0
oracle:retail_financial_integration14.1.3.2
oracle:retail_financial_integration15.0.3.1
oracle:retail_financial_integration16.0.3
oracle:retail_financial_integration19.0.1
oracle:retail_integration_bus14.1.3.2
oracle:retail_integration_bus15.0.3.1
oracle:retail_integration_bus16.0.3
oracle:retail_integration_bus19.0.1
oracle:retail_merchandising_system16.0.3
oracle:retail_merchandising_system19.0.1
oracle:weblogic_server12.2.1.3.0
oracle:weblogic_server12.2.1.4.0
oracle:weblogic_server14.1.1.0.0

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-36p3-wjmg-h94xMavenorg.springframework:spring-beans<5.2.20.RELEASE5.2.20.RELEASE
GHSA-36p3-wjmg-h94xMavenorg.springframework:spring-beans>=5.3.0 <5.3.185.3.18
GHSA-36p3-wjmg-h94xMavenorg.springframework:spring-webmvc<5.2.20.RELEASE5.2.20.RELEASE
GHSA-36p3-wjmg-h94xMavenorg.springframework:spring-webmvc>=5.3.0 <5.3.185.3.18
GHSA-36p3-wjmg-h94xMavenorg.springframework.boot:spring-boot-starter-web<2.5.122.5.12
GHSA-36p3-wjmg-h94xMavenorg.springframework.boot:spring-boot-starter-web>=2.6.0 <2.6.62.6.6
GHSA-36p3-wjmg-h94xMavenorg.springframework:spring-webflux<5.2.20.RELEASE5.2.20.RELEASE
GHSA-36p3-wjmg-h94xMavenorg.springframework:spring-webflux>=5.3.0 <5.3.185.3.18
GHSA-36p3-wjmg-h94xMavenorg.springframework.boot:spring-boot-starter-webflux<2.5.122.5.12
GHSA-36p3-wjmg-h94xMavenorg.springframework.boot:spring-boot-starter-webflux>=2.6.0 <2.6.62.6.6

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12, 13, 14libspring-javano fix listedDEBIAN-CVE-2022-22965
Ubuntu25.10libspring-java4.3.30-2ubuntu1UBUNTU-CVE-2022-22965
UbuntuPro:18.04:LTSlibspring-java4.3.22-1~18.04.1~esm1UBUNTU-CVE-2022-22965 USN-7165-1
UbuntuPro:20.04:LTSlibspring-java4.3.22-4ubuntu0.1~esm1UBUNTU-CVE-2022-22965 USN-7165-1
UbuntuPro:22.04:LTSlibspring-java4.3.30-1ubuntu0.1~esm1UBUNTU-CVE-2022-22965 USN-7165-1
UbuntuPro:24.04:LTSlibspring-java4.3.30-2ubuntu0.24.04.1~esm1UBUNTU-CVE-2022-22965 USN-7165-1

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu.

Red Hat

Red Hat rates this Important.

Red Hat's statement

The reporter of this flaw provided a proof-of-concept that relied on Apache Tomcat; it accessed the classloader and changed logging properties to place a web shell in Tomcat's root directory, and was able to call various commands subsequently.

There are several conditions required to achieve this exploit:

-Java 9 or newer version

-Apache Tomcat as the Servlet container

-packaged as WAR file

-spring-webmvc or spring-webflux dependency

-no protections in place against malicious data bindings (ex: WebDataBinder allow list)

There may be other exploit paths than this, possibly not utilizing Tomcat.

Red Hat's mitigation

For those who are not able to upgrade affected Spring classes to the fixed versions, there is a workaround customers can implement for their applications, via setting disallowed fields on the data binder, and denying various iterations of the string "class.*"

For full implementation details, see Spring's early announcement post in the "suggested workarounds" section: https://spring.io/blog/2022/03/31/spring-framework-rce-early-announcement#suggested-workarounds

ProductPackageStateAdvisory
CEQ 2.2.1-1 (CVE-2022-22965)Fixed 2022-04-11RHSA-2022:1306
Red Hat AMQ 7.8.6Fixed 2022-04-27RHSA-2022:1626
Red Hat AMQ 7.9.4spring-webmvcFixed 2022-04-27RHSA-2022:1627
Red Hat Fuse 7.10.2spring-webmvcFixed 2022-04-13RHSA-2022:1360
RHDM 7.12.1 asyncspring-webmvcFixed 2022-04-14RHSA-2022:1379
RHINT Camel-K 1.6.5spring-beansFixed 2022-04-12RHSA-2022:1333
RHPAM 7.12.1 asyncspring-webmvcFixed 2022-04-14RHSA-2022:1378
Red Hat Integration Camel Quarkus 1spring-beansAffected
Red Hat JBoss A-MQ 6spring-webmvcFix deferred
Red Hat JBoss Fuse 6spring-webmvcFix deferred
Red Hat Virtualization 4rhvm-dependenciesFix deferred

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2022-22965.

ICS advisories (CISA)

AdvisoryTitlePublishedSectorsAffectedFixed
ICSA-22-286-05Hitachi Energy Lumada Asset Performance Management Prognostic Model Executor Service2022-10-13EnergyLumada Asset Performance Manager (APM) - Lumada Asset Performance Manager (APM) online service (SaaS) version 6.3.220323.0 and prior, Lumada Asset Performance Manager (APM) - Lumada Asset Performance Manager (APM) versions 6.0.0.0 to 6.0.0.4, Lumada Asset Performance Manager (APM) - Lumada Asset Performance Manager (APM) versions 6.1.0.0 and 6.1.0.1 and 2 morenone listed

From CISA's ICS advisories (CSAF), provided under CISA's notification. Only the facts are shown; each advisory is on CISA's page. Credits.

Public exploits

GitHub PoC

Repositories on GitHub named after this CVE or listed for it by the PoC-in-GitHub index. For those marked Harbor Check: matches CVE, Flawharbor read the code and found it implements this CVE's exploitation technique: read, not run, and its dependencies only checked for warning signs, so a pointer and no guarantee. The rest are unverified: some hold a working proof of concept, some nothing useful, and some malware made to look like one. Read the code before you run any of it. How Harbor Check reads them, and what it found.

4 more

Detection rules

Ways to detect this CVE, not exploit code: the nuclei template that checks a system for it, and the Suricata and Snort rules that name it. A rule set may ship a rule turned off, so check yours by its sid.

  • Nuclei template Spring - Remote Code Execution
  • Emerging Threats Open ET EXPLOIT SpringShell/Spring4Shell RCE Attempt (CVE-2022-22965) sid 2049150
  • Emerging Threats Open ET EXPLOIT Possible SpringCore RCE/Spring4Shell Stage 1 Pattern Set Inbound (CVE-2022-22965) sid 2035674
  • Emerging Threats Open ET EXPLOIT Possible SpringCore RCE/Spring4Shell Stage 2 Suffix Set Inbound (CVE-2022-22965) sid 2035675
  • Emerging Threats Open ET EXPLOIT Possible SpringCore RCE/Spring4Shell Stage 3 Directory Set Inbound (CVE-2022-22965) sid 2035676
  • Emerging Threats Open ET EXPLOIT Possible SpringCore RCE/Spring4Shell Stage 4 Prefix Set Inbound (CVE-2022-22965) sid 2035677
  • Emerging Threats Open ET EXPLOIT Possible SpringCore RCE/Spring4Shell Inbound (CVE-2022-22965) sid 2035678

Attack patterns (CAPEC)

  • CAPEC-35 Leverage Executable Code in Non-Executable Files Likelihood: High · Severity: Very High
  • CAPEC-77 Manipulating User-Controlled Variables Likelihood: High · Severity: Very High
  • CAPEC-242 Code Injection Likelihood: High · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON