中危 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.解决建议
建议您更新当前系统或软件至最新版,完成漏洞的修复。
参考链接 |
|
---|---|
https://github.com/sparklemotion/nokogiri/commit/5bf729ff3cc84709ee3c3248c981... | |
https://github.com/sparklemotion/nokogiri/security/advisories/GHSA-2rr5-8q37-2w7h |
受影响软件情况
# | 类型 | 厂商 | 产品 | 版本 | 影响面 | ||||
1 | |||||||||
---|---|---|---|---|---|---|---|---|---|
运行在以下环境 | |||||||||
应用 | nokogiri | nokogiri | * | Up to (excluding) 1.12.5 | |||||
运行在以下环境 | |||||||||
系统 | debian_10 | ruby-nokogiri | * | Up to (excluding) 1.10.0+dfsg1-2 | |||||
运行在以下环境 | |||||||||
系统 | debian_11 | ruby-nokogiri | * | Up to (excluding) 1.11.1+dfsg-2 | |||||
运行在以下环境 | |||||||||
系统 | debian_12 | ruby-nokogiri | * | Up to (excluding) 1.13.10+dfsg-2 | |||||
运行在以下环境 | |||||||||
系统 | debian_sid | ruby-nokogiri | * | Up to (excluding) 1.15.4+dfsg-1 | |||||
- 攻击路径 本地
- 攻击复杂度 复杂
- 权限要求 普通权限
- 影响范围 越权影响
- EXP成熟度 未验证
- 补丁情况 官方补丁
- 数据保密性 无影响
- 数据完整性 无影响
- 服务器危害 无影响
- 全网数量 N/A
CWE-ID | 漏洞类型 |
CWE-611 | XML外部实体引用的不恰当限制(XXE) |
Exp相关链接

版权声明
本站原创文章转载请注明文章出处及链接,谢谢合作!
评论