CVE-2020-26247
rubygem-nokogiri: XML external entity injection via Nokogiri::XML::Schema
Overview
Description
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.
Source: OX vulnerability database
Severity
4.3 · MEDIUM
CVSS 3.1 base score, scored by NVD.
- Attack vector
- Network
- Attack complexity
- Low
- Privileges required
- Low
- User interaction
- None
- Scope
- Unchanged
- Confidentiality
- Low
- Integrity
- None
- Availability
- None
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N
Weakness: CWE-611
Affected packages · 1
| Ecosystem | Package | Vulnerable | Fixed in |
|---|---|---|---|
| RubyGems | nokogiri | <1.11.0 | 1.11.01.11.0.rc4 |
Open a package to see all its vulnerabilities.
Operating systems · 27 fixes
Photon OS 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 4.0 | rubygem-nokogiri | 1.11.3-1.ph4 |
Red Hat 2 releases · 13 packages
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 7 | rubygem-nokogiri +1 | wont fix | — |
| 7 | python3-ecdsa | 0:0.13.3-2.el7pc | RHSA-2021:4702 |
| 7 | tfm-rubygem-nokogiri | 0:1.11.3-2.el7sat | RHSA-2021:4702 |
| 7 | python3-urllib3 | 0:1.26.5-1.el7pc | RHSA-2021:4702 |
| 7 | tfm-rubygem-activerecord-session-store | 0:2.0.0-1.el7sat | RHSA-2021:4702 |
| 7 | python3-django | 0:2.2.24-1.el7pc | RHSA-2021:4702 |
8 more rows
alpine 4 releases · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 3.22 | ruby-nokogiri | 1.11.6-r0 |
| 3.23 | ruby-nokogiri | 1.11.6-r0 |
| 3.24 | ruby-nokogiri | 1.11.6-r0 |
| edge | ruby-nokogiri | 1.11.6-r0 |
debian 6 releases · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 10 | ruby-nokogiri | 1.10.0+dfsg1-2+deb10u1 |
| 11 | ruby-nokogiri | 1.11.1+dfsg-1 |
| 12 | ruby-nokogiri | 1.11.1+dfsg-1 |
| 13 | ruby-nokogiri | 1.11.1+dfsg-1 |
| 14 | ruby-nokogiri | 1.11.1+dfsg-1 |
| 9 | ruby-nokogiri | 1.6.8.1-1+deb9u1 |
echo 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| ruby-nokogiri | 1.11.1+dfsg-1 |
ubuntu 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 20.04-ESM | ruby-nokogiri | 1.10.7+dfsg1-2ubuntu0.1~esm2 |
References
- access.redhat.com https://access.redhat.com/security/cve/CVE-2020-26247
- github.com https://github.com/advisories/GHSA-vr8q-g5c7-m54m
- github.com https://github.com/rubysec/ruby-advisory-db/blob/master/gems/nokogiri/CVE-2020-26247.yml
- github.com https://github.com/sparklemotion/nokogiri
- github.com https://github.com/sparklemotion/nokogiri/blob/main/CHANGELOG.md#v1110--2021-01-03
- github.com https://github.com/sparklemotion/nokogiri/commit/9c87439d9afa14a365ff13e73adc809cb2c3d97b
- github.com https://github.com/sparklemotion/nokogiri/commit/9c87439d9afa14a365ff13e73adc809cb2c3d97b (v1.11.0.rc4)
- github.com https://github.com/sparklemotion/nokogiri/releases/tag/v1.11.0.rc4
- github.com https://github.com/sparklemotion/nokogiri/security/advisories/GHSA-vr8q-g5c7-m54m
- hackerone.com https://hackerone.com/reports/747489
Show all 17 references
- lists.debian.org https://lists.debian.org/debian-lts-announce/2021/06/msg00007.html
- lists.debian.org https://lists.debian.org/debian-lts-announce/2022/10/msg00018.html
- nvd.nist.gov https://nvd.nist.gov/vuln/detail/CVE-2020-26247
- rubygems.org https://rubygems.org/gems/nokogiri
- security.gentoo.org https://security.gentoo.org/glsa/202208-29
- ubuntu.com https://ubuntu.com/security/notices/USN-7659-1
- www.cve.org https://www.cve.org/CVERecord?id=CVE-2020-26247
OX Radar and Response Center
Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.