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

Laravel Ignition 远程代码执行(CVE-2021-3129)

CVE-2021-3129 别名:GHSA-4QWP-7C67-JMCC
CVSS 9.8 / 3.1 EPSS 99.9% CISA KEV 在野利用 勒索软件利用 公开 PoC · 41 Nuclei 模板
综合风险100/ 100
CVSS9.8严重
EPSS99.9%30 天利用概率
机构收录时间2021-01-12更新 2026-12-01

研判简报

概述

Ignition 是 Laravel 默认的错误页生成组件,2.5.2 之前版本对 file_get_contents() 与 file_put_contents() 的使用不安全,攻击者可通过 /_ignition/execute-solution 端点操控 viewFile 参数写入文件。当 Laravel 站点开启 debug 模式(Laravel 8.4.2 之前)时,未授权远程攻击者可实现任意代码执行。该漏洞利用简单、无需认证,任何暴露在公网的 Laravel 调试站点都应立即排查。

严重性

CVSS 3.1 评分 9.8(AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H),综合风险分 100.0/100;EPSS 30 天利用概率 99.9%(百分位 100.0%,核查日期 2026-11-24)。攻击面为公网可达的 Laravel debug 页面,利用无需任何凭据。

利用状态

CISA KEV 已收录(2023-09-18),并标注已知勒索软件利用;CISA SSVC 判定 automatable=yes、exploitation=active、technical_impact=total。已有公开 Nuclei 检测模板(http/cves/2021/CVE-2021-3129.yaml)及 Exploit-DB/公开 PoC 共 41 条。以上状态核查日期为 2026-11-24。

受影响产品

facade:ignition <2.5.2,即 Laravel 及其他使用 Ignition 的产品;官方记录明确可利用条件为使用 debug 模式的 Laravel 8.4.2 之前版本。Nuclei 模板标题写作「Laravel with Ignition <= v8.4.2 Debug Mode」,与官方记录的版本表述存在出入,以官方记录为准。

修复版本

官方修复版本为 ignition 2.5.2(结构化提取)。Nuclei 模板建议将 Laravel 升级至 8.4.3 或更高,该版本号来自参考材料而非官方记录,仅供参考。

缓解措施

无法立即修复时,应关闭 Laravel debug 模式以消除可利用条件;按 KEV 要求执行厂商缓解指令,或在无可用缓解时停止使用该产品(KEV 期限 2023-10-09)。限制对 /_ignition/execute-solution 端点的外部访问可作为临时收敛手段,材料未给出更多厂商缓解细节。

响应步骤

  1. 排查所有 Laravel 站点是否使用 ignition <2.5.2,并确认 debug 模式是否开启。
  2. 升级 ignition 至 2.5.2,或按参考材料将 Laravel 升级至 8.4.3 以上。
  3. 无法升级时立即关闭 debug 模式,并阻断外部对 /_ignition/execute-solution 的访问。
  4. 使用公开 Nuclei 模板对暴露资产进行检测,确认是否存在可疑 viewFile 写入请求。
  5. 检查 storage/logs/laravel.log 等可写路径是否被植入恶意内容,并排查 Web 目录异常文件。
  6. 结合 KEV 与勒索软件利用情报,对已确认失陷主机执行隔离与取证。

参考来源

  1. https://github.com/facade/ignition/releases/tag/2.5.2kev
  2. https://nvd.nist.gov/vuln/detail/CVE-2021-3129kev
  3. https://www.exploit-db.com/exploits/49424exploit,exploitdb
  4. https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2021/CVE-2021-3129.yamlexploit,nuclei
  5. https://www.ambionics.io/blog/laravel-debug-rcex_refsource_MISC,x_refsource_MISC,x_transferred,Exploit,Third Party Advisory,adv
  6. https://github.com/facade/ignition/pull/334x_refsource_MISC,x_refsource_MISC,x_transferred,Patch,Third Party Advisory,advis
  7. http://packetstormsecurity.com/files/162094/Ignition-2.5.1-Remote-Code-Execution.htmlx_refsource_MISC,x_refsource_MISC,x_transferred,Exploit,Third Party Advisory,VDB
  8. http://packetstormsecurity.com/files/165999/Ignition-Remote-Code-Execution.htmlx_refsource_MISC,x_refsource_MISC,x_transferred,Exploit,Third Party Advisory,VDB
  9. https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2021-3129government-resource,US Government Resource
  10. https://github.com/rapid7/metasploit-framework/tree/master/modules/exploit_multi/php/ignition_laravel_debug_rceexploit,metasploit
  11. https://euvd.enisa.europa.eu/vulnerability/EUVD-2021-0599advisory,euvd
  12. https://blog.netlab.360.com/necro-upgrades-again-using-tor-dynamic-domain-dga-and-aiming-at-both-windows-linux/kev
  13. https://blogs.juniper.net/en-us/threat-research/sysrv-botnet-expands-and-gains-persistencekev
  14. https://www.bleepingcomputer.com/news/security/new-cryptomining-malware-builds-an-army-of-windows-linux-bots/kev
  15. https://blog.talosintelligence.com/2021/06/necro-python-bot-adds-new-tricks.htmlkev
  16. https://cujo.com/the-sysrv-botnet-and-how-it-evolved/kev