{"answers":{"affected":"20 open source packages ship an affected version, including org.springframework.boot:spring-boot-starter-web, org.springframework.boot:spring-boot-starter-webflux and org.springframework:spring-beans. It affects 38 products.","exploited":"Yes. Attackers have exploited CVE-2022-22965 in the wild since at least 4 Apr 2022.","fix":"Upgrade org.springframework.boot:spring-boot-starter-web to a fixed version for your release line: 2.5.12 or 2.6.6. US federal agencies must fix it by 25 Apr 2022.","what":"CVE-2022-22965 (Spring4Shell) is a critical code injection vulnerability in Oracle Communications Cloud Native Core Automated Test Suite, published on 1 Apr 2022. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2022-22965 (Spring4Shell) and fix it if it is affected.\n\nWhat it is: CVE-2022-22965 (Spring4Shell) is a critical code injection vulnerability in Oracle Communications Cloud Native Core Automated Test Suite, published on 1 Apr 2022. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: Yes. Attackers have exploited CVE-2022-22965 in the wild since at least 4 Apr 2022.\n\nAffected packages and fixed versions:\n- org.springframework.boot:spring-boot-starter-web (Maven): affected all versions; fixed in 2.5.12\n- org.springframework.boot:spring-boot-starter-web (Maven): affected all versions; fixed in 2.5.12\n- org.springframework.boot:spring-boot-starter-web (Maven): affected from 2.6.0; fixed in 2.6.6\n- org.springframework.boot:spring-boot-starter-web (Maven): affected from 2.6.0; fixed in 2.6.6\n- org.springframework.boot:spring-boot-starter-webflux (Maven): affected all versions; fixed in 2.5.12\n- org.springframework.boot:spring-boot-starter-webflux (Maven): affected all versions; fixed in 2.5.12\n- org.springframework.boot:spring-boot-starter-webflux (Maven): affected from 2.6.0; fixed in 2.6.6\n- org.springframework.boot:spring-boot-starter-webflux (Maven): affected from 2.6.0; fixed in 2.6.6\n- org.springframework:spring-beans (Maven): affected all versions; fixed in 5.2.20.RELEASE\n- org.springframework:spring-beans (Maven): affected all versions; fixed in 5.2.20.RELEASE\n- org.springframework:spring-beans (Maven): affected from 5.3.0; fixed in 5.3.18\n- org.springframework:spring-beans (Maven): affected from 5.3.0; fixed in 5.3.18\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2022-22965/ (Markdown: https://insights.sbomify.com/CVE-2022-22965/index.md)","id":"CVE-2022-22965","markdown":"https://insights.sbomify.com/CVE-2022-22965/index.md","name":"CVE-2022-22965 (Spring4Shell)","record":{"aliases":["CLSA-2025-1758845168","CLSA-2026-1781571260","DEBIAN-CVE-2022-22965","GHSA-36p3-wjmg-h94x","ROOT-APP-MAVEN-CVE-2022-22965","UBUNTU-CVE-2022-22965","USN-7165-1"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["code_execution"],"network_reachable":"yes","non_default_config":true,"product_category":"Spring Framework","requires_auth":"none","summary":"Attackers can achieve remote code execution in Spring MVC or WebFlux applications deployed as WARs on Tomcat with JDK 9+ via unsafe data binding.","user_interaction":"not_required","vuln_class":"code_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"vmware","cpe":[{"product":"cx_cloud_agent","vendor":"cisco"},{"product":"commerce_platform","vendor":"oracle"},{"product":"communications_cloud_native_core_automated_test_suite","vendor":"oracle"},{"product":"communications_cloud_native_core_binding_support_function","vendor":"oracle"},{"product":"communications_cloud_native_core_console","vendor":"oracle"},{"product":"communications_cloud_native_core_network_exposure_function","vendor":"oracle"},{"product":"communications_cloud_native_core_network_function_cloud_native_environment","vendor":"oracle"},{"product":"communications_cloud_native_core_network_repository_function","vendor":"oracle"},{"product":"communications_cloud_native_core_network_slice_selection_function","vendor":"oracle"},{"product":"communications_cloud_native_core_policy","vendor":"oracle"},{"product":"communications_cloud_native_core_security_edge_protection_proxy","vendor":"oracle"},{"product":"communications_cloud_native_core_unified_data_repository","vendor":"oracle"},{"product":"communications_policy_management","vendor":"oracle"},{"product":"communications_unified_inventory_management","vendor":"oracle"},{"product":"financial_services_analytical_applications_infrastructure","vendor":"oracle"},{"product":"financial_services_behavior_detection_platform","vendor":"oracle"},{"product":"financial_services_enterprise_case_management","vendor":"oracle"},{"product":"mysql_enterprise_monitor","vendor":"oracle"},{"product":"product_lifecycle_analytics","vendor":"oracle"},{"product":"retail_bulk_data_integration","vendor":"oracle"},{"product":"retail_customer_management_and_segmentation_foundation","vendor":"oracle"},{"product":"retail_financial_integration","vendor":"oracle"},{"product":"retail_integration_bus","vendor":"oracle"},{"product":"retail_merchandising_system","vendor":"oracle"},{"product":"retail_xstore_point_of_service","vendor":"oracle"},{"product":"sd-wan_edge","vendor":"oracle"},{"product":"weblogic_server","vendor":"oracle"},{"product":"operation_scheduler","vendor":"siemens"},{"product":"simatic_speech_assistant_for_machines","vendor":"siemens"},{"product":"sinec_network_management_system","vendor":"siemens"},{"product":"sipass_integrated","vendor":"siemens"},{"product":"siveillance_identity","vendor":"siemens"},{"product":"access_appliance","vendor":"veritas"},{"product":"flex_appliance","vendor":"veritas"},{"product":"netbackup_appliance","vendor":"veritas"},{"product":"netbackup_flex_scale_appliance","vendor":"veritas"},{"product":"netbackup_virtual_appliance","vendor":"veritas"},{"product":"spring_framework","vendor":"vmware"}],"cvss":{"score":9.8,"severity":"critical","source":"cisa-adp","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","version":"3.1"},"cwes":[{"id":"CWE-94","name":"Improper Control of Generation of Code"}],"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. 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.","ecosystems":["Maven"],"exploits":{"exploitdb":0,"first_seen":"2022-03-30","github_poc":100,"max_poc_stars":379,"metasploit":1,"nuclei":1,"refs":[{"date":"2022-03-30T07:54:45Z","kind":"github_poc","ref":"https://github.com/BobTheShoplifter/Spring4Shell-POC","stars":379,"title":"Spring4Shell Proof Of Concept/And vulnerable application CVE-2022-22965"},{"date":"2022-03-31T00:24:28Z","kind":"github_poc","ref":"https://github.com/reznok/Spring4Shell-POC","stars":326,"title":"Dockerized Spring4Shell (CVE-2022-22965) PoC application and exploit"},{"date":"2022-06-19T13:16:55Z","kind":"github_poc","ref":"https://github.com/tpt11fb/SpringVulScan","stars":153,"title":"burpsuite 的Spring漏洞扫描插件。SpringVulScan：支持检测：路由泄露|CVE-2022-22965|CVE-2022-22963|CVE-2022-22947|CVE-2016-4977"},{"date":"2022-03-30T17:05:46Z","kind":"github_poc","ref":"https://github.com/TheGejr/SpringShell","stars":130,"title":"Spring4Shell - Spring Core RCE - CVE-2022-22965"},{"date":"2022-12-28T04:50:16Z","kind":"github_poc","ref":"https://github.com/zangcc/CVE-2022-22965-rexbb","stars":102,"title":"CVE-2022-22965\\Spring-Core-RCE核弹级别漏洞的rce图形化GUI一键利用工具，基于JavaFx开发，图形化操作更简单，提高效率。"},{"date":"2022-04-07T00:08:16Z","kind":"github_poc","ref":"https://github.com/alt3kx/CVE-2022-22965","stars":100,"title":"Spring Framework RCE (CVE-2022-22965) Nmap (NSE) Checker (Non-Intrusive)"},{"date":"2022-04-01T04:51:44Z","kind":"github_poc","ref":"https://github.com/SecNN/SpringFramework_CVE-2022-22965_RCE","stars":72,"title":"SpringFramework 远程代码执行漏洞CVE-2022-22965"},{"date":"2022-04-07T03:50:14Z","kind":"github_poc","ref":"https://github.com/4nth0ny1130/spring4shell_behinder","stars":62,"title":"CVE-2022-22965写入冰蝎webshell脚本"}],"tier":"exploited"},"has_fix":true,"headline":"Spring Framework JDK 9+ Remote Code Execution","id":"CVE-2022-22965","indexable":true,"kev":{"dateAdded":"2022-04-04","dueDate":"2022-04-25","knownRansomwareCampaignUse":"Unknown","product":"Spring Framework","requiredAction":"Apply updates per vendor instructions.","vendorProject":"VMware","vulnerabilityName":"Spring Framework JDK 9+ Remote Code Execution Vulnerability"},"kind":"cve","links":{"ecosystem":"Maven","product":"oracle:communications_cloud_native_core_automated_test_suite","products":["oracle:communications_cloud_native_core_automated_test_suite","oracle:communications_cloud_native_core_binding_support_function","oracle:communications_cloud_native_core_policy","oracle:communications_policy_management","oracle:communications_unified_inventory_management","oracle:financial_services_analytical_applications_infrastructure","oracle:mysql_enterprise_monitor","oracle:retail_customer_management_and_segmentation_foundation","oracle:retail_merchandising_system","oracle:retail_xstore_point_of_service","oracle:weblogic_server","vmware:spring_framework"],"type":"code_injection","year":"2022"},"n_packages":20,"n_references":8,"next":{"headline":"Code injection in VMware Cloud Director","id":"CVE-2022-22966"},"packages":[{"ecosystem":"Maven","fixed":["2.5.12"],"introduced":["0"],"last_affected":[],"package":"org.springframework.boot:spring-boot-starter-web","purl":null,"source":"GHSA-36p3-wjmg-h94x"},{"ecosystem":"Maven","fixed":["2.5.12"],"introduced":["0"],"last_affected":[],"package":"org.springframework.boot:spring-boot-starter-web","purl":"pkg:maven/org.springframework.boot/spring-boot-starter-web","source":"GHSA-36p3-wjmg-h94x"},{"ecosystem":"Maven","fixed":["2.6.6"],"introduced":["2.6.0"],"last_affected":[],"package":"org.springframework.boot:spring-boot-starter-web","purl":null,"source":"GHSA-36p3-wjmg-h94x"},{"ecosystem":"Maven","fixed":["2.6.6"],"introduced":["2.6.0"],"last_affected":[],"package":"org.springframework.boot:spring-boot-starter-web","purl":"pkg:maven/org.springframework.boot/spring-boot-starter-web","source":"GHSA-36p3-wjmg-h94x"},{"ecosystem":"Maven","fixed":["2.5.12"],"introduced":["0"],"last_affected":[],"package":"org.springframework.boot:spring-boot-starter-webflux","purl":null,"source":"GHSA-36p3-wjmg-h94x"},{"ecosystem":"Maven","fixed":["2.5.12"],"introduced":["0"],"last_affected":[],"package":"org.springframework.boot:spring-boot-starter-webflux","purl":"pkg:maven/org.springframework.boot/spring-boot-starter-webflux","source":"GHSA-36p3-wjmg-h94x"},{"ecosystem":"Maven","fixed":["2.6.6"],"introduced":["2.6.0"],"last_affected":[],"package":"org.springframework.boot:spring-boot-starter-webflux","purl":null,"source":"GHSA-36p3-wjmg-h94x"},{"ecosystem":"Maven","fixed":["2.6.6"],"introduced":["2.6.0"],"last_affected":[],"package":"org.springframework.boot:spring-boot-starter-webflux","purl":"pkg:maven/org.springframework.boot/spring-boot-starter-webflux","source":"GHSA-36p3-wjmg-h94x"},{"ecosystem":"Maven","fixed":["5.2.20.RELEASE"],"introduced":["0"],"last_affected":[],"package":"org.springframework:spring-beans","purl":null,"source":"GHSA-36p3-wjmg-h94x"},{"ecosystem":"Maven","fixed":["5.2.20.RELEASE"],"introduced":["0"],"last_affected":[],"package":"org.springframework:spring-beans","purl":"pkg:maven/org.springframework/spring-beans","source":"GHSA-36p3-wjmg-h94x"},{"ecosystem":"Maven","fixed":["5.3.18"],"introduced":["5.3.0"],"last_affected":[],"package":"org.springframework:spring-beans","purl":null,"source":"GHSA-36p3-wjmg-h94x"},{"ecosystem":"Maven","fixed":["5.3.18"],"introduced":["5.3.0"],"last_affected":[],"package":"org.springframework:spring-beans","purl":"pkg:maven/org.springframework/spring-beans","source":"GHSA-36p3-wjmg-h94x"},{"ecosystem":"Maven","fixed":["5.2.20.RELEASE"],"introduced":["0"],"last_affected":[],"package":"org.springframework:spring-webflux","purl":null,"source":"GHSA-36p3-wjmg-h94x"},{"ecosystem":"Maven","fixed":["5.2.20.RELEASE"],"introduced":["0"],"last_affected":[],"package":"org.springframework:spring-webflux","purl":"pkg:maven/org.springframework/spring-webflux","source":"GHSA-36p3-wjmg-h94x"},{"ecosystem":"Maven","fixed":["5.3.18"],"introduced":["5.3.0"],"last_affected":[],"package":"org.springframework:spring-webflux","purl":null,"source":"GHSA-36p3-wjmg-h94x"},{"ecosystem":"Maven","fixed":["5.3.18"],"introduced":["5.3.0"],"last_affected":[],"package":"org.springframework:spring-webflux","purl":"pkg:maven/org.springframework/spring-webflux","source":"GHSA-36p3-wjmg-h94x"},{"ecosystem":"Maven","fixed":["5.2.20.RELEASE"],"introduced":["0"],"last_affected":[],"package":"org.springframework:spring-webmvc","purl":null,"source":"GHSA-36p3-wjmg-h94x"},{"ecosystem":"Maven","fixed":["5.2.20.RELEASE"],"introduced":["0"],"last_affected":[],"package":"org.springframework:spring-webmvc","purl":"pkg:maven/org.springframework/spring-webmvc","source":"GHSA-36p3-wjmg-h94x"},{"ecosystem":"Maven","fixed":["5.3.18"],"introduced":["5.3.0"],"last_affected":[],"package":"org.springframework:spring-webmvc","purl":null,"source":"GHSA-36p3-wjmg-h94x"},{"ecosystem":"Maven","fixed":["5.3.18"],"introduced":["5.3.0"],"last_affected":[],"package":"org.springframework:spring-webmvc","purl":"pkg:maven/org.springframework/spring-webmvc","source":"GHSA-36p3-wjmg-h94x"}],"prev":{"headline":"Privilege escalation in VMware Horizon Agent for Linux","id":"CVE-2022-22964"},"products":["Spring Framework"],"published":"2022-04-01","related":[{"cvss_score":6.7,"headline":"Privilege escalation in Cisco CX Cloud Agent","id":"CVE-2023-20043","kev_date_added":null,"published":"2023-01-19"},{"cvss_score":6.7,"headline":"Privilege escalation in Cisco CX Cloud Agent","id":"CVE-2023-20044","kev_date_added":null,"published":"2023-01-19"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"open","licence":"CC0 1.0","name":"CISA KEV"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"},{"class":"open","licence":"CC0","name":"PoC-in-GitHub"}],"ssvc":{"automatable":"yes","exploitation":"active","technical_impact":"total"},"state":"PUBLISHED","updated":"2025-10-21","vendors":["n/a"]},"summary":"Attackers can achieve remote code execution in Spring MVC or WebFlux applications deployed as WARs on Tomcat with JDK 9+ via unsafe data binding.","url":"https://insights.sbomify.com/CVE-2022-22965/"}