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

GLPI PHP 代码注入 / 远程命令执行(CVE-2022-35914)

CVE-2022-35914
CVSS 9.8 / 3.1 EPSS 89.3% CISA KEV 在野利用 公开 PoC · 10 Nuclei 模板
综合风险94/ 100
CVSS9.8严重
EPSS89.3%30 天利用概率
机构收录时间2022-09-19更新 2026-11-29

研判简报

概述

GLPI 至 10.0.2 版本捆绑的 htmlawed 模块中的 /vendor/htmlawed/htmlawed/htmLawedTest.php 是一个供开发/测试用的脚本,在生产部署中未被移除,攻击者可通过 hhook、text、hfoo 等参数控制回调函数,实现 PHP 代码注入并进一步执行任意系统命令。该脚本路径固定、无需认证即可访问,且请求形态简单,因此自动化扫描与批量利用的门槛极低。对暴露在互联网或办公网可达的 GLPI 资产(ITSM/资产管理系统,通常存放账号、资产与工单信息)而言,这意味着直接的服务器失陷风险。资产负责人、暴露面管理与应急响应团队都应立即关注。

严重性

官方记录为 critical,CVSS 3.1 评分 9.8(AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H),综合风险分 96.17/100,CWE-74。EPSS 30 天利用概率 99.9%(百分位 100.0%,取值日期 2026-11-23),攻击面可概括为:任何可访问该测试脚本路径的 GLPI 实例,均可被未认证远程命令执行。

利用状态

  • CISA KEV:已收录,收录日期 2023-03-07,要求动作「Apply updates per vendor instructions.」,期限 2023-03-28(已过期,属已知被利用漏洞)。
  • 公开 PoC:Exploit-DB 52023 及公开渠道共约 10 条。
  • Nuclei 模板:已有 http/cves/2022/CVE-2022-35914.yaml(tags 含 rce、kev),检测逻辑通过 POST 该路径并用回显匹配 root:.*:0:0:。
  • CISA SSVC:automatable=yes / exploitation=active / technical_impact=total。
  • 勒索软件关联:材料未给出。
  • 以上状态核查日期为 2026-11-24。

受影响产品

  • 厂商/产品:Teclib / GLPI,标识 glpi-project:glpi。
  • 版本区间:<= 10.0.2(含 10.0.2)。
  • 组件:/vendor/htmlawed/htmlawed/htmLawedTest.php(htmLawed 测试脚本)。
  • 部署形态:材料未给出具体部署形态说明;Nuclei 模板提供 http.title:"glpi"、favicon hash 等指纹,可用于定位暴露实例。

修复版本

参考链接 https://glpi-project.org/fr/glpi-10-0-3-disponible/ 表明官方已发布 GLPI 10.0.3;Nuclei 模板 remediation 亦建议升级至高于 10.0.2 的版本。具体修复提交细节材料未给出。官方发布说明与第三方记录在此点上无冲突。

缓解措施

  • 无法立即升级时,在反向代理/WAF 层阻断对 /vendor/htmlawed/htmlawed/htmLawedTest.php 及 /vendor/ 下测试脚本的访问,或直接删除/重命名该文件(需评估升级覆盖影响)。
  • 将 GLPI 实例限制在内网或白名单访问,禁止互联网直接暴露;关闭不必要的 vendor 目录直访。
  • 对 GLPI 主机实施出站流量限制与命令执行监控,降低成功利用后的影响面。
  • 材料未给出厂商提供的其他专门补丁或配置开关。

响应步骤

  1. 资产排查:用 http.title:"glpi"、favicon hash -1474875778 等指纹定位 GLPI 实例,确认版本是否 <= 10.0.2。
  2. 日志检索:检查对 /vendor/htmlawed/htmlawed/htmLawedTest.php 的 POST 请求,重点关注 hhook=exec、hhook=array_map、text=system|passthru 等参数特征及异常响应(如 /etc/passwd 回显)。
  3. 失陷评估:检查 web 进程子进程、异常外联、新增文件与计划任务,必要时隔离主机。
  4. 升级处置:升级至 GLPI 10.0.3 或更高版本,并确认 vendor 下测试脚本不可外部访问。
  5. 凭据与影响面:轮换 GLPI 相关账号、数据库与集成凭据,核查工单/资产数据是否被读取。
  6. 复核:按 KEV 要求完成修复闭环,并用 Nuclei 模板复测确认不再命中。

参考来源

  1. https://glpi-project.org/fr/glpi-10-0-3-disponible/kev,x_transferred,Release Notes,Vendor Advisory
  2. http://www.bioinformatics.org/phplabware/sourceer/sourceer.php?&Sfs=htmLawedTest.php&Sl=.%2Finternal_utilities%2FhtmLawedkev,x_transferred,Patch,Third Party Advisory
  3. https://nvd.nist.gov/vuln/detail/CVE-2022-35914kev
  4. https://www.exploit-db.com/exploits/52023exploit,exploitdb
  5. https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2022/CVE-2022-35914.yamlexploit,nuclei
  6. https://github.com/glpi-project/glpi/releasesx_transferred,Release Notes,Third Party Advisory
  7. http://packetstormsecurity.com/files/169501/GLPI-10.0.2-Command-Injection.htmlx_transferred,Exploit,Third Party Advisory,VDB Entry
  8. https://github.com/Orange-Cyberdefense/CVE-repository/Third Party Advisory
  9. https://github.com/Orange-Cyberdefense/CVE-repository/blob/master/PoCs/POC_2022-35914.shExploit
  10. https://mayfly277.github.io/posts/GLPI-htmlawed-CVE-2022-35914/Exploit,Third Party Advisory
  11. https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2022-35914government-resource,US Government Resource
  12. https://github.com/rapid7/metasploit-framework/tree/master/modules/exploit_linux/http/glpi_htmlawed_php_injectionexploit,metasploit
  13. https://glpi-project.org/security-update-10-0-3-and-9-5-9/kev
  14. https://twitter.com/Shadowserver/status/1580475994590220288kev
  15. https://web.archive.org/web/20230318134256/https://unit42.paloaltonetworks.com/network-security-trends-aug-oct-2022/kev
  16. https://www.cert.ssi.gouv.fr/uploads/CERTFR-2023-CTI-001.pdfkev