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

System Information Library for Node.JS 命令注入(CVE-2021-21315)

CVE-2021-21315 别名:GHSA-2M8V-572M-FF2V
CVSS 7.1 / 3.1 EPSS 90.7% CISA KEV 在野利用 公开 PoC · 6 Nuclei 模板
综合风险81/ 100
CVSS7.1高危
EPSS90.7%30 天利用概率
机构收录时间2021-02-17更新 2026-12-01

研判简报

概述

System Information Library for Node.JS(npm 包 systeminformation)用于采集硬件、系统和操作系统信息。在 5.3.1 之前的版本中,si.inetLatency()、si.inetChecksite()、si.services()、si.processLoad() 等接口在接收数组型服务参数时存在命令注入(CWE-78),攻击者可借此在宿主上执行任意命令。该漏洞已列入 CISA KEV,说明现实中已有利用活动,运行受影响版本且对外暴露相关接口的 Node.js 服务应优先排查。

严重性

官方记录 CVSS 3.1 为 7.1(high),综合风险分 80.54/100;EPSS 30 天利用概率 90.7%(百分位 99.8%,2026-11-25)。参考 Nuclei 模板给出的 CVSS 为 7.8,与官方记录存在出入,以官方记录为准。攻击面是调用上述接口并接受外部输入的 Node.js 应用。

利用状态

截至核查日期 2026-11-25:CISA KEV 已收录(2022-01-18),KEV 要求动作是“Apply updates per vendor instructions.”,期限 2022-02-01;已有公开 Nuclei 检测模板(http/cves/2021/CVE-2021-21315.yaml);Exploit-DB/公开 PoC 共 6 条。CISA SSVC 评估:automatable=no、exploitation=active、technical_impact=partial。材料未给出勒索软件关联信息。

受影响产品

sebhildebrandt:systeminformation 低于 5.3.1 的版本(npm 包,Node.js 运行环境)。部署形态为在 Node.js 应用中引入该库并对外暴露相关接口;材料未给出具体受影响的下游产品清单。

修复版本

官方修复版本为 5.3.1 及以上(“Problem was fixed with a parameter check. Please upgrade to version >= 5.3.1”)。材料未给出其他补丁信息。

缓解措施

无法立即升级时,按官方建议检查或净化传入 si.inetLatency()、si.inetChecksite()、si.services()、si.processLoad() 等服务参数:只允许字符串,拒绝任何数组;字符串净化按预期生效。

响应步骤

  1. 清点 Node.js 资产与依赖清单,确认是否存在 systeminformation < 5.3.1。
  2. 升级至 5.3.1 或更高版本,并重新构建、部署。
  3. 暂不能升级时,在调用上述接口前强制参数类型为字符串并拒绝数组输入。
  4. 排查对外暴露的相关接口与访问日志,关注含数组形式参数(如 name[]=)的可疑请求。
  5. 参考 Nuclei 模板 http/cves/2021/CVE-2021-21315.yaml 做检测验证,并结合 KEV 要求跟踪处置闭环。

参考来源

  1. https://nvd.nist.gov/vuln/detail/CVE-2021-21315kev
  2. https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2021/CVE-2021-21315.yamlexploit,nuclei
  3. https://www.npmjs.com/package/systeminformationx_refsource_MISC,x_refsource_MISC,x_transferred,advisory,euvd
  4. https://github.com/sebhildebrandt/systeminformation/security/advisories/GHSA-2m8v-572m-ff2vx_refsource_CONFIRM,x_refsource_CONFIRM,x_transferred,advisory,euvd
  5. https://github.com/sebhildebrandt/systeminformation/commit/07daa05fb06f24f96297abaa30c2ace8bfd8b525x_refsource_MISC,x_refsource_MISC,x_transferred,advisory,euvd
  6. https://lists.apache.org/thread.html/r8afea9a83ed568f2647cccc6d8d06126f9815715ddf9a4d479b26b05%40%3Cissues.cordova.apache.org%3Emailing-list,x_refsource_MLIST,mailing-list,x_refsource_MLIST,x_transferred,advi
  7. https://security.netapp.com/advisory/ntap-20210312-0007/x_refsource_CONFIRM,x_refsource_CONFIRM,x_transferred,advisory,euvd
  8. https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2021-21315government-resource
  9. https://unit42.paloaltonetworks.com/network-attack-trends-february-april-2021/kev
  10. https://euvd.enisa.europa.eu/enisa/EUVD-2021-0527kev
  11. https://www.cisa.gov/known-exploited-vulnerabilities-catalogkev
  12. https://dashboard.shadowserver.org/statistics/honeypot/vulnerability/map/?host_type=src&vulnerability=cve-2021-21315kev
  13. https://www.f5.com/labs/articles/threat-intelligence/sensor-intel-series-top-cves-august-2024kev
  14. https://www.f5.com/labs/articles/threat-intelligence/botpoke-scanner-switches-ipkev
  15. https://www.f5.com/labs/articles/threat-intelligence/continued-scanning-for-cve-2023-1389kev
  16. https://api.vulncheck.com/v3/index/vulncheck-canaries?cve=CVE-2021-21315kev