{"answers":{"affected":"8 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-15758 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.16, 2.1.3, 2.2.3.RELEASE or 2.3.4.RELEASE.","what":"CVE-2018-15758 is a critical vulnerability in Pivotal Spring Security OAuth, published on 18 Oct 2018. Any signed-in user can exploit it over the network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2018-15758 and fix it if it is affected.\n\nWhat it is: CVE-2018-15758 is a critical vulnerability in Pivotal Spring Security OAuth, published on 18 Oct 2018. Any signed-in user can exploit it over the network, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2018-15758 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 2.0.0; fixed in 2.0.16\n- org.springframework.security.oauth:spring-security-oauth2 (Maven): affected from 2.0.0; fixed in 2.0.16\n- org.springframework.security.oauth:spring-security-oauth2 (Maven): affected from 2.1.0; fixed in 2.1.3\n- org.springframework.security.oauth:spring-security-oauth2 (Maven): affected from 2.1.0; fixed in 2.1.3\n- org.springframework.security.oauth:spring-security-oauth2 (Maven): affected from 2.2.0; fixed in 2.2.3.RELEASE\n- org.springframework.security.oauth:spring-security-oauth2 (Maven): affected from 2.2.0; fixed in 2.2.3.RELEASE\n- org.springframework.security.oauth:spring-security-oauth2 (Maven): affected from 2.3.0; fixed in 2.3.4.RELEASE\n- org.springframework.security.oauth:spring-security-oauth2 (Maven): affected from 2.3.0; fixed in 2.3.4.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-2018-15758/ (Markdown: https://insights.sbomify.com/CVE-2018-15758/index.md)","id":"CVE-2018-15758","markdown":"https://insights.sbomify.com/CVE-2018-15758/index.md","name":"CVE-2018-15758","record":{"aliases":["GHSA-h8w4-qv99-f7vj"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["privilege_escalation"],"network_reachable":"yes","non_default_config":true,"product_category":"Spring Security OAuth","requires_auth":"low_privilege","summary":"Attackers can escalate privileges by crafting requests to a custom approval endpoint in Spring Security OAuth applications configured with specific controller arguments.","user_interaction":"not_required","vuln_class":"privilege_escalation"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"dell","cpe":[{"product":"spring_security_oauth","vendor":"pivotal_software"}],"cvss":{"score":9.6,"severity":"critical","source":"cna","vector":"CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:N","version":"3.0"},"cwes":[],"description":"Spring Security OAuth, versions 2.3 prior to 2.3.4, and 2.2 prior to 2.2.3, and 2.1 prior to 2.1.3, and 2.0 prior to 2.0.16, and older unsupported versions could be susceptible to a privilege escalation under certain conditions. A malicious user or attacker can craft a request to the approval endpoint that can modify the previously saved authorization request and lead to a privilege escalation on the subsequent approval. This scenario can happen if the application is configured to use a custom approval endpoint that declares AuthorizationRequest as a controller method argument. This vulnerability exposes applications that meet all of the following requirements: Act in the role of an Authorization Server (e.g. @EnableAuthorizationServer) and use a custom Approval Endpoint that declares AuthorizationRequest as a controller method argument. This vulnerability does not expose applications that: Act in the role of an Authorization Server and use the default Approval Endpoint, act in the role of a Resource Server only (e.g. @EnableResourceServer), act in the role of a Client only (e.g. @EnableOAuthClient).","ecosystems":["Maven"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"Privilege Escalation in spring-security-oauth2","id":"CVE-2018-15758","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Maven","product":null,"products":[],"type":"privilege_escalation","year":"2018"},"n_packages":8,"n_references":3,"next":{"headline":"On Demand Services SDK Timing Attack Vulnerability","id":"CVE-2018-15759"},"packages":[{"ecosystem":"Maven","fixed":["2.0.16"],"introduced":["2.0.0"],"last_affected":[],"package":"org.springframework.security.oauth:spring-security-oauth2","purl":null,"source":"GHSA-h8w4-qv99-f7vj"},{"ecosystem":"Maven","fixed":["2.0.16"],"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-h8w4-qv99-f7vj"},{"ecosystem":"Maven","fixed":["2.1.3"],"introduced":["2.1.0"],"last_affected":[],"package":"org.springframework.security.oauth:spring-security-oauth2","purl":null,"source":"GHSA-h8w4-qv99-f7vj"},{"ecosystem":"Maven","fixed":["2.1.3"],"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-h8w4-qv99-f7vj"},{"ecosystem":"Maven","fixed":["2.2.3.RELEASE"],"introduced":["2.2.0"],"last_affected":[],"package":"org.springframework.security.oauth:spring-security-oauth2","purl":null,"source":"GHSA-h8w4-qv99-f7vj"},{"ecosystem":"Maven","fixed":["2.2.3.RELEASE"],"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-h8w4-qv99-f7vj"},{"ecosystem":"Maven","fixed":["2.3.4.RELEASE"],"introduced":["2.3.0"],"last_affected":[],"package":"org.springframework.security.oauth:spring-security-oauth2","purl":null,"source":"GHSA-h8w4-qv99-f7vj"},{"ecosystem":"Maven","fixed":["2.3.4.RELEASE"],"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-h8w4-qv99-f7vj"}],"prev":{"headline":"DO NOT USE THIS CANDIDATE NUMBER.","id":"CVE-2018-15757"},"products":["Spring Security OAuth"],"published":"2018-10-18","related":[{"cvss_score":9.8,"headline":"Spring Security OAuth vulnerable to remote code execution (RCE)","id":"CVE-2018-1260","kev_date_added":null,"published":"2018-05-11"}],"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":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":"PUBLISHED","updated":"2024-09-17","vendors":["Pivotal"]},"summary":"Attackers can escalate privileges by crafting requests to a custom approval endpoint in Spring Security OAuth applications configured with specific controller arguments.","url":"https://insights.sbomify.com/CVE-2018-15758/"}