Skip to content
FlawDB
Sign in
Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

CVE-2018-15758

CRITICAL 9.6EPSS 83%

Privilege Escalation in spring-security-oauth2

Also known as GHSA-h8w4-qv99-f7vj

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

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

Vulnerability facts

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
Exploited in the wild
Not in CISA KEV
Public exploit / PoC
None known
Remote exploitation
Remote, login needed
CVSS
9.6 (v3.0, CNA)CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:NOpen in CVSS calculator
Show all 8 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
EPSS
2.15% chance of exploitation in 30 days (percentile 83, 2026-11-26)
CWE
CWE-269
Published
Modified

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

Package / productAffectedFixedSource
Maven org.springframework.security.oauth:spring-security-oauth2>= 2.0.0, < 2.0.162.0.16, 2.1.3, 2.2.3.RELEASE, 2.3.4.RELEASEosv
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

Check your systems with an agent

Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.

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.

References

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.

Sponsors