字号·· | 护眼
漏洞档案 · 高危

Spring Security OAuth 远程代码执行(CVE-2016-4977)

CVE-2016-4977 别名:GHSA-7Q9C-H23X-65FQ
CVSS 8.8 / 3.0 EPSS 80.0% CISA KEV 在野利用 公开 PoC · 3 Nuclei 模板
综合风险85/ 100
CVSS8.8高危
EPSS80.0%30 天利用概率
机构收录时间2017-05-26更新 2026-12-03

研判简报

概述

Spring Security OAuth 在使用 whitelabel 视图处理授权请求时,会把 response_type 参数的值当作 Spring SpEL 表达式执行。攻击者通过构造该参数值即可触发远程代码执行(RCE),完全控制受影响系统。该漏洞影响 1.0.x 与 2.0.x 两个分支的多个版本,且已有公开利用代码与检测模板,仍在被活跃利用。使用受影响版本且启用 whitelabel 审批/错误页面的组织应优先关注。

严重性

CVSS 3.0 评分 8.8(high),综合风险分 85.2/100;EPSS 30 天利用概率 80.0%(百分位 99.6%,日期 2026-11-25)。攻击面为对外暴露的 OAuth 授权端点,利用门槛低且后果为 RCE。

利用状态

CISA KEV 已收录(2024-08-14),CISA SSVC 判定 exploitation=active;已有公开 Nuclei 检测模板(http/cves/2016/CVE-2016-4977.yaml)与 Exploit-DB/公开 PoC(1 条)。以上状态核查日期为 2026-11-25。勒索软件关联情况材料未给出。

受影响产品

pivotal:spring_security_oauth 1.0.0 至 1.0.5,以及 2.0.0 至 2.0.9。触发条件为使用 whitelabel 视图处理授权请求(审批与错误页面)。具体部署形态材料未给出。

修复版本

Nuclei 模板的修复说明称 2.0.x 用户应升级至 2.0.10 或更高版本;1.0.x 分支的修复版本材料未给出。官方公告(pivotal.io/security/cve-2016-4977)内容材料未给出,建议以官方记录为准复核。

缓解措施

1.0.x 用户不应在审批与错误页面使用 whitelabel 视图;2.0.x 用户同样应停用 whitelabel 视图,或升级至 2.0.10 及以上。KEV 要求按厂商说明应用修复或缓解措施,若均不可用则停止使用该产品(期限材料未给出)。

响应步骤

  1. 盘点资产中 Spring Security OAuth 的版本,确认是否落在 1.0.0–1.0.5 或 2.0.0–2.0.9 区间。
  2. 检查授权端点是否启用 whitelabel 审批/错误视图,优先关闭该视图。
  3. 对 2.0.x 升级至 2.0.10 或更高;1.0.x 按上述缓解措施处理并关注官方公告。
  4. 使用公开 Nuclei 模板对暴露的 /oauth/authorize 端点进行检测验证。
  5. 排查授权端点日志中可疑的 response_type 取值(含表达式特征),发现异常按入侵事件处置。
  6. 将本项纳入 KEV 驱动的修复优先级清单并跟踪处置状态。

参考来源

  1. https://research.checkpoint.com/2024/server-side-template-injection-transforming-web-applications-from-assets-to-liabilities/kev
  2. https://dashboard.shadowserver.org/statistics/honeypot/vulnerability/map/?host_type=src&vulnerability=cve-2016-4977kev
  3. https://vulncheck.com/xdb/0919eafe62d8exploit,vulncheck_xdb
  4. https://github.com/N0b1e6/CVE-2016-4977-POCpoc,github,exploit,poc_github
  5. https://vulncheck.com/kev/cve-2016-4977advisory,vulncheck_kev
  6. https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2016/CVE-2016-4977.yamlexploit,nuclei
  7. https://pivotal.io/security/cve-2016-4977x_refsource_CONFIRM,x_refsource_CONFIRM,x_transferred,Vendor Advisory,advisory,e
  8. https://lists.apache.org/thread.html/37d7e820fc65a768de3e096e98382d5529a52a039f093e59357d0bc0%40%3Cdev.fineract.apache.org%3Emailing-list,x_refsource_MLIST,mailing-list,x_refsource_MLIST,x_transferred,advi
  9. https://lists.apache.org/thread.html/0841d849c23418c473ccb9183cbf41a317cb0476e44be48022ce3488%40%3Cdev.fineract.apache.org%3Emailing-list,x_refsource_MLIST,mailing-list,x_refsource_MLIST,x_transferred,advi
  10. http://www.openwall.com/lists/oss-security/2019/10/16/1mailing-list,x_refsource_MLIST,mailing-list,x_refsource_MLIST,x_transferred,advi
  11. https://lists.apache.org/thread.html/5e6dd946635bbcc9e1f2591599ad0fab54f2dc3714196af3b17893f2%40%3Cannounce.apache.org%3Emailing-list,x_refsource_MLIST,mailing-list,x_refsource_MLIST,x_transferred,advi
  12. https://lists.apache.org/thread.html/96c017115069408cec5e82ce1e6293facab398011f6db7e1befbe274%40%3Cdev.fineract.apache.org%3Emailing-list,x_refsource_MLIST,mailing-list,x_refsource_MLIST,x_transferred,advi
  13. https://euvd.enisa.europa.eu/vulnerability/EUVD-2018-0540advisory,euvd
  14. https://github.com/tpt11fb/SpringVulScanexploit,poc_github
  15. https://github.com/CyberCTF/vulhub-spring-cve-2016-4977exploit,poc_github