Every CVE Search/ Get API key

CVE-2016-4977

Spring Security OAuth vulnerable to remote code execution (RCE) via specially crafted request using whitelabel views

8.8 HighPublic exploitFix available

When processing authorization requests using the whitelabel views in Spring Security OAuth 2.0.0 to 2.0.9 and 1.0.0 to 1.0.5, the response_type parameter value was executed as Spring SpEL which enabled a malicious user to trigger remote code execution via the crafting of the value for response_type.

Attack profile

How easy it is to exploit

Attack vector
Network
Complexity
Low
Privileges needed
Low
User interaction
None

What an attacker can affect

Confidentiality
High
Integrity
High
Availability
High

Exploit likelihood

79.2%Up 73.7 points since Feb 4, 2022
90%50%10%1%

What each source reports

NVD Score used 8.8

When processing authorization requests using the whitelabel views in Spring Security OAuth 2.0.0 to 2.0.9 and 1.0.0 to 1.0.5, the response_type parameter value was executed as Spring SpEL which enabled a malicious user to trigger remote code execution via the crafting of the value for response_type.

Record
CVE-2016-4977
CVSS 3.0
8.8 HighCVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
CVSS 2.0
6.5 MediumAV:N/AC:L/Au:S/C:P/I:P/A:P
Weakness
CWE-19
Updated
2026-11-02
CVE List No score

When processing authorization requests using the whitelabel views in Spring Security OAuth 2.0.0 to 2.0.9 and 1.0.0 to 1.0.5, the response_type parameter value was executed as Spring SpEL which enabled a malicious user to trigger remote code execution via the crafting of the value for response_type.

Record
CVE-2016-4977
Updated
2026-11-02
EUVDEUVD-2018-0540 No score

When processing authorization requests using the whitelabel views in Spring Security OAuth 2.0.0 to 2.0.9 and 1.0.0 to 1.0.5, the response_type parameter value was executed as Spring SpEL which enabled a malicious user to trigger remote code execution via the crafting of the value for response_type.

Record
EUVD-2018-0540
Updated
2026-11-03
GitHub AdvisoriesGHSA-7q9c-h23x-65fq 8.8

Spring Security OAuth vulnerable to remote code execution (RCE) via specially crafted request using whitelabel views

When processing authorization requests using the whitelabel views in Spring Security OAuth 2.0.0 to 2.0.9 and 1.0.0 to 1.0.5, the response_type parameter value was executed as Spring SpEL which enabled a malicious user to trigger remote code execution via the crafting of the value for response_type.

Record
GHSA-7q9c-h23x-65fq
CVSS 3.0
8.8 HighCVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Updated
2026-11-02
OSV 8.8

When processing authorization requests using the whitelabel views in Spring Security OAuth 2.0.0 to 2.0.9 and 1.0.0 to 1.0.5, the response_type parameter value was executed as Spring SpEL which enabled a malicious user to trigger remote code execution via the crafting of the value for response_type.

Record
CVE-2016-4977
CVSS 3.0
8.8 HighCVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Updated
2026-11-02
OSVGHSA-7q9c-h23x-65fq 8.8

Spring Security OAuth vulnerable to remote code execution (RCE) via specially crafted request using whitelabel views

When processing authorization requests using the whitelabel views in Spring Security OAuth 2.0.0 to 2.0.9 and 1.0.0 to 1.0.5, the response_type parameter value was executed as Spring SpEL which enabled a malicious user to trigger remote code execution via the crafting of the value for response_type.

Record
GHSA-7q9c-h23x-65fq
CVSS 3.0
8.8 HighCVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Updated
2026-11-02

Affected products

Affected packages

Affected packages
PackageAffectedFixed
org.springframework.security.oauth:spring-security-oauth2
Maven
2.0.0 up to 2.0.10
2.0.10
org.springframework.security.oauth:spring-security-oauth2
Maven
1.0.0 up to 1.0.5
1.0.5
org.springframework.security.oauth:spring-security-oauth2
Maven
2.0.0 up to 2.0.10, plus listed versions
2.0.0.RELEASE2.0.1.RELEASE2.0.2.RELEASE2.0.3.RELEASE2.0.4.RELEASE
Show 5 moreShow less
2.0.5.RELEASE2.0.6.RELEASE2.0.7.RELEASE2.0.8.RELEASE2.0.9.RELEASE
2.0.10
org.springframework.security.oauth:spring-security-oauth2
Maven
1.0.0 up to 1.0.5, plus listed versions
1.0.0.RELEASE1.0.1.RELEASE1.0.2.RELEASE1.0.3.RELEASE1.0.4.RELEASE
1.0.5

Public exploits

Links only. Every CVE stores no exploit code.

Public exploits
SourceLinkDate
NucleiSpring Security OAuth2 Remote Command Execution
PoC in GitHubCyberCTF/vulhub-spring-cve-2016-49772026-10-08
PoC in GitHubN0b1e6/CVE-2016-4977-POC2020-02-17
PoC in GitHubtpt11fb/SpringVulScan2022-06-19

History

History
RecordedChangedSources
aliases, productsEUVD
first indexedCVE List, GitHub Advisories, Nuclei, NVD, OSV, PoC in GitHub

Dates are when Every CVE recorded each change. Upstream dates may differ.

In short

CVE-2016-4977 is a high vulnerability (CVSS 8.8) in Pivotal Spring Security Oauth, published May 25, 2017. Public exploit code exists. EPSS puts the chance of exploitation in the next 30 days at 79.2%, the 99th percentile. Fixed in org.springframework.security.oauth:spring-security-oauth2 2.0.10.

References

Show 6 moreShow less
MoveEnter Open