cve.bz

CVE-2016-4977 pivotal spring security oauth: Data Processing Errors

8.8 highEPSS 80%Fix available

High (8.8) in pivotal spring security oauth. EPSS 80% estimated probability of exploitation activity in the next 30 days. Fixed in org.springframework.security.oauth:spring-security-oauth2 1.0.5, 2.0.10.

On this page
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

CVSS 3.0

8.8 high
CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
EPSS
80% (unchanged from 80% a week ago; 79% 30 days ago) estimated probability of exploitation activity in the next 30 days; 100th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CWE
CWE-19 Data Processing Errors
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2016-4977 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2016-4977?via=ask-ai-copy and https://cve.bz/cve/CVE-2016-4977?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2016-4977 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
pivotal:spring_security_oauth1.0.0
pivotal:spring_security_oauth1.0.1
pivotal:spring_security_oauth1.0.2
pivotal:spring_security_oauth1.0.3
pivotal:spring_security_oauth1.0.4
pivotal:spring_security_oauth1.0.5
pivotal:spring_security_oauth2.0.0
pivotal:spring_security_oauth2.0.1
pivotal:spring_security_oauth2.0.2
pivotal:spring_security_oauth2.0.3
pivotal:spring_security_oauth2.0.4
pivotal:spring_security_oauth2.0.5
pivotal:spring_security_oauth2.0.6
pivotal:spring_security_oauth2.0.7
pivotal:spring_security_oauth2.0.8
pivotal:spring_security_oauth2.0.9

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-7q9c-h23x-65fqMavenorg.springframework.security.oauth:spring-security-oauth2>=2.0.0 <2.0.102.0.10
GHSA-7q9c-h23x-65fqMavenorg.springframework.security.oauth:spring-security-oauth2>=1.0.0 <1.0.51.0.5

GitHub PoC

Repositories on GitHub named after this CVE or listed for it by the PoC-in-GitHub index. For those marked Harbor Check: matches CVE, Flawharbor read the code and found it implements this CVE's exploitation technique: read, not run, and its dependencies only checked for warning signs, so a pointer and no guarantee. The rest are unverified: some hold a working proof of concept, some nothing useful, and some malware made to look like one. Read the code before you run any of it. How Harbor Check reads them, and what it found.

  • CyberCTF/vulhub-spring-cve-2016-4977 Harbor Check: matches CVE 0 stars, Shell, created
    Vulhub spring/CVE-2016-4977: Spring Security OAuth2 Whitelabel SpEL RCE (CVE-2016-4977), run with Isoloom

Detection rules

Ways to detect this CVE, not exploit code: the nuclei template that checks a system for it, and the Suricata and Snort rules that name it. A rule set may ship a rule turned off, so check yours by its sid.

References

Check your stackJSON