中危 nokogiri nokogiri xml外部实体引用的不恰当限制(xxe)

CVE编号

CVE-2021-41098

利用情况

暂无

补丁情况

官方补丁

披露时间

2021-09-28
漏洞描述
Nokogiri is a Rubygem providing HTML, XML, SAX, and Reader parsers with XPath and CSS selector support. In Nokogiri v1.12.4 and earlier, on JRuby only, the SAX parser resolves external entities by default. Users of Nokogiri on JRuby who parse untrusted documents using any of these classes are affected: Nokogiri::XML::SAX::Parse, Nokogiri::HTML4::SAX::Parser or its alias Nokogiri::HTML::SAX::Parser, Nokogiri::XML::SAX::PushParser, and Nokogiri::HTML4::SAX::PushParser or its alias Nokogiri::HTML::SAX::PushParser. JRuby users should upgrade to Nokogiri v1.12.5 or later to receive a patch for this issue. There are no workarounds available for v1.12.4 or earlier. CRuby users are not affected.
解决建议
建议您更新当前系统或软件至最新版,完成漏洞的修复。
受影响软件情况
# 类型 厂商 产品 版本 影响面
1
运行在以下环境
应用 nokogiri nokogiri * Up to
(excluding)
1.12.5
运行在以下环境
系统 debian_10 ruby-nokogiri * Up to
(excluding)
1.10.0+dfsg1-2+deb10u1
运行在以下环境
系统 debian_11 ruby-nokogiri * Up to
(excluding)
1.11.1+dfsg-2
运行在以下环境
系统 debian_12 ruby-nokogiri * Up to
(excluding)
1.13.10+dfsg-2
阿里云评分
6.2
  • 攻击路径
    本地
  • 攻击复杂度
    复杂
  • 权限要求
    普通权限
  • 影响范围
    越权影响
  • EXP成熟度
    未验证
  • 补丁情况
    官方补丁
  • 数据保密性
    无影响
  • 数据完整性
    无影响
  • 服务器危害
    无影响
  • 全网数量
    N/A
CWE-ID 漏洞类型
CWE-611 XML外部实体引用的不恰当限制(XXE)
阿里云安全产品覆盖情况