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

ImageMagick 命令注入(CVE-2016-3714)

CVE-2016-3714 别名:DEBIAN-CVE-2016-3714
CVSS 8.4 / 3.1 EPSS 97.5% CISA KEV 在野利用 公开 PoC · 7
综合风险88/ 100
CVSS8.4高危
EPSS97.5%30 天利用概率
机构收录时间2016-05-04更新 2026-12-03

研判简报

概述

ImageMagick 在 6.9.3-10 之前及 7.x 在 7.0.1-1 之前的多个 coder(EPHEMERAL、HTTPS、MVG、MSL、TEXT、SHOW、WIN、PLT)未正确处理构造图像中的 shell 元字符,导致远程攻击者可执行任意代码,即 "ImageTragick"。该漏洞通过图像处理链路即可触发,凡是对不可信图像调用 ImageMagick 的服务(上传、缩略图、格式转换)都应关注。CWE 归类为 CWE-20(输入验证不当)。

严重性

CVSS 3.1 评分 8.4(high),综合风险分 90.1/100;EPSS 30 天利用概率 97.5%(百分位 99.9%,日期 2026-11-23)。攻击面为任何接受外部图像输入并交由 ImageMagick 解析的接口,利用无需交互、可自动化。

利用状态

CISA KEV 已收录(收录日期 2024-09-09);Exploit-DB/公开 PoC 共 4 条;CISA SSVC 判定 automatable=yes、exploitation=active、technical_impact=total。核查日期 2026-11-24。材料未给出勒索软件关联信息与 Nuclei 模板状态。

受影响产品

ImageMagick <=6.9.3-9、7.0.0-0、7.0.1-0;发行版打包受影响:Ubuntu 12.04/14.04/15.10/16.04,Debian 8.0/9.0,openSUSE 13.2/Leap 42.1,SUSE Linux Enterprise Server 12。涉及组件为上述 8 类 coder;部署形态材料未给出。

修复版本

官方记录称 6.9.3-10 及 7.0.1-1 之前的版本受影响,即修复版本为 ImageMagick 6.9.3-10 与 7.0.1-1;各发行版的具体补丁包版本材料未给出。

缓解措施

按 KEV 要求:应用厂商指引的缓解措施,若无可用缓解则停止使用该产品(期限 2024-09-30)。材料未给出具体缓解配置项,可参考参考链接中的厂商与发行版公告。

响应步骤

  1. 盘点对外提供图像处理的服务与库依赖,确认 ImageMagick 版本是否落在受影响区间。
  2. 升级至 6.9.3-10 / 7.0.1-1 或发行版对应修复包,并核对打包版本。
  3. 无法立即升级时,按厂商指引实施缓解,或按 KEV 要求停用相关组件。
  4. 排查历史图像上传与转换日志,关注含 shell 元字符的可疑文件名与内容。
  5. 对图像处理服务实施输入白名单与最小权限运行,降低利用后果。

参考来源

  1. https://www.exploit-db.com/exploits/39767exploit,exploitdb
  2. https://www.exploit-db.com/exploits/39791exploit,exploitdb
  3. https://access.redhat.com/security/vulnerabilities/2296071x_refsource_CONFIRM,x_refsource_CONFIRM,x_transferred
  4. http://git.imagemagick.org/repos/ImageMagick/blob/a01518e08c840577cabd7d3ff291a9ba735f7276/ChangeLogx_refsource_CONFIRM,x_refsource_CONFIRM,x_transferred
  5. http://lists.opensuse.org/opensuse-security-announce/2016-05/msg00028.htmlvendor-advisory,x_refsource_SUSE,vendor-advisory,x_refsource_SUSE,x_transferred
  6. http://www.securitytracker.com/id/1035742vdb-entry,x_refsource_SECTRACK,vdb-entry,x_refsource_SECTRACK,x_transferred
  7. https://imagetragick.com/x_refsource_MISC,x_refsource_MISC,x_transferred
  8. http://www.oracle.com/technetwork/topics/security/linuxbulletinapr2016-2952096.htmlx_refsource_CONFIRM,x_refsource_CONFIRM,x_transferred
  9. https://www.imagemagick.org/discourse-server/viewtopic.php?f=4&t=29588x_refsource_CONFIRM,x_refsource_CONFIRM,x_transferred
  10. http://www.openwall.com/lists/oss-security/2016/05/03/13mailing-list,x_refsource_MLIST,mailing-list,x_refsource_MLIST,x_transferred
  11. http://lists.opensuse.org/opensuse-security-announce/2016-05/msg00041.htmlvendor-advisory,x_refsource_SUSE,vendor-advisory,x_refsource_SUSE,x_transferred
  12. http://lists.opensuse.org/opensuse-security-announce/2016-05/msg00051.htmlvendor-advisory,x_refsource_SUSE,vendor-advisory,x_refsource_SUSE,x_transferred
  13. http://www.ubuntu.com/usn/USN-2990-1vendor-advisory,x_refsource_UBUNTU,vendor-advisory,x_refsource_UBUNTU,x_transfer
  14. http://lists.opensuse.org/opensuse-security-announce/2016-05/msg00025.htmlvendor-advisory,x_refsource_SUSE,vendor-advisory,x_refsource_SUSE,x_transferred
  15. http://www.securityfocus.com/archive/1/538378/100/0/threadedmailing-list,x_refsource_BUGTRAQ,mailing-list,x_refsource_BUGTRAQ,x_transferred
  16. https://www.exploit-db.com/exploits/39767/exploit,x_refsource_EXPLOIT-DB,exploit,x_refsource_EXPLOIT-DB,x_transferred