Skip to main content

CVE-2018-1260 — Vulnerability in spring-security-oauth2 — CVE Details

CRITICAL

Spring Security OAuth vulnerable to remote code execution (RCE)

Published October 18, 2018Updated May 14, 2024Source: OSV

What Should I Do?

Low-to-Moderate Risk

Exploitation probability is 10.62% in 30 days. Address in your next planned sprint.

Does your project use an affected org.springframework.security.oauth:spring-security-oauth2 version?

Paste your pom.xml to check it for CVE-2018-1260 and every other known vulnerability, with CISA KEV and EPSS on each finding. Free with no signup for up to 10 packages, or up to 500 per scan with a free account, which also keeps up to 200 packages in saved projects.

Check my pom.xml

Summary

Spring Security OAuth versions prior to 2.3.3, prior to 2.2.2, prior to 2.1.2, and prior to 2.0.15 contain a remote code execution vulnerability. An attacker can craft an authorization request to the authorization endpoint that can lead to remote code execution when the resource owner is forwarded to the approval endpoint.

Advisory Timeline

  • First published October 18, 2018 (2961 days ago).
  • Last revised May 14, 2024 — 2035 days after initial publication.

Remediation

Upgrade to the fixed version using your package manager.

Maven
Update org.springframework.security.oauth:spring-security-oauth2 to 2.1.2 or later
<!-- Update pom.xml dependency version to 2.1.2 for org.springframework.security.oauth:spring-security-oauth2 -->
Maven
Update org.springframework.security.oauth:spring-security-oauth2 to 2.2.2 or later
<!-- Update pom.xml dependency version to 2.2.2 for org.springframework.security.oauth:spring-security-oauth2 -->
Maven
Update org.springframework.security.oauth:spring-security-oauth2 to 2.3.3 or later
<!-- Update pom.xml dependency version to 2.3.3 for org.springframework.security.oauth:spring-security-oauth2 -->
Maven
Update org.springframework.security.oauth:spring-security-oauth2 to 2.0.15 or later
<!-- Update pom.xml dependency version to 2.0.15 for org.springframework.security.oauth:spring-security-oauth2 -->

After upgrading, scan your dependencies again to confirm the vulnerability is resolved.

Affected Packages (5)

Affects 1 ecosystem: Maven (1).

PackageFixed In
org.springframework.security.oauth:spring-security-oauth2 Maven · Affected: 2.1.0.RELEASE, 2.1.1.RELEASE2.1.2
org.springframework.security.oauth:spring-security-oauth2 Maven · Affected: 2.2.0.RELEASE, 2.2.1.RELEASE2.2.2
org.springframework.security.oauth:spring-security-oauth2 Maven · Affected: 1.0.0.RELEASE, 1.0.1.RELEASE, 1.0.2.RELEASE, 1.0.3.RELEASE (+2 more)Range-based data available
org.springframework.security.oauth:spring-security-oauth2 Maven · Affected: 2.3.0.RELEASE, 2.3.1.RELEASE, 2.3.2.RELEASE2.3.3
org.springframework.security.oauth:spring-security-oauth2 Maven · Affected: 2.0.0.RELEASE, 2.0.1.RELEASE, 2.0.10.RELEASE, 2.0.11.RELEASE (+11 more)2.0.15

Vulnerability Classification

Common Weakness Enumeration (CWE) identifiers for this vulnerability type.

CVSS Score Breakdown

What the CVSS (Common Vulnerability Scoring System) 9.8 score means for each attack dimension.

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Frequently Asked Questions

What is CVE-2018-1260?
Spring Security OAuth vulnerable to remote code execution (RCE). This vulnerability has been assigned a severity rating of CRITICAL (CVSS score: 9.8/10).
How do I check if my project is affected by CVE-2018-1260?
CVE-2018-1260 affects org.springframework.security.oauth:spring-security-oauth2. It has a 10.6% probability of exploitation within 30 days (EPSS score). Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2018-1260 and 200,000+ other known vulnerabilities.

Severity & Exploitability

CVSS Score
9.8

Maximum impact if exploited, often with little effort or access required.

EPSS Score (30-day exploit probability)
10.62%
EPSS percentile: 96.5

This places it in the top 5% of EPSS-scored vulnerabilities — 96.5% of tracked vulnerabilities score at or below it, so it is far more likely to be exploited than nearly all other tracked vulnerabilities.

Also Known As

GHSA-rrpm-pj7p-7j9q

Related CVEs

Check your own dependencies

Free, with no signup for up to 10 packages.

Check my pom.xml