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

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

Name Vendor Start Version End Version
Nokogiri Nokogiri * 1.11.0 (excluding)
Nokogiri Nokogiri 1.11.0-rc1 (including) 1.11.0-rc1 (including)
Nokogiri Nokogiri 1.11.0-rc2 (including) 1.11.0-rc2 (including)
Nokogiri Nokogiri 1.11.0-rc3 (including) 1.11.0-rc3 (including)
3scale API Management 2.11 on RHEL 7 RedHat 3scale-amp2/3scale-rhel7-operator:1.14.1-10 *
3scale API Management 2.11 on RHEL 7 RedHat 3scale-amp2/3scale-rhel7-operator-metadata:2.11.1-33 *
3scale API Management 2.11 on RHEL 7 RedHat 3scale-amp2/apicast-rhel7-operator:1.14.1-6 *
3scale API Management 2.11 on RHEL 7 RedHat 3scale-amp2/apicast-rhel7-operator-metadata:2.11.1-10 *
3scale API Management 2.11 on RHEL 7 RedHat 3scale-amp2/memcached-rhel7:1.4.16-42 *
3scale API Management 2.11 on RHEL 7 RedHat 3scale-amp2/system-rhel7:1.15.1-13 *
3scale API Management 2.11 on RHEL 8 RedHat 3scale-amp2/apicast-gateway-rhel8:1.20.1-4 *
3scale API Management 2.11 on RHEL 8 RedHat 3scale-amp2/backend-rhel8:1.14.1-3 *
3scale API Management 2.11 on RHEL 8 RedHat 3scale-amp2/toolbox-rhel8:1.7.1-5 *
3scale API Management 2.11 on RHEL 8 RedHat 3scale-amp2/zync-rhel8:1.14.1-3 *
Red Hat Satellite 6.10 for RHEL 7 RedHat tfm-rubygem-nokogiri-0:1.11.3-2.el7sat *
Red Hat Satellite 6.10 for RHEL 7 RedHat tfm-rubygem-nokogiri-0:1.11.3-2.el7sat *
Ruby-nokogiri Ubuntu bionic *
Ruby-nokogiri Ubuntu esm-apps/focal *
Ruby-nokogiri Ubuntu focal *
Ruby-nokogiri Ubuntu groovy *
Ruby-nokogiri Ubuntu hirsute *
Ruby-nokogiri Ubuntu impish *
Ruby-nokogiri Ubuntu kinetic *
Ruby-nokogiri Ubuntu lunar *
Ruby-nokogiri Ubuntu mantic *
Ruby-nokogiri Ubuntu trusty *
Ruby-nokogiri Ubuntu trusty/esm *
Ruby-nokogiri Ubuntu upstream *
Ruby-nokogiri Ubuntu xenial *

Potential Mitigations

References