{"answers":{"affected":"10 open source packages ship an affected version, including org.springframework.security.oauth:spring-security-oauth2. It affects 1 product.","exploited":"There is no known exploitation of CVE-2018-1260 in the wild and no public exploit code.","fix":"Upgrade org.springframework.security.oauth:spring-security-oauth2 to a fixed version for your release line: 2.0.15, 2.1.2, 2.2.2 or 2.3.3.","what":"CVE-2018-1260 is a critical code injection vulnerability in Pivotal Spring Security OAuth, published on 11 May 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-2018-1260 and fix it if it is affected.\n\nWhat it is: CVE-2018-1260 is a critical code injection vulnerability in Pivotal Spring Security OAuth, published on 11 May 2018. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2018-1260 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- org.springframework.security.oauth:spring-security-oauth2 (Maven): affected from 1.0.0 up to 1.0.5; no fix listed\n- org.springframework.security.oauth:spring-security-oauth2 (Maven): affected from 1.0.0 up to 1.0.5; no fix listed\n- org.springframework.security.oauth:spring-security-oauth2 (Maven): affected from 2.0.0; fixed in 2.0.15\n- org.springframework.security.oauth:spring-security-oauth2 (Maven): affected from 2.0.0; fixed in 2.0.15\n- org.springframework.security.oauth:spring-security-oauth2 (Maven): affected from 2.1.0; fixed in 2.1.2\n- org.springframework.security.oauth:spring-security-oauth2 (Maven): affected from 2.1.0; fixed in 2.1.2\n- org.springframework.security.oauth:spring-security-oauth2 (Maven): affected from 2.2.0; fixed in 2.2.2\n- org.springframework.security.oauth:spring-security-oauth2 (Maven): affected from 2.2.0; fixed in 2.2.2\n- org.springframework.security.oauth:spring-security-oauth2 (Maven): affected from 2.3.0; fixed in 2.3.3\n- org.springframework.security.oauth:spring-security-oauth2 (Maven): affected from 2.3.0; fixed in 2.3.3\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-2018-1260/ (Markdown: https://insights.sbomify.com/CVE-2018-1260/index.md)","id":"CVE-2018-1260","markdown":"https://insights.sbomify.com/CVE-2018-1260/index.md","name":"CVE-2018-1260","record":{"aliases":["GHSA-rrpm-pj7p-7j9q"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["code_execution"],"network_reachable":"yes","non_default_config":false,"product_category":"Spring Security OAuth","requires_auth":"none","summary":"Attackers can achieve remote code execution by crafting malicious authorization requests in Spring Security OAuth.","user_interaction":"not_required","vuln_class":"code_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"dell","cpe":[{"product":"spring_security_oauth","vendor":"pivotal_software"}],"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-94","name":"Improper Control of Generation of Code"}],"description":"Spring Security OAuth, versions 2.3 prior to 2.3.3, 2.2 prior to 2.2.2, 2.1 prior to 2.1.2, 2.0 prior to 2.0.15 and older unsupported versions contains a remote code execution vulnerability. A malicious user or attacker can craft an authorization request to the authorization endpoint that can lead to remote code execution when the resource owner is forwarded to the approval endpoint.","ecosystems":["Maven"],"exploits":{"exploitdb":0,"first_seen":"2025-08-17","github_poc":1,"max_poc_stars":0,"metasploit":0,"nuclei":0,"refs":[{"date":"2025-08-17T08:44:59Z","kind":"github_poc","ref":"https://github.com/shoucheng3/SpringSource__spring-security-oauth_CVE-2018-1260_2-3-2-RELEASE","stars":0,"title":null}],"tier":"poc_unverified"},"has_fix":true,"headline":"Spring Security OAuth vulnerable to remote code execution (RCE)","id":"CVE-2018-1260","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Maven","product":null,"products":[],"type":"code_injection","year":"2018"},"n_packages":10,"n_references":4,"next":{"headline":"Path traversal in org.springframework.integration:spring-integration-zip","id":"CVE-2018-1261"},"packages":[{"ecosystem":"Maven","fixed":[],"introduced":["1.0.0"],"last_affected":["1.0.5"],"package":"org.springframework.security.oauth:spring-security-oauth2","purl":null,"source":"GHSA-rrpm-pj7p-7j9q"},{"ecosystem":"Maven","fixed":[],"introduced":["1.0.0"],"last_affected":["1.0.5"],"package":"org.springframework.security.oauth:spring-security-oauth2","purl":"pkg:maven/org.springframework.security.oauth/spring-security-oauth2","source":"GHSA-rrpm-pj7p-7j9q"},{"ecosystem":"Maven","fixed":["2.0.15"],"introduced":["2.0.0"],"last_affected":[],"package":"org.springframework.security.oauth:spring-security-oauth2","purl":null,"source":"GHSA-rrpm-pj7p-7j9q"},{"ecosystem":"Maven","fixed":["2.0.15"],"introduced":["2.0.0"],"last_affected":[],"package":"org.springframework.security.oauth:spring-security-oauth2","purl":"pkg:maven/org.springframework.security.oauth/spring-security-oauth2","source":"GHSA-rrpm-pj7p-7j9q"},{"ecosystem":"Maven","fixed":["2.1.2"],"introduced":["2.1.0"],"last_affected":[],"package":"org.springframework.security.oauth:spring-security-oauth2","purl":null,"source":"GHSA-rrpm-pj7p-7j9q"},{"ecosystem":"Maven","fixed":["2.1.2"],"introduced":["2.1.0"],"last_affected":[],"package":"org.springframework.security.oauth:spring-security-oauth2","purl":"pkg:maven/org.springframework.security.oauth/spring-security-oauth2","source":"GHSA-rrpm-pj7p-7j9q"},{"ecosystem":"Maven","fixed":["2.2.2"],"introduced":["2.2.0"],"last_affected":[],"package":"org.springframework.security.oauth:spring-security-oauth2","purl":null,"source":"GHSA-rrpm-pj7p-7j9q"},{"ecosystem":"Maven","fixed":["2.2.2"],"introduced":["2.2.0"],"last_affected":[],"package":"org.springframework.security.oauth:spring-security-oauth2","purl":"pkg:maven/org.springframework.security.oauth/spring-security-oauth2","source":"GHSA-rrpm-pj7p-7j9q"},{"ecosystem":"Maven","fixed":["2.3.3"],"introduced":["2.3.0"],"last_affected":[],"package":"org.springframework.security.oauth:spring-security-oauth2","purl":null,"source":"GHSA-rrpm-pj7p-7j9q"},{"ecosystem":"Maven","fixed":["2.3.3"],"introduced":["2.3.0"],"last_affected":[],"package":"org.springframework.security.oauth:spring-security-oauth2","purl":"pkg:maven/org.springframework.security.oauth/spring-security-oauth2","source":"GHSA-rrpm-pj7p-7j9q"}],"prev":{"headline":"Spring Data Commons, used in combination with XMLBeam, contains a property binder vulnerability caused by improper restriction of XML external entity references","id":"CVE-2018-1259"},"products":["Spring Security OAuth"],"published":"2018-05-11","related":[{"cvss_score":9.6,"headline":"Privilege Escalation in spring-security-oauth2","id":"CVE-2018-15758","kev_date_added":null,"published":"2018-10-18"}],"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":"open","licence":"CC0","name":"PoC-in-GitHub"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":"PUBLISHED","updated":"2024-09-17","vendors":["Pivotal"]},"summary":"Attackers can achieve remote code execution by crafting malicious authorization requests in Spring Security OAuth.","url":"https://insights.sbomify.com/CVE-2018-1260/"}