Your RSA-2048 keys break in 2030. Find every one of them before attackers do.
Maven

CVE-2018-15758

HIGH

CVE-2018-15758 is a high-severity (CVSS 8.1) vulnerability in org.springframework.security.oauth:spring-security-oauth2. O3 Security confirms whether CVE-2018-15758 is actually reachable in your code before you act, and blocks exploitation at runtime until you patch.

Authorization bypass in org.springframework.security.oauth:spring-security-oauth2

Also known asGHSA-h8w4-qv99-f7vj
Published
Oct 18, 2018
Updated
Apr 10, 2026
Affected
4 pkgs
Patched
4 / 4
Exploits
None indexed

Blast Radius

4 pkgs affected
org.springframework.security.oauth:spring-security-oauth2org.springframework.security.oauth:spring-security-oauth2org.springframework.security.oauth:spring-security-oauth2org.springframework.security.oauth:spring-security-oauth2

Real-time download stats are indexed for npm and PyPI packages. This vulnerability affects Maven packages — download data is not available via public APIs for these ecosystems.

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 Packages

4 total 4 fixed
EcosystemPackageVulnerable rangeFix
Mavenorg.springframework.security.oauth:spring-security-oauth22.0.0&&< 2.0.162.0.16
Mavenorg.springframework.security.oauth:spring-security-oauth22.1.0&&< 2.1.32.1.3
Mavenorg.springframework.security.oauth:spring-security-oauth22.2.0&&< 2.2.3.RELEASE2.2.3.RELEASE
Mavenorg.springframework.security.oauth:spring-security-oauth22.3.0&&< 2.3.4.RELEASE2.3.4.RELEASE

Detection & mitigation playbook

Open-source dependency
  1. Detect

    Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for org.springframework.security.oauth:spring-security-oauth2. O3's reachability analysis confirms whether the vulnerable code path is actually invoked in your application, so you act on real exposure instead of every transitive match.

  2. Fix

    Update org.springframework.security.oauth:spring-security-oauth2 to 2.0.16 or later, then make sure no transitive (indirect) dependency still pins the vulnerable range — O3 confirms CVE-2018-15758 is resolved across your whole dependency graph.

  3. Workarounds

    If you can't upgrade right away: gate or disable the affected feature, validate untrusted input at the boundary, and avoid passing attacker-controlled data into the vulnerable path. O3's runtime protection blocks exploitation in production as an interim safeguard until the upgrade lands.

  4. How O3 protects you

    O3 pinpoints whether CVE-2018-15758 is reachable in your code and exactly where to fix it, then blocks exploitation in production at runtime until the patched version is deployed.

Tailored to CVE-2018-15758. Runtime protection reduces exposure until a permanent patch is applied and verified — it complements patching, it doesn't replace it.

Frequently Asked Questions

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 vulnerabil
O3 Security · Impact-Aware SCA

Is CVE-2018-15758 in your dependencies?

O3 detects CVE-2018-15758 across Maven dependencies and uses function-level reachability to confirm whether the vulnerable code path is actually reachable — not just present. No false positives.