{"id":"CVE-2016-4977","published":"2017-05-25T17:00:00Z","modified":"2024-08-06T00:46:39Z","title":"When processing authorization requests using the whitelabel views in Spring Security OAuth 2.0.0 to 2.0.9 and 1.0.0 to…","vendor":"Pivotal","product":"Spring Security OAuth","tier":"core","eol":null,"affectedVersions":[{"vendor":"Pivotal","product":"Spring Security OAuth","versions":["2.0.0 to 2.0.9","1.0.0 to 1.0.5"]}],"description":{"text":"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.","provenance":"source","from":"CVE.org"},"summary":{"text":"The flaw is in the whitelabel views of Pivotal's Spring Security OAuth component, where the response_type parameter of authorization requests is evaluated as a Spring SpEL expression instead of being treated as plain data.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-10-29T07:19:19Z"},"cvss":null,"epss":{"score":0.80016,"percentile":0.99624,"date":"2026-11-20","provenance":"source"},"kev":null,"vulncheckKev":{"dateAdded":"2024-08-14","exploitedFirstSeen":"2024-08-14","ransomware":false,"evidence":[{"url":"https://research.checkpoint.com/2024/server-side-template-injection-transforming-web-applications-from-assets-to-liabilities/","date":"2024-08-14"},{"url":"https://dashboard.shadowserver.org/statistics/honeypot/vulnerability/map/?day=2026-11-01&host_type=src&vulnerability=cve-2016-4977","date":"2026-11-01"},{"url":"https://dashboard.shadowserver.org/statistics/honeypot/vulnerability/map/?day=2026-11-05&host_type=src&vulnerability=cve-2016-4977","date":"2026-11-05"},{"url":"https://dashboard.shadowserver.org/statistics/honeypot/vulnerability/map/?day=2026-11-17&host_type=src&vulnerability=cve-2016-4977","date":"2026-11-17"},{"url":"https://dashboard.shadowserver.org/statistics/honeypot/vulnerability/map/?day=2026-11-19&host_type=src&vulnerability=cve-2016-4977","date":"2026-11-19"}],"evidenceTotal":5,"provenance":"source"},"exploited":true,"otx":{"pulseCount":0,"pulses":[],"provenance":"machine"},"cwes":[],"references":[{"url":"https://pivotal.io/security/cve-2016-4977","tags":["x_refsource_CONFIRM"]},{"url":"https://lists.apache.org/thread.html/37d7e820fc65a768de3e096e98382d5529a52a039f093e59357d0bc0%40%3Cdev.fineract.apache.org%3E","tags":["mailing-list","x_refsource_MLIST"]},{"url":"https://lists.apache.org/thread.html/0841d849c23418c473ccb9183cbf41a317cb0476e44be48022ce3488%40%3Cdev.fineract.apache.org%3E","tags":["mailing-list","x_refsource_MLIST"]},{"url":"http://www.openwall.com/lists/oss-security/2019/10/16/1","tags":["mailing-list","x_refsource_MLIST"]},{"url":"https://lists.apache.org/thread.html/5e6dd946635bbcc9e1f2591599ad0fab54f2dc3714196af3b17893f2%40%3Cannounce.apache.org%3E","tags":["mailing-list","x_refsource_MLIST"]},{"url":"https://lists.apache.org/thread.html/96c017115069408cec5e82ce1e6293facab398011f6db7e1befbe274%40%3Cdev.fineract.apache.org%3E","tags":["mailing-list","x_refsource_MLIST"]}],"techniques":[],"reports":[],"affected":[{"ecosystem":"Maven","package":"org.springframework.security.oauth:spring-security-oauth2","vulnerableRanges":[">=2.0.0, <2.0.10",">=1.0.0, <1.0.5"],"patched":["2.0.10","1.0.5"],"from":["GHSA-7q9c-h23x-65fq"],"provenance":"source"}],"advisories":[{"id":"GHSA-7q9c-h23x-65fq","url":"https://github.com/advisories/GHSA-7q9c-h23x-65fq","severity":"HIGH","ecosystem":"Maven","package":"org.springframework.security.oauth:spring-security-oauth2","vulnerableRanges":[">=2.0.0, <2.0.10"],"patched":["2.0.10"],"provenance":"source","from":"GHSA"},{"id":"GHSA-7q9c-h23x-65fq","url":"https://github.com/advisories/GHSA-7q9c-h23x-65fq","severity":"HIGH","ecosystem":"Maven","package":"org.springframework.security.oauth:spring-security-oauth2","vulnerableRanges":[">=1.0.0, <1.0.5"],"patched":["1.0.5"],"provenance":"source","from":"GHSA"}],"euvd":{"id":"EUVD-2018-0540","url":"https://euvd.enisa.europa.eu/vulnerability/EUVD-2018-0540","exploited":false,"exploitedSince":null,"provenance":"source"},"exploits":[],"exploitSources":{"pocGithub":{"count":2,"skipped":1,"earliest":"2022-06-19","earliestUrl":"https://github.com/tpt11fb/SpringVulScan","repos":[{"name":"tpt11fb/SpringVulScan","url":"https://github.com/tpt11fb/SpringVulScan","stars":153,"created":"2022-06-19"},{"name":"CyberCTF/vulhub-spring-cve-2016-4977","url":"https://github.com/CyberCTF/vulhub-spring-cve-2016-4977","stars":0,"created":"2026-10-08"}]},"nuclei":[{"id":"CVE-2016-4977","name":"Spring Security OAuth2 Remote Command Execution","severity":"high","path":"http/cves/2016/CVE-2016-4977.yaml","url":"https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2016/CVE-2016-4977.yaml"}],"first":{"date":"2022-06-19","source":"PoC-in-GitHub","url":"https://github.com/tpt11fb/SpringVulScan"},"provenance":"source"},"exploitRefs":[],"flow":[],"timeline":[{"date":"2017-05-25","kind":"published","label":"Published (CVE.org)","url":"https://www.cve.org/CVERecord?id=CVE-2016-4977","provenance":"source"},{"date":"2022-06-19","kind":"exploit-public","label":"First public exploit: PoC-in-GitHub","url":"https://github.com/tpt11fb/SpringVulScan","provenance":"source"},{"date":"2024-08-14","kind":"exploited-reported","label":"Exploitation first reported (VulnCheck KEV evidence)","url":"https://research.checkpoint.com/2024/server-side-template-injection-transforming-web-applications-from-assets-to-liabilities/","provenance":"source"}],"speed":{"daysToPublicExploit":1851,"firstExploitFrom":"PoC-in-GitHub","daysToKev":null},"priority":{"score":59.9,"factors":[{"name":"In a KEV catalog","points":35.0,"detail":"listed in VulnCheck KEV"},{"name":"Recent KEV listing","points":0.0,"detail":"added 828 days ago"},{"name":"Known ransomware use","points":0.0,"detail":"not known"},{"name":"EPSS percentile","points":19.92,"detail":"percentile 0.9962"},{"name":"Named in threat reports","points":0.0,"detail":"0 reports"},{"name":"Public exploit code","points":5.0,"detail":"2 PoC-in-GitHub repos; 1 nuclei template"},{"name":"Mentioned in OTX pulses","points":0.0,"detail":"0 pulses"},{"name":"CVSS severity","points":0.0,"detail":"no CVSS"},{"name":"End-of-life product","points":0.0,"detail":"supported or unknown"}]},"lineage":{"packageHistory":[{"cve":"CVE-2016-4977","published":"2017-05-25","fixed":"2.0.10","kev":false},{"cve":"CVE-2018-1260","published":"2018-05-11","fixed":"2.3.3","kev":false,"link":{"from":"CVE-2016-4977","to":"CVE-2018-1260","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Maven:org.springframework.security.oauth:spring-security-oauth2","fromFixed":"2.0.10","toFixed":"2.0.15","daysApart":351}]}},{"cve":"CVE-2018-15758","published":"2018-10-18","fixed":"2.3.4.RELEASE","kev":false},{"cve":"CVE-2019-3778","published":"2019-03-07","fixed":"2.3.5.RELEASE","kev":false}],"package":"Maven:org.springframework.security.oauth:spring-security-oauth2"}}