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

PHPMailer 命令注入(CVE-2016-10033)

CVE-2016-10033 别名:GHSA-5F37-GXVH-23V6
CVSS 9.8 / 3.1 EPSS 99.7% CISA KEV 在野利用 公开 PoC · 15 Nuclei 模板
综合风险96/ 100
CVSS9.8严重
EPSS99.7%30 天利用概率
机构收录时间2016-12-31更新 2026-12-03

研判简报

概述

PHPMailer 的 isMail 传输在 mailSend 函数中未能净化用户可控输入,攻击者可向 mail 命令注入额外参数,进而在应用上下文中执行任意代码;失败利用也可能造成拒绝服务。该漏洞同时归入 CWE-88(参数注入)与 CWE-77(命令注入),面向公众的 Web 应用是主要攻击面。使用 PHPMailer 且走 mail()/sendmail 路径的站点(含 WordPress、Drupal 等集成场景)应优先关注。

严重性

CVSS 3.1 为 9.8(AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H),综合风险分 96.14/100;EPSS 30 天利用概率 99.7%(百分位 100.0%,日期 2026-11-23),攻击面为可通过网络触达的邮件发送入口。

利用状态

截至核查日期 2026-11-24:CISA KEV 已收录(2025-07-07),KEV 要求动作期限 2025-07-28;CISA SSVC 判定 automatable=yes、exploitation=active、technical_impact=total;已有公开 Nuclei 模板(http/cves/2016/CVE-2016-10033.yaml)及 Exploit-DB/公开 PoC 15 条。材料未给出勒索软件关联信息。

受影响产品

官方记录标题称 PHPMailer before 5(版本区间在给定材料中被截断,完整区间材料未给出);参考材料(Nuclei 模板)称 WordPress PHPMailer < 5.2.18,并指向 Sender 属性注入路径。组件为 class.phpmailer.php 的 mail()/isMail 传输;部署形态涉及使用该库的 Web 应用与 CMS 集成。两者版本表述存在出入,以官方记录为准并注意其区间不完整。

修复版本

参考材料称升级至 PHPMailer 5.2.18 或更高;官方记录未给出明确修复版本,材料未给出厂商补丁细节。

缓解措施

按 KEV 要求执行厂商缓解指引,遵循 BOD 22-01 云服务要求;无法缓解时应停用该产品。可行替代包括避免使用 mail()/sendmail 传输、改用 SMTP 并限制发信参数来源,或在下游对发信输入做严格白名单校验;具体厂商指引材料未给出。

响应步骤

  1. 盘点使用 PHPMailer 的资产与版本,重点排查走 mail()/isMail 传输的对外 Web 入口。
  2. 用给定 Nuclei 模板或公开 PoC 在授权范围内验证暴露面,关注 WordPress lostpassword 等发信路径。
  3. 升级至 5.2.18 或更高(以官方记录核实完整受影响区间),升级前先做兼容性验证。
  4. 无法立即升级的实例按 KEV 期限落实缓解或下线,并核查云服务合规要求。
  5. 排查邮件发送日志与异常子进程,确认是否存在命令注入利用痕迹,必要时隔离主机。

参考来源

  1. https://www.exploit-db.com/exploits/41962exploit,exploitdb
  2. https://www.exploit-db.com/exploits/41688exploit,exploitdb
  3. https://www.exploit-db.com/exploits/41996exploit,exploitdb
  4. https://www.exploit-db.com/exploits/42024exploit,exploitdb
  5. https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2016/CVE-2016-10033.yamlexploit,nuclei
  6. http://packetstormsecurity.com/files/140350/PHPMailer-Sendmail-Argument-Injection.htmlx_refsource_MISC,x_refsource_MISC,x_transferred,Exploit,Third Party Advisory,VDB
  7. https://www.drupal.org/psa-2016-004x_refsource_CONFIRM,x_refsource_CONFIRM,x_transferred,Third Party Advisory
  8. https://www.exploit-db.com/exploits/42221/exploit,x_refsource_EXPLOIT-DB,exploit,x_refsource_EXPLOIT-DB,x_transferred
  9. https://www.exploit-db.com/exploits/40969/exploit,x_refsource_EXPLOIT-DB,exploit,x_refsource_EXPLOIT-DB,x_transferred,Expl
  10. https://www.exploit-db.com/exploits/41962/exploit,x_refsource_EXPLOIT-DB,exploit,x_refsource_EXPLOIT-DB,x_transferred
  11. https://www.exploit-db.com/exploits/40968/exploit,x_refsource_EXPLOIT-DB,exploit,x_refsource_EXPLOIT-DB,x_transferred,Expl
  12. https://legalhackers.com/advisories/PHPMailer-Exploit-Remote-Code-Exec-CVE-2016-10033-Vuln.htmlx_refsource_MISC,x_refsource_MISC,x_transferred,Exploit,Patch,Third Party Adviso
  13. https://github.com/PHPMailer/PHPMailer/releases/tag/v5.2.18x_refsource_CONFIRM,x_refsource_CONFIRM,x_transferred,Patch,Vendor Advisory
  14. http://www.securityfocus.com/archive/1/539963/100/0/threadedmailing-list,x_refsource_BUGTRAQ,mailing-list,x_refsource_BUGTRAQ,x_transferred,
  15. https://github.com/PHPMailer/PHPMailer/wiki/About-the-CVE-2016-10033-and-CVE-2016-10045-vulnerabilitiesx_refsource_CONFIRM,x_refsource_CONFIRM,x_transferred,Patch,Vendor Advisory
  16. http://packetstormsecurity.com/files/140291/PHPMailer-Remote-Code-Execution.htmlx_refsource_MISC,x_refsource_MISC,x_transferred,Exploit,Third Party Advisory,VDB