{"id":"CVE-2016-4977","aliases":["EUVD-2018-0540","GHSA-7q9c-h23x-65fq"],"status":"published","title":"Spring Security OAuth vulnerable to remote code execution (RCE) via specially crafted request using whitelabel views","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":{"version":"3.0","score":8.8,"vector":"CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","level":"high","assessor":"primary","from":"nvd"},"epss":{"day":"2026-11-08","score":0.79176,"percentile":0.99602,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":true,"fix_available":true},"cwes":["CWE-19"],"published":"2017-05-25T17:00:00Z","modified":"2026-10-24T10:30:56Z","exploits":[{"source":"nuclei","id":"CVE-2016-4977","title":"Spring Security OAuth2 Remote Command Execution","type":"detection template","url":"https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2016/CVE-2016-4977.yaml"},{"source":"pocgithub","id":"CyberCTF/vulhub-spring-cve-2016-4977","title":"CyberCTF/vulhub-spring-cve-2016-4977","date":"2026-10-08","url":"https://github.com/CyberCTF/vulhub-spring-cve-2016-4977"},{"source":"pocgithub","id":"N0b1e6/CVE-2016-4977-POC","title":"N0b1e6/CVE-2016-4977-POC","date":"2020-02-17","url":"https://github.com/N0b1e6/CVE-2016-4977-POC"},{"source":"pocgithub","id":"tpt11fb/SpringVulScan","title":"tpt11fb/SpringVulScan","date":"2022-06-19","url":"https://github.com/tpt11fb/SpringVulScan"}],"fixes":[{"ecosystem":"Maven","package":"org.springframework.security.oauth:spring-security-oauth2","fixed_in":["2.0.10","1.0.5"],"sources":["ghsa","osv"]}],"affected":[{"source":"ghsa","ecosystem":"Maven","package":"org.springframework.security.oauth:spring-security-oauth2","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"2.0.0"},{"fixed":"2.0.10"}]}]},{"source":"ghsa","ecosystem":"Maven","package":"org.springframework.security.oauth:spring-security-oauth2","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"1.0.0"},{"fixed":"1.0.5"}]}]},{"source":"osv","ecosystem":"Maven","package":"org.springframework.security.oauth:spring-security-oauth2","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"2.0.0"},{"fixed":"2.0.10"}]}],"versions":["2.0.0.RELEASE","2.0.1.RELEASE","2.0.2.RELEASE","2.0.3.RELEASE","2.0.4.RELEASE","2.0.5.RELEASE","2.0.6.RELEASE","2.0.7.RELEASE","2.0.8.RELEASE","2.0.9.RELEASE"]},{"source":"osv","ecosystem":"Maven","package":"org.springframework.security.oauth:spring-security-oauth2","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"1.0.0"},{"fixed":"1.0.5"}]}],"versions":["1.0.0.RELEASE","1.0.1.RELEASE","1.0.2.RELEASE","1.0.3.RELEASE","1.0.4.RELEASE"]}],"products":[{"vendor":"pivotal","product":"spring security oauth"},{"vendor":"pivotal","product":"spring_security_oauth"},{"vendor":"spring","product":"spring security oauth"}],"references":[{"url":"https://pivotal.io/security/cve-2016-4977","tags":["x_refsource_CONFIRM","x_transferred","Vendor Advisory","advisory","web"]},{"url":"https://lists.apache.org/thread.html/37d7e820fc65a768de3e096e98382d5529a52a039f093e59357d0bc0%40%3Cdev.fineract.apache.org%3E","tags":["mailing-list","x_refsource_MLIST","x_transferred","web"]},{"url":"https://lists.apache.org/thread.html/0841d849c23418c473ccb9183cbf41a317cb0476e44be48022ce3488%40%3Cdev.fineract.apache.org%3E","tags":["mailing-list","x_refsource_MLIST","x_transferred","web"]},{"url":"http://www.openwall.com/lists/oss-security/2019/10/16/1","tags":["mailing-list","x_refsource_MLIST","x_transferred","web"]},{"url":"https://lists.apache.org/thread.html/5e6dd946635bbcc9e1f2591599ad0fab54f2dc3714196af3b17893f2%40%3Cannounce.apache.org%3E","tags":["mailing-list","x_refsource_MLIST","x_transferred","web"]},{"url":"https://lists.apache.org/thread.html/96c017115069408cec5e82ce1e6293facab398011f6db7e1befbe274%40%3Cdev.fineract.apache.org%3E","tags":["mailing-list","x_refsource_MLIST","x_transferred","web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2016-4977","tags":["advisory"]},{"url":"https://github.com/advisories/GHSA-7q9c-h23x-65fq","tags":["advisory"]},{"url":"https://lists.apache.org/thread.html/0841d849c23418c473ccb9183cbf41a317cb0476e44be48022ce3488@%3Cdev.fineract.apache.org%3E","tags":["web"]},{"url":"https://lists.apache.org/thread.html/37d7e820fc65a768de3e096e98382d5529a52a039f093e59357d0bc0@%3Cdev.fineract.apache.org%3E","tags":["web"]},{"url":"https://lists.apache.org/thread.html/5e6dd946635bbcc9e1f2591599ad0fab54f2dc3714196af3b17893f2@%3Cannounce.apache.org%3E","tags":["web"]},{"url":"https://lists.apache.org/thread.html/96c017115069408cec5e82ce1e6293facab398011f6db7e1befbe274@%3Cdev.fineract.apache.org%3E","tags":["web"]}],"sources":{"cve":[{"id":"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.","status":"published","published":"2017-05-25T17:00:00Z","modified":"2024-08-06T00:46:39.945Z","updated_at":"2026-11-02T14:33:35.149563Z"}],"euvd":[{"id":"EUVD-2018-0540","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.","status":"published","published":"2017-05-25T17:00:00Z","modified":"2024-08-06T00:46:39Z","updated_at":"2026-11-03T02:22:44.489595Z"}],"ghsa":[{"id":"GHSA-7q9c-h23x-65fq","title":"Spring Security OAuth vulnerable to remote code execution (RCE) via specially crafted request using whitelabel views","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.","status":"published","published":"2018-10-18T18:06:22Z","modified":"2024-05-14T17:39:04Z","cvss":[{"version":"3.0","score":8.8,"vector":"CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","level":"high"}],"updated_at":"2026-11-02T14:37:48.848211Z"}],"nvd":[{"id":"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.","status":"published","published":"2017-05-25T17:29:00.707Z","modified":"2026-06-17T00:48:32.683Z","cvss":[{"version":"3.0","score":8.8,"vector":"CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","level":"high","assessor":"primary"},{"version":"2.0","score":6.5,"vector":"AV:N/AC:L/Au:S/C:P/I:P/A:P","level":"medium","assessor":"primary"}],"cwes":["CWE-19"],"updated_at":"2026-11-02T14:03:38.290327Z"}],"osv":[{"id":"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.","status":"published","published":"2017-05-25T17:29:00.707Z","modified":"2026-10-24T10:30:56.122227711Z","cvss":[{"version":"3.0","score":8.8,"vector":"CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","level":"high"}],"updated_at":"2026-11-02T15:44:02.454775Z"},{"id":"GHSA-7q9c-h23x-65fq","title":"Spring Security OAuth vulnerable to remote code execution (RCE) via specially crafted request using whitelabel views","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.","status":"published","published":"2018-10-18T18:06:22Z","modified":"2024-11-28T05:41:37.53763Z","cvss":[{"version":"3.0","score":8.8,"vector":"CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","level":"high"}],"updated_at":"2026-11-02T15:46:41.349637Z"}]}}
