字号·· | 护眼
漏洞档案 · 严重

Apache Struts 2 OGNL 表达式注入(CVE-2012-0391)

CVE-2012-0391 别名:GHSA-4WRR-9H5R-M92W
CVSS 9.8 / 3.1 EPSS 76.5% CISA KEV 在野利用 公开 PoC · 2
综合风险90/ 100
CVSS9.8严重
EPSS76.5%30 天利用概率
机构收录时间2012-01-08更新 2026-12-03

研判简报

概述

Apache Struts 2 的 ExceptionDelegator 组件在属性数据类型不匹配的异常处理过程中,会把参数值解释为 OGNL 表达式,远程攻击者可通过构造参数执行任意 Java 代码。该漏洞属 CWE-94(代码注入)与 CWE-20(输入验证不当),攻击面为面向公众的 Web 应用,成功利用可导致完全控制。使用受影响 Struts 2 版本对外提供服务的组织应优先关注。

严重性

CVSS 3.1 评分 9.8(critical),综合风险分 91.14/100;EPSS 30 天利用概率 74.7%(百分位 99.5%,日期 2026-11-23)。攻击面为网络可达的 Struts 2 应用端点,无需本地访问。

利用状态

CISA KEV 已收录(收录日期 2022-01-21);Exploit-DB 等公开渠道存在 2 条 PoC;CISA SSVC 判定 automatable=yes、exploitation=active、technical_impact=total。勒索软件关联情况材料未给出。核查日期 2026-11-24。

受影响产品

官方记录标题称 Apache Struts before 2.2.3.1 受影响,具体版本区间材料未给出;涉及组件为 ExceptionDelegator;部署形态材料未给出(仅可推断为对外提供服务的 Struts 2 Web 应用)。

修复版本

参考链接指向官方 version-notes-2311 与 S2-008 公告,但材料未给出明确的修复版本号或补丁细节,故写「材料未给出」。

缓解措施

KEV 要求动作仅为「Apply updates per vendor instructions.」(期限 2022-07-21)。在无法立即修复时,材料未给出具体替代缓解动作;可参考官方 S2-008 公告自行评估,但材料未给出。

响应步骤

  1. 盘点对外暴露的 Struts 2 应用,确认是否落在受影响范围(版本区间材料未给出,需以官方 version-notes-2311 / S2-008 为准)。
  2. 按厂商说明升级至修复版本(具体版本号材料未给出)。
  3. 检索 Web 访问日志中异常参数与类型不匹配异常触发的可疑请求,排查 OGNL 表达式注入痕迹。
  4. 对无法下线或升级的实例,限制网络暴露面并加强监控(材料未给出具体规则)。
  5. 复核 KEV 期限(2022-07-21)执行状态,记录处置结果。

参考来源

  1. https://nvd.nist.gov/vuln/detail/CVE-2012-0391kev
  2. https://www.exploit-db.com/exploits/18984exploit,exploitdb
  3. https://www.exploit-db.com/exploits/18329exploit,exploitdb
  4. http://www.exploit-db.com/exploits/18329exploit,x_refsource_EXPLOIT-DB,exploit,x_refsource_EXPLOIT-DB,x_transferred
  5. http://archives.neohapsis.com/archives/bugtraq/2012-01/0031.htmlmailing-list,x_refsource_BUGTRAQ,mailing-list,x_refsource_BUGTRAQ,x_transferred,
  6. http://struts.apache.org/2.x/docs/version-notes-2311.htmlx_refsource_CONFIRM,x_refsource_CONFIRM,x_transferred,Vendor Advisory
  7. http://struts.apache.org/2.x/docs/s2-008.htmlx_refsource_CONFIRM,x_refsource_CONFIRM,x_transferred,Vendor Advisory
  8. https://www.sec-consult.com/files/20120104-0_Apache_Struts2_Multiple_Critical_Vulnerabilities.txtx_refsource_MISC,x_refsource_MISC,x_transferred,Broken Link,Exploit
  9. https://issues.apache.org/jira/browse/WW-3668x_refsource_CONFIRM,x_refsource_CONFIRM,x_transferred,Vendor Advisory
  10. http://secunia.com/advisories/47393third-party-advisory,x_refsource_SECUNIA,third-party-advisory,x_refsource_SECUNI
  11. https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2012-0391government-resource,US Government Resource
  12. https://github.com/rapid7/metasploit-framework/tree/master/modules/exploit_multi/http/struts_code_exec_exception_delegatorexploit,metasploit
  13. https://www.fortiguard.com/encyclopedia/ips/30956kev
  14. https://euvd.enisa.europa.eu/enisa/EUVD-2022-2464kev
  15. https://www.cisa.gov/known-exploited-vulnerabilities-catalogkev
  16. https://vulncheck.com/kev/cve-2012-0391advisory,vulncheck_kev