{"answers":{"affected":"4 open source packages ship an affected version, including org.springframework.data:spring-data-rest-core. It affects 3 products.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2017-8046 exists.","fix":"Upgrade org.springframework.data:spring-data-rest-core to a fixed version for your release line: 2.6.9.RELEASE or 3.0.1.RELEASE.","what":"CVE-2017-8046 is a critical code injection vulnerability in Pivotal Spring Data REST and Spring Boot, published on 4 Jan 2018. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2017-8046 and fix it if it is affected.\n\nWhat it is: CVE-2017-8046 is a critical code injection vulnerability in Pivotal Spring Data REST and Spring Boot, published on 4 Jan 2018. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2017-8046 exists.\n\nAffected packages and fixed versions:\n- org.springframework.data:spring-data-rest-core (Maven): affected all versions; fixed in 2.6.9.RELEASE\n- org.springframework.data:spring-data-rest-core (Maven): affected all versions; fixed in 2.6.9.RELEASE\n- org.springframework.data:spring-data-rest-core (Maven): affected from 3.0.0; fixed in 3.0.1.RELEASE\n- org.springframework.data:spring-data-rest-core (Maven): affected from 3.0.0; fixed in 3.0.1.RELEASE\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-2017-8046/ (Markdown: https://insights.sbomify.com/CVE-2017-8046/index.md)","id":"CVE-2017-8046","markdown":"https://insights.sbomify.com/CVE-2017-8046/index.md","name":"CVE-2017-8046","record":{"aliases":["GHSA-9qf9-28h9-hqcj"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["code_execution"],"network_reachable":"yes","non_default_config":false,"product_category":"Spring Data REST","requires_auth":"none","summary":"Attackers can execute arbitrary Java code via malicious PATCH requests in Spring Data REST and Spring Boot applications.","user_interaction":"not_required","vuln_class":"code_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"dell","cpe":[{"product":"spring_data_rest","vendor":"pivotal_software"},{"product":"spring_boot","vendor":"vmware"},{"product":"spring_data_rest","vendor":"vmware"}],"cvss":{"score":9.8,"severity":"critical","source":"nvd","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","version":"3.0"},"cwes":[{"id":"CWE-20","name":"Improper Input Validation"}],"description":"Malicious PATCH requests submitted to servers using Spring Data REST versions prior to 2.6.9 (Ingalls SR9), versions prior to 3.0.1 (Kay SR1) and Spring Boot versions prior to 1.5.9, 2.0 M6 can use specially crafted JSON data to run arbitrary Java code.","ecosystems":["Maven"],"exploits":{"exploitdb":1,"first_seen":"2017-11-08","github_poc":10,"max_poc_stars":17,"metasploit":0,"nuclei":1,"refs":[{"date":"2018-03-09T20:51:19Z","kind":"github_poc","ref":"https://github.com/m3ssap0/spring-break_cve-2017-8046","stars":17,"title":"This is a Java program that exploits Spring Break vulnerability (CVE-2017-8046)."},{"date":"2018-03-08T15:29:44Z","kind":"github_poc","ref":"https://github.com/m3ssap0/SpringBreakVulnerableApp","stars":14,"title":"WARNING: This is a vulnerable application to test the exploit for the Spring Break vulnerability (CVE-2017-8046). Run it at your own risk!"},{"date":"2017-11-08T16:39:11Z","kind":"github_poc","ref":"https://github.com/sj/spring-data-rest-CVE-2017-8046","stars":1,"title":"Fork of github.com/spring-projects/spring-data-rest (vulnerable to CVE-2017-8046)"},{"date":"2018-03-12T18:49:45Z","kind":"github_poc","ref":"https://github.com/FixYourFace/SpringBreakPoC","stars":1,"title":"PoC for SpringBreak (CVE-2017-8046)"},{"date":"2018-04-16T16:54:05Z","kind":"github_poc","ref":"https://github.com/jkutner/spring-break-cve-2017-8046","stars":1,"title":"This is a Java program that exploits Spring Break vulnerability (CVE-2017-8046)."},{"date":"2019-01-17T17:49:12Z","kind":"github_poc","ref":"https://github.com/cved-sources/cve-2017-8046","stars":1,"title":"cve-2017-8046"},{"date":"2018-03-15","kind":"exploitdb","ref":"44289","stars":null,"title":"Spring Data REST \u003c 2.6.9 (Ingalls SR9) / 3.0.1 (Kay SR1) - PATCH Request Remote Code Execution"},{"date":"2018-09-26T11:11:40Z","kind":"github_poc","ref":"https://github.com/bkhablenko/CVE-2017-8046","stars":0,"title":null}],"tier":"weaponised"},"has_fix":true,"headline":"Remote code execution in PATCH requests in Spring Data REST","id":"CVE-2017-8046","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Maven","product":null,"products":[],"type":"code_injection","year":"2017"},"n_packages":4,"n_references":4,"next":{"headline":"Open redirect in Cloud Foundry router routing-release all versions prior to v0.163.0 and cf-release all versions prior to v274","id":"CVE-2017-8047"},"packages":[{"ecosystem":"Maven","fixed":["2.6.9.RELEASE"],"introduced":["0"],"last_affected":[],"package":"org.springframework.data:spring-data-rest-core","purl":null,"source":"GHSA-9qf9-28h9-hqcj"},{"ecosystem":"Maven","fixed":["2.6.9.RELEASE"],"introduced":["0"],"last_affected":[],"package":"org.springframework.data:spring-data-rest-core","purl":"pkg:maven/org.springframework.data/spring-data-rest-core","source":"GHSA-9qf9-28h9-hqcj"},{"ecosystem":"Maven","fixed":["3.0.1.RELEASE"],"introduced":["3.0.0"],"last_affected":[],"package":"org.springframework.data:spring-data-rest-core","purl":null,"source":"GHSA-9qf9-28h9-hqcj"},{"ecosystem":"Maven","fixed":["3.0.1.RELEASE"],"introduced":["3.0.0"],"last_affected":[],"package":"org.springframework.data:spring-data-rest-core","purl":"pkg:maven/org.springframework.data/spring-data-rest-core","source":"GHSA-9qf9-28h9-hqcj"}],"prev":{"headline":"Deserialization of Untrusted Data in Spring AMQP","id":"CVE-2017-8045"},"products":["Pivotal Spring Data REST and Spring Boot"],"published":"2018-01-04","related":[],"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":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"},{"class":"attribution","licence":"GPL-2.0-or-later","name":"Exploit-DB"},{"class":"open","licence":"CC0","name":"PoC-in-GitHub"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":"PUBLISHED","updated":"2024-08-05","vendors":["Pivotal"]},"summary":"Attackers can execute arbitrary Java code via malicious PATCH requests in Spring Data REST and Spring Boot applications.","url":"https://insights.sbomify.com/CVE-2017-8046/"}