CVE-2016-4977
Spring Security OAuth vulnerable to remote code execution (RCE) via specially crafted request using whitelabel views
Also known as GHSA-7q9c-h23x-65fq
Mitigation
- Upgrade org.springframework.security.oauth:spring-security-oauth2 to one of 2.0.10, 1.0.5 (or later in the same release line).
Who should check
- Projects that depend on Maven package org.springframework.security.oauth:spring-security-oauth2 (>= 2.0.0, < 2.0.10)
- Anyone running Pivotal Spring Security OAuth 2.0.0 to 2.0.9; 1.0.0 to 1.0.5
Vulnerability facts
- Affected
- org.springframework.security.oauth:spring-security-oauth2 >= 2.0.0, < 2.0.10
- Fixed in
- 2.0.10, 1.0.5
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Remote, login needed
- CVSS
- 8.8 (v3.0, NVD)CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HOpen in CVSS calculator
Show all 8 CVSS metrics
- Attack vector: Network
- Attack complexity: Low
- Privileges required: Low
- User interaction: None
- Scope: Unchanged
- Confidentiality impact: High
- Integrity impact: High
- Availability impact: High
- EPSS
- 80.02% chance of exploitation in 30 days (percentile 100, 2026-11-26)
- CWE
- CWE-19
- Modified
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.
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| Maven org.springframework.security.oauth:spring-security-oauth2 | >= 2.0.0, < 2.0.10 | 2.0.10, 1.0.5 | osv |
| Pivotal Spring Security OAuth | 2.0.0 to 2.0.9; 1.0.0 to 1.0.5 | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2016-4977. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2016-4977.md Affected: org.springframework.security.oauth:spring-security-oauth2 >= 2.0.0, < 2.0.10 Fixed in: 2.0.10, 1.0.5 Steps: 1. Search this machine and project for org.springframework.security.oauth:spring-security-oauth2 (Maven), Pivotal Spring Security OAuth: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
Vendor advisories
Other
- https://lists.apache.org/thread.html/37d7e820fc65a768de3e096e98382d5529a52a039f093e59357d0bc0%40%3Cdev.fineract.apache.org%3E
- https://lists.apache.org/thread.html/0841d849c23418c473ccb9183cbf41a317cb0476e44be48022ce3488%40%3Cdev.fineract.apache.org%3E
- http://www.openwall.com/lists/oss-security/2019/10/16/1
- 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
- https://lists.apache.org/thread.html/0841d849c23418c473ccb9183cbf41a317cb0476e44be48022ce3488@%3Cdev.fineract.apache.org%3E
- https://lists.apache.org/thread.html/37d7e820fc65a768de3e096e98382d5529a52a039f093e59357d0bc0@%3Cdev.fineract.apache.org%3E
- https://lists.apache.org/thread.html/5e6dd946635bbcc9e1f2591599ad0fab54f2dc3714196af3b17893f2@%3Cannounce.apache.org%3E
- https://lists.apache.org/thread.html/96c017115069408cec5e82ce1e6293facab398011f6db7e1befbe274@%3Cdev.fineract.apache.org%3E
FAQ
Is CVE-2016-4977 being exploited?
There is no confirmed exploitation: CVE-2016-4977 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 80.02% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2016-4977?
High: CVSS 8.8 (v3.0, scored by NVD). Remote, login needed.
Which versions are affected by CVE-2016-4977?
org.springframework.security.oauth:spring-security-oauth2 >= 2.0.0, < 2.0.10.
Is there a fix for CVE-2016-4977?
Yes. Fixed in 2.0.10, 1.0.5. Upgrade org.springframework.security.oauth:spring-security-oauth2 to one of 2.0.10, 1.0.5 (or later in the same release line).
How do I check if I'm affected by CVE-2016-4977?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.