patchminder
Weaponized · Nuclei CVE-2016-4977

Remote code executionin Pivotal Spring Security OAuth.

Published 25 May 2017 · Updated 6 Aug 2024 · Every fact sourced

JSONCite
Is it exploited?
Not confirmed

Weaponized: a Nuclei exploit is public.

Attack code is public
Severity
High 8.8
CVSSA severity score from 0 to 10. 9 and higher is critical. 3.0
Attack likelihood
Very high
EPSSA daily score from FIRST: the chance a hole is attacked in the next 30 days. 80.0% chance in 30 days · 4 Dec 2026
Fix
Available
Fixed in 1.0.5, 2.0.10
In plain words

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.

What to do now
  • Upgrade org.springframework.security.oauth:spring-security-oauth2 (Maven) to 1.0.5, 2.0.10 or later, whichever matches your release line.
Versions

Affected and fixed versions

Product or package
Affected
Fixed in
Source
Spring Security OAuth
2.0.0 to 2.0.9
Not confirmed
CVE record
Spring Security OAuth
1.0.0 to 1.0.5
Not confirmed
CVE record
org.springframework.security.oauth:spring-security-oauth2 (Maven)
2.0.0 to before 2.0.10
2.0.10
GitHub advisory
org.springframework.security.oauth:spring-security-oauth2 (Maven)
1.0.0 to before 1.0.5
1.0.5
GitHub advisory

From the CVE record, NVD and package advisories. When no source has versions yet, this table says "not confirmed" instead of guessing.

Timeline

From first report to first attacks

  1. 24 May 2016
    CVE ID reserved by dell.
  2. 25 May 2017
    Published in the CVE List.
  3. 17 Feb 2020
    First public proof of concept on GitHub.
  4. 6 Aug 2024
    CVE record last updated.
Exploit code

Attack code anyone can find

Exploit maturity: Weaponized (Nuclei).

Metasploit module
None known
Nuclei scan template
Available
Exploit-DB
None known
GitHub proof of concepts
3 repositories
GitHubno warning signs foundtpt11fb/SpringVulScan153 stars · created 19 Jun 2022burpsuite 的Spring漏洞扫描插件。SpringVulScan:支持检测:路由泄露|CVE-2022-22965|CVE-2022-22963|CVE-2022-22947|CVE-2016-4977
GitHubno warning signs foundN0b1e6/CVE-2016-4977-POC0 stars · created 17 Feb 2020
GitHubno warning signs foundCyberCTF/vulhub-spring-cve-2016-49770 stars · created 8 Oct 2026Vulhub spring/CVE-2016-4977: Spring Security OAuth2 Whitelabel SpEL RCE (CVE-2016-4977), run with Isoloom

Listed so defenders can judge how urgent this is and test systems they are authorised to test. Patchminder does not host exploit code; links open the source page. Labels for GitHub repositories come from their public details and are never a promise about the code. Run anything only in an isolated lab.

Related

Other Spring Security OAuth vulnerabilities

References
Cite this page

Patchminder. CVE-2016-4977: Remote code execution in Pivotal Spring Security OAuth. https://patchminder.com/cve/cve-2016-4977/ (accessed 5 December 2026).