{"id":"CVE-2018-15758","published":"2018-10-18T22:00:00Z","modified":"2024-09-17T01:16:40Z","title":"Privilege Escalation in spring-security-oauth2","vendor":"Pivotal","product":"Spring Security OAuth","tier":"core","eol":null,"affectedVersions":[{"vendor":"Pivotal","product":"Spring Security OAuth","versions":[">= 2.3, <= 2.3.3",">= 2.2, <= 2.2.2",">= 2.1, <= 2.1.2",">= 2.0, <= 2.0.15"]}],"description":{"text":"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).","provenance":"source","from":"CVE.org"},"summary":{"text":"Spring Security OAuth (Pivotal) contains a privilege escalation flaw in the Authorization Server's approval endpoint, affecting older releases in the 2.0 through 2.3 lines. An attacker with low-privilege access over the network can craft a request that modifies a previously saved authorization request, leading to privilege escalation on the subsequent approval, but only where the application acts as an Authorization Server (e.g. @EnableAuthorizationServer) and uses a custom approval endpoint that declares AuthorizationRequest as a controller method argument.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-10-23T07:16:08Z"},"cvss":{"score":9.6,"severity":"CRITICAL","version":"3.0","vector":"CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.02153,"percentile":0.82453,"date":"2026-11-14","provenance":"source"},"kev":null,"vulncheckKev":null,"exploited":false,"otx":{"pulseCount":0,"pulses":[],"provenance":"machine"},"cwes":[],"references":[{"url":"https://pivotal.io/security/cve-2018-15758","tags":["x_refsource_CONFIRM"]},{"url":"http://www.securityfocus.com/bid/105687","tags":["vdb-entry","x_refsource_BID"]},{"url":"https://access.redhat.com/errata/RHSA-2019:2413","tags":["vendor-advisory","x_refsource_REDHAT"]}],"techniques":[{"id":"T1190","name":"Exploit Public-Facing Application","tactics":["initial-access"],"provenance":"source","basis":"ctid-cve","bases":["ctid-cve"],"basisDetail":"CTID attack_to_cve (Phase 2)","mappingType":"exploitation_technique","evidence":[],"confidence":"high"},{"id":"T1068","name":"Exploitation for Privilege Escalation","tactics":["privilege-escalation"],"provenance":"source","basis":"ctid-cve","bases":["ctid-cve"],"basisDetail":"CTID attack_to_cve (Phase 2)","mappingType":"primary_impact","evidence":[],"confidence":"high"}],"reports":[],"affected":[{"ecosystem":"Maven","package":"org.springframework.security.oauth:spring-security-oauth2","vulnerableRanges":[">=2.0.0, <2.0.16",">=2.1.0, <2.1.3",">=2.2.0, <2.2.3.RELEASE",">=2.3.0, <2.3.4.RELEASE"],"patched":["2.0.16","2.1.3","2.2.3.RELEASE","2.3.4.RELEASE"],"from":["GHSA-h8w4-qv99-f7vj"],"provenance":"source"}],"advisories":[{"id":"GHSA-h8w4-qv99-f7vj","url":"https://github.com/advisories/GHSA-h8w4-qv99-f7vj","severity":"HIGH","ecosystem":"Maven","package":"org.springframework.security.oauth:spring-security-oauth2","vulnerableRanges":[">=2.0.0, <2.0.16"],"patched":["2.0.16"],"provenance":"source","from":"GHSA"},{"id":"GHSA-h8w4-qv99-f7vj","url":"https://github.com/advisories/GHSA-h8w4-qv99-f7vj","severity":"HIGH","ecosystem":"Maven","package":"org.springframework.security.oauth:spring-security-oauth2","vulnerableRanges":[">=2.1.0, <2.1.3"],"patched":["2.1.3"],"provenance":"source","from":"GHSA"},{"id":"GHSA-h8w4-qv99-f7vj","url":"https://github.com/advisories/GHSA-h8w4-qv99-f7vj","severity":"HIGH","ecosystem":"Maven","package":"org.springframework.security.oauth:spring-security-oauth2","vulnerableRanges":[">=2.2.0, <2.2.3.RELEASE"],"patched":["2.2.3.RELEASE"],"provenance":"source","from":"GHSA"},{"id":"GHSA-h8w4-qv99-f7vj","url":"https://github.com/advisories/GHSA-h8w4-qv99-f7vj","severity":"HIGH","ecosystem":"Maven","package":"org.springframework.security.oauth:spring-security-oauth2","vulnerableRanges":[">=2.3.0, <2.3.4.RELEASE"],"patched":["2.3.4.RELEASE"],"provenance":"source","from":"GHSA"}],"euvd":{"id":"EUVD-2018-0615","url":"https://euvd.enisa.europa.eu/vulnerability/EUVD-2018-0615","exploited":false,"exploitedSince":null,"provenance":"source"},"exploits":[],"exploitSources":null,"exploitRefs":[],"flow":[{"stage":"exploitation","techniques":["T1190"],"provenance":"source"},{"stage":"primary","techniques":["T1068"],"provenance":"source"}],"timeline":[{"date":"2018-10-18","kind":"published","label":"Published (CVE.org)","url":"https://www.cve.org/CVERecord?id=CVE-2018-15758","provenance":"source"}],"speed":{"daysToPublicExploit":null,"firstExploitFrom":null,"daysToKev":null},"priority":{"score":23.2,"factors":[{"name":"In a KEV catalog","points":0.0,"detail":"not listed"},{"name":"Recent KEV listing","points":0.0,"detail":"not listed"},{"name":"Known ransomware use","points":0.0,"detail":"not known"},{"name":"EPSS percentile","points":16.49,"detail":"percentile 0.8245"},{"name":"Named in threat reports","points":0.0,"detail":"0 reports"},{"name":"Public exploit code","points":0.0,"detail":"none found"},{"name":"Mentioned in OTX pulses","points":0.0,"detail":"0 pulses"},{"name":"CVSS severity","points":6.72,"detail":"base score 9.6"},{"name":"End-of-life product","points":0.0,"detail":"supported or unknown"}]},"lineage":{"packageHistory":[{"cve":"CVE-2016-4977","published":"2017-05-25","fixed":"2.0.10","kev":false},{"cve":"CVE-2018-1260","published":"2018-05-11","fixed":"2.3.3","kev":false,"link":{"from":"CVE-2018-1260","to":"CVE-2018-15758","relation":"successor","confidence":"medium","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Maven:org.springframework.security.oauth:spring-security-oauth2","fromFixed":"2.0.15","toFixed":"2.0.16","daysApart":160},{"kind":"similar","provenance":"machine","score":0.41,"basis":"same product + description similarity"}]}},{"cve":"CVE-2018-15758","published":"2018-10-18","fixed":"2.3.4.RELEASE","kev":false},{"cve":"CVE-2019-3778","published":"2019-03-07","fixed":"2.3.5.RELEASE","kev":false,"link":{"from":"CVE-2018-15758","to":"CVE-2019-3778","relation":"successor","confidence":"medium","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Maven:org.springframework.security.oauth:spring-security-oauth2","fromFixed":"2.0.16","toFixed":"2.0.17.RELEASE","daysApart":140},{"kind":"similar","provenance":"machine","score":0.41,"basis":"same package + description similarity"}]}},{"cve":"CVE-2022-22969","published":"2022-04-21","fixed":"2.5.2.RELEASE","kev":false}],"package":"Maven:org.springframework.security.oauth:spring-security-oauth2"}}