CVE-2016-4977
Description
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.
Severity
HIGH
CVSS v3
8.8
CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H · source nvd
Exploit chance (EPSS)
80.016%
chance of exploitation in the next 30 days
higher than 99.6% of scored CVEs · 2026-11-17
CISA KEV
Not listed
Public exploit code
Yes
Exploit references (NVD and CNA): 0
Metasploit modules: 0
Nuclei templates: 1
Weakness
Timeline
- 2017-05-25Published by the CNA17:00 UTC
- 2018-10-18GitHub advisory published (GHSA-7q9c-h23x-65fq)511 days after publication
Exploit and advisory records
Nuclei templates:
- CVE-2016-4977: Spring Security OAuth2 Remote Command Execution
GitHub advisory GHSA-7q9c-h23x-65fq, affected packages:
| Package | Vulnerable versions | Fixed in |
|---|---|---|
| Maven org.springframework.security.oauth:spring-security-oauth2 | from 1.0.0 before 1.0.5 | 1.0.5 |
| Maven org.springframework.security.oauth:spring-security-oauth2 | from 2.0.0 before 2.0.10 | 2.0.10 |
Affected products
Products listed as vulnerable. Upgrade to the version under "Fixed in", or a later one.
| Product | Vulnerable versions | Fixed in |
|---|---|---|
| pivotal spring_security_oauth | 1.0.0no fix listed1.0.1no fix listed1.0.2no fix listed1.0.3no fix listed1.0.4no fix listed(+11 more) | not listednot listednot listednot listednot listed |
References
- https://pivotal.io/security/cve-2016-4977
- http://www.openwall.com/lists/oss-security/2019/10/16/1
- https://lists.apache.org/thread.html/0841d849c23418c473ccb9183cbf41a317cb0476e44be48022ce3488%40%3Cdev.fineract.apache.org%3E
- https://lists.apache.org/thread.html/37d7e820fc65a768de3e096e98382d5529a52a039f093e59357d0bc0%40%3Cdev.fineract.apache.org%3E
- https://lists.apache.org/thread.html/5e6dd946635bbcc9e1f2591599ad0fab54f2dc3714196af3b17893f2%40%3Cannounce.apache.org%3E
- https://lists.apache.org/thread.html/96c017115069408cec5e82ce1e6293facab398011f6db7e1befbe274%40%3Cdev.fineract.apache.org%3E
Get more CVE data from the API.
curl 'https://api.contrastcyber.com/cve_lookup/CVE-2016-4977'curl 'https://api.contrastcyber.com/cve_risk_score/CVE-2016-4977'curl 'https://api.contrastcyber.com/cve_exploit/CVE-2016-4977'curl 'https://api.contrastcyber.com/cve_products/CVE-2016-4977'
Sources
- Vulnerability data from the National Vulnerability Database (NIST) and the CVE Program. CVE records: Copyright © 1999-2026, The MITRE Corporation, used under the CVE Program Terms of Use. CVE® is a registered trademark of The MITRE Corporation.
- CWE definitions: Copyright © 2006-2026, The MITRE Corporation, used under the CWE Terms of Use. CWE is a trademark of The MITRE Corporation.
- OWASP Top 10 categories by the OWASP Foundation (CC BY 3.0).
- EPSS scores by FIRST.org EPSS, used with attribution.
- KEV catalog and SSVC decisions by CISA.
- Advisory data from the GitHub Advisory Database through OSV.dev (CC BY 4.0).
- Exploit metadata from the Exploit Database (GPL-2.0-only, metadata only).
- Nuclei template names from nuclei-templates (MIT).