CVE-2018-1260 — Vulnerability in spring-security-oauth2 — CVE Details
Spring Security OAuth vulnerable to remote code execution (RCE)
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.
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.
<!-- Update pom.xml dependency version to 2.1.2 for org.springframework.security.oauth:spring-security-oauth2 -->
<!-- Update pom.xml dependency version to 2.2.2 for org.springframework.security.oauth:spring-security-oauth2 -->
<!-- Update pom.xml dependency version to 2.3.3 for org.springframework.security.oauth:spring-security-oauth2 -->
<!-- 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).
| Package | Fixed In |
|---|---|
| org.springframework.security.oauth:spring-security-oauth2 Maven · Affected: 2.1.0.RELEASE, 2.1.1.RELEASE | 2.1.2 |
| org.springframework.security.oauth:spring-security-oauth2 Maven · Affected: 2.2.0.RELEASE, 2.2.1.RELEASE | 2.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.RELEASE | 2.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.
- CWE-94Code InjectionMITRE
CVSS Score Breakdown
What the CVSS (Common Vulnerability Scoring System) 9.8 score means for each attack dimension.
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
References
- https://nvd.nist.gov/vuln/detail/CVE-2018-1260ADVISORY
- https://access.redhat.com/errata/RHSA-2018:1809WEB
- https://access.redhat.com/errata/RHSA-2018:2939WEB
- https://github.com/advisories/GHSA-rrpm-pj7p-7j9qADVISORY
- https://github.com/spring-attic/spring-security-oauthPACKAGE
- https://pivotal.io/security/cve-2018-1260WEB
- https://web.archive.org/web/20200227123539/http://www.securityfocus.com/bid/104158WEB
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
Maximum impact if exploited, often with little effort or access required.
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
Related CVEs
- CVE-2026-107726CRITICAL
Hazelcast allows arbitrary member memory access by low-privileged client
- CVE-2026-107282CRITICAL
AsyncHttpClient: Replay to a different host sends the original host request and credentials to the new host