CVE Vulnerabilities

CVE-2020-26247

Improper Restriction of XML External Entity Reference

Published: Dec 30, 2020 | Modified: Nov 21, 2024
CVSS 3.x
4.3
MEDIUM
Source:
NVD
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N
CVSS 2.x
4 MEDIUM
AV:N/AC:L/Au:S/C:P/I:N/A:N
RedHat/V2
RedHat/V3
4.3 MODERATE
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N
Ubuntu
MEDIUM
root.io logo minimus.io logo echo.ai logo

Nokogiri is a Rubygem providing HTML, XML, SAX, and Reader parsers with XPath and CSS selector support. In Nokogiri before version 1.11.0.rc4 there is an XXE vulnerability. XML Schemas parsed by Nokogiri::XML::Schema are trusted by default, allowing external resources to be accessed over the network, potentially enabling XXE or SSRF attacks. This behavior is counter to the security policy followed by Nokogiri maintainers, which is to treat all input as untrusted by default whenever possible. This is fixed in Nokogiri version 1.11.0.rc4.

Weakness

The product processes an XML document that can contain XML entities with URIs that resolve to documents outside of the intended sphere of control, causing the product to embed incorrect documents into its output.

Affected Software

NameVendorStart VersionEnd Version
NokogiriNokogiri*1.11.0 (excluding)
NokogiriNokogiri1.11.0-rc1 (including)1.11.0-rc1 (including)
NokogiriNokogiri1.11.0-rc2 (including)1.11.0-rc2 (including)
NokogiriNokogiri1.11.0-rc3 (including)1.11.0-rc3 (including)
3scale API Management 2.11 on RHEL 7RedHat3scale-amp2/3scale-rhel7-operator:1.14.1-10*
3scale API Management 2.11 on RHEL 7RedHat3scale-amp2/3scale-rhel7-operator-metadata:2.11.1-33*
3scale API Management 2.11 on RHEL 7RedHat3scale-amp2/apicast-rhel7-operator:1.14.1-6*
3scale API Management 2.11 on RHEL 7RedHat3scale-amp2/apicast-rhel7-operator-metadata:2.11.1-10*
3scale API Management 2.11 on RHEL 7RedHat3scale-amp2/memcached-rhel7:1.4.16-42*
3scale API Management 2.11 on RHEL 7RedHat3scale-amp2/system-rhel7:1.15.1-13*
3scale API Management 2.11 on RHEL 8RedHat3scale-amp2/apicast-gateway-rhel8:1.20.1-4*
3scale API Management 2.11 on RHEL 8RedHat3scale-amp2/backend-rhel8:1.14.1-3*
3scale API Management 2.11 on RHEL 8RedHat3scale-amp2/toolbox-rhel8:1.7.1-5*
3scale API Management 2.11 on RHEL 8RedHat3scale-amp2/zync-rhel8:1.14.1-3*
Red Hat Satellite 6.10 for RHEL 7RedHattfm-rubygem-nokogiri-0:1.11.3-2.el7sat*
Red Hat Satellite 6.10 for RHEL 7RedHattfm-rubygem-nokogiri-0:1.11.3-2.el7sat*
Ruby-nokogiriUbuntubionic*
Ruby-nokogiriUbuntuesm-apps/focal*
Ruby-nokogiriUbuntufocal*
Ruby-nokogiriUbuntugroovy*
Ruby-nokogiriUbuntuhirsute*
Ruby-nokogiriUbuntuimpish*
Ruby-nokogiriUbuntukinetic*
Ruby-nokogiriUbuntulunar*
Ruby-nokogiriUbuntumantic*
Ruby-nokogiriUbuntutrusty*
Ruby-nokogiriUbuntutrusty/esm*
Ruby-nokogiriUbuntuupstream*
Ruby-nokogiriUbuntuxenial*

Potential Mitigations

References