{"answers":{"affected":"4 open source packages ship an affected version, including org.springframework.cloud:spring-cloud-gateway. It affects 10 products.","exploited":"Yes. Attackers have exploited CVE-2022-22947 in the wild since at least 16 May 2022.","fix":"Upgrade org.springframework.cloud:spring-cloud-gateway to a fixed version for your release line: 3.0.7 or 3.1.1. US federal agencies must fix it by 6 Jun 2022.","what":"CVE-2022-22947 is a critical code injection vulnerability in Oracle Commerce Guided Search, published on 3 Mar 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-22947 and fix it if it is affected.\n\nWhat it is: CVE-2022-22947 is a critical code injection vulnerability in Oracle Commerce Guided Search, published on 3 Mar 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-22947 in the wild since at least 16 May 2022.\n\nAffected packages and fixed versions:\n- org.springframework.cloud:spring-cloud-gateway (Maven): affected all versions; fixed in 3.0.7\n- org.springframework.cloud:spring-cloud-gateway (Maven): affected all versions; fixed in 3.0.7\n- org.springframework.cloud:spring-cloud-gateway (Maven): affected from 3.1.0; fixed in 3.1.1\n- org.springframework.cloud:spring-cloud-gateway (Maven): affected from 3.1.0; fixed in 3.1.1\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-22947/ (Markdown: https://insights.sbomify.com/CVE-2022-22947/index.md)","id":"CVE-2022-22947","markdown":"https://insights.sbomify.com/CVE-2022-22947/index.md","name":"CVE-2022-22947","record":{"aliases":["GHSA-3gx9-37ww-9qw6"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["code_execution"],"network_reachable":"yes","non_default_config":true,"product_category":"Spring Cloud Gateway","requires_auth":"none","summary":"Remote attackers can execute arbitrary code on hosts using Spring Cloud Gateway if the Actuator endpoint is enabled and unsecured.","user_interaction":"not_required","vuln_class":"code_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"vmware","cpe":[{"product":"commerce_guided_search","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_security_edge_protection_proxy","vendor":"oracle"},{"product":"communications_cloud_native_core_service_communication_proxy","vendor":"oracle"},{"product":"spring_cloud_gateway","vendor":"vmware"}],"cvss":{"score":10,"severity":"critical","source":"cisa-adp","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H","version":"3.1"},"cwes":[{"id":"CWE-917","name":"Improper Neutralization of Special Elements used in an Expression Language Statement"},{"id":"CWE-94","name":"Improper Control of Generation of Code"}],"description":"In spring cloud gateway versions prior to 3.1.1+ and 3.0.7+ , applications are vulnerable to a code injection attack when the Gateway Actuator endpoint is enabled, exposed and unsecured. A remote attacker could make a maliciously crafted request that could allow arbitrary remote execution on the remote host.","ecosystems":["Maven"],"exploits":{"exploitdb":1,"first_seen":"2022-01-26","github_poc":62,"max_poc_stars":222,"metasploit":1,"nuclei":1,"refs":[{"date":"2022-03-02T11:58:55Z","kind":"github_poc","ref":"https://github.com/lucksec/Spring-Cloud-Gateway-CVE-2022-22947","stars":222,"title":"CVE-2022-22947"},{"date":"2022-04-26T05:48:27Z","kind":"github_poc","ref":"https://github.com/whwlsfb/cve-2022-22947-godzilla-memshell","stars":210,"title":"CVE-2022-22947 注入Godzilla内存马"},{"date":"2022-03-03T13:13:02Z","kind":"github_poc","ref":"https://github.com/SecNN/CVE-2022-22947_Rce_Exp","stars":77,"title":"Spring Cloud Gateway 远程代码执行漏洞Exp Spring_Cloud_Gateway_RCE_Exp-CVE-2022-22947"},{"date":"2022-03-04T06:38:26Z","kind":"github_poc","ref":"https://github.com/tangxiaofeng7/CVE-2022-22947-Spring-Cloud-Gateway","stars":72,"title":"CVE-2022-22947批量"},{"date":"2022-05-16T15:27:41Z","kind":"github_poc","ref":"https://github.com/0730Nophone/CVE-2022-22947-","stars":59,"title":"Spring Cloud Gateway Actuator API SpEL表达式注入命令执行（CVE-2022-22947） 注入哥斯拉内存马"},{"date":"2022-03-03T18:26:18Z","kind":"github_poc","ref":"https://github.com/crowsec-edtech/CVE-2022-22947","stars":37,"title":"Spring Cloud Gateway \u003c 3.0.7 \u0026 \u003c 3.1.1 Code Injection (RCE)"},{"date":"2022-03-08T09:32:36Z","kind":"github_poc","ref":"https://github.com/0x7eTeam/CVE-2022-22947","stars":34,"title":"CVE-2022-22947_EXP,CVE-2022-22947_RCE,CVE-2022-22947反弹shell,CVE-2022-22947 getshell"},{"date":"2022-03-03T19:45:18Z","kind":"github_poc","ref":"https://github.com/Tas9er/SpringCloudGatewayRCE","stars":27,"title":"SpringCloudGatewayRCE - CVE-2022-22947 / Code By:Tas9er"}],"tier":"exploited"},"has_fix":true,"headline":"VMware Spring Cloud Gateway Code Injection","id":"CVE-2022-22947","indexable":true,"kev":{"dateAdded":"2022-05-16","dueDate":"2022-06-06","knownRansomwareCampaignUse":"Unknown","product":"Spring Cloud Gateway","requiredAction":"Apply updates per vendor instructions.","vendorProject":"VMware","vulnerabilityName":"VMware Spring Cloud Gateway Code Injection Vulnerability"},"kind":"cve","links":{"ecosystem":"Maven","product":"oracle:commerce_guided_search","products":["oracle:commerce_guided_search","oracle:communications_cloud_native_core_binding_support_function"],"type":"code_injection","year":"2022"},"n_packages":4,"n_references":5,"next":{"headline":"VMware vCenter Server Incorrect Default File Permissions Vulnerability","id":"CVE-2022-22948"},"packages":[{"ecosystem":"Maven","fixed":["3.0.7"],"introduced":["0"],"last_affected":[],"package":"org.springframework.cloud:spring-cloud-gateway","purl":null,"source":"GHSA-3gx9-37ww-9qw6"},{"ecosystem":"Maven","fixed":["3.0.7"],"introduced":["0"],"last_affected":[],"package":"org.springframework.cloud:spring-cloud-gateway","purl":"pkg:maven/org.springframework.cloud/spring-cloud-gateway","source":"GHSA-3gx9-37ww-9qw6"},{"ecosystem":"Maven","fixed":["3.1.1"],"introduced":["3.1.0"],"last_affected":[],"package":"org.springframework.cloud:spring-cloud-gateway","purl":null,"source":"GHSA-3gx9-37ww-9qw6"},{"ecosystem":"Maven","fixed":["3.1.1"],"introduced":["3.1.0"],"last_affected":[],"package":"org.springframework.cloud:spring-cloud-gateway","purl":"pkg:maven/org.springframework.cloud/spring-cloud-gateway","source":"GHSA-3gx9-37ww-9qw6"}],"prev":{"headline":"Weak cryptography in Spring Cloud Gateway","id":"CVE-2022-22946"},"products":["Spring Cloud Gateway"],"published":"2022-03-03","related":[{"cvss_score":9.3,"headline":"Missing authorization in Oracle Commerce Guided Search / Oracle Commerce Experience Manager","id":"CVE-2026-71037","kev_date_added":null,"published":"2026-08-18"},{"cvss_score":9.1,"headline":"Privilege escalation in Oracle Commerce Guided Search / Oracle Commerce Experience Manager","id":"CVE-2026-71036","kev_date_added":null,"published":"2026-08-18"},{"cvss_score":8.2,"headline":"Other in n/a","id":"CVE-2016-5482","kev_date_added":null,"published":"2016-10-25"},{"cvss_score":7.5,"headline":"Auth bypass in Oracle Commerce Guided Search / Oracle Commerce Experience Manager","id":"CVE-2026-71038","kev_date_added":null,"published":"2026-08-18"},{"cvss_score":7.5,"headline":"Information disclosure in Commerce Guided Search / Oracle Commerce Experience Manager","id":"CVE-2022-21466","kev_date_added":null,"published":"2022-04-19"},{"cvss_score":6.1,"headline":"Cross-site scripting in Commerce Guided Search / Oracle Commerce Experience Manager","id":"CVE-2023-22029","kev_date_added":null,"published":"2023-10-17"}],"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":"Remote attackers can execute arbitrary code on hosts using Spring Cloud Gateway if the Actuator endpoint is enabled and unsecured.","url":"https://insights.sbomify.com/CVE-2022-22947/"}