# CVE-2018-15758: Privilege Escalation in spring-security-oauth2

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** CRITICAL 9.6
- **CVSS:** 9.6 (v3.0, CNA) `CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:N`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Changed (impact reaches other components); Confidentiality impact: High; Integrity impact: High; Availability impact: None
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, login needed
- **EPSS:** 2.15% (percentile 83, 2026-11-26)
- **CWE:** CWE-269
- **Aliases:** GHSA-h8w4-qv99-f7vj
- **Published:** 2018-10-18T22:00:00.000Z
- **Modified:** 2026-06-17T01:43:04.030Z

## Who should check

- Projects that depend on Maven package org.springframework.security.oauth:spring-security-oauth2 (\>= 2.0.0, \< 2.0.16)
- Anyone running Pivotal Spring Security OAuth \>= 2.3, \<= 2.3.3; \>= 2.2, \<= 2.2.2; \>= 2.1, \<= 2.1.2; \>= 2.0, \<= 2.0.15

## 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).

## Affected and fixed versions

- Maven `org.springframework.security.oauth:spring-security-oauth2`: affected \>= 2.0.0, \< 2.0.16; fixed 2.0.16, 2.1.3, 2.2.3.RELEASE, 2.3.4.RELEASE (osv)
- Pivotal Spring Security OAuth: \>= 2.3, \<= 2.3.3; \>= 2.2, \<= 2.2.2; \>= 2.1, \<= 2.1.2; \>= 2.0, \<= 2.0.15 (cvelist)

## Mitigation

- Upgrade org.springframework.security.oauth:spring-security-oauth2 to one of 2.0.16, 2.1.3, 2.2.3.RELEASE, 2.3.4.RELEASE (or later in the same release line).

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2018-15758. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2018-15758.md
Affected: org.springframework.security.oauth:spring-security-oauth2 >= 2.0.0, < 2.0.16
Fixed in: 2.0.16, 2.1.3, 2.2.3.RELEASE, 2.3.4.RELEASE

Steps:
1. Search this machine and project for org.springframework.security.oauth:spring-security-oauth2 (Maven), Pivotal Spring Security OAuth: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2018-15758 being exploited?

There is no confirmed exploitation: CVE-2018-15758 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 2.15% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2018-15758?

Critical: CVSS 9.6 (v3.0, scored by CNA). Remote, login needed.

### Which versions are affected by CVE-2018-15758?

org.springframework.security.oauth:spring-security-oauth2 \>= 2.0.0, \< 2.0.16.

### Is there a fix for CVE-2018-15758?

Yes. Fixed in 2.0.16, 2.1.3, 2.2.3.RELEASE, 2.3.4.RELEASE. Upgrade org.springframework.security.oauth:spring-security-oauth2 to one of 2.0.16, 2.1.3, 2.2.3.RELEASE, 2.3.4.RELEASE (or later in the same release line).

### How do I check if I'm affected by CVE-2018-15758?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://pivotal.io/security/cve-2018-15758>
- vendor: <https://access.redhat.com/errata/RHSA-2019:2413>
- vendor: <https://nvd.nist.gov/vuln/detail/CVE-2018-15758>
- vendor: <https://github.com/advisories/GHSA-h8w4-qv99-f7vj>
- patch: <https://github.com/spring-attic/spring-security-oauth/commit/4082ec7ae3d39198a47b5c803ccb20dacefb0b0>
- patch: <https://github.com/spring-attic/spring-security-oauth/commit/623776689fdcc8047f5a908c71f348e1f172a97>
- patch: <https://github.com/spring-attic/spring-security-oauth/commit/ddd65cd9417ae1e4a69e4193a622300db38e2ef>
- patch: <https://github.com/spring-attic/spring-security-oauth/commit/f92223afc71687bd3156298054903f50aa71fbf>
- other: <http://www.securityfocus.com/bid/105687>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2018-15758>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-h8w4-qv99-f7vj> (license: <https://creativecommons.org/licenses/by/4.0/>)

HTML: <https://flawdb.com/CVE-2018-15758> · JSON: <https://flawdb.com/api/v1/entries/CVE-2018-15758>
