CVE-2020-26247 XXE in Nokogiri
An XXE vulnerability in Nokogiri allows attackers to access external resources via trusted XML Schemas, potentially leading to data disclosure or SSRF.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Over the internet
- Victim action needed
- A user has to click or open something
- Fix
- Available
What is CVE-2020-26247?
CVE-2020-26247 is a low-severity vulnerability in Debian Debian Linux, published on 30 Dec 2020. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link.
Official 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.
Weakness: CWE-611
Which versions are affected by CVE-2020-26247?
2 open source packages ship an affected version, including nokogiri. It affects 2 products.
| Package | Affected | Fixed in |
|---|---|---|
nokogiri RubyGems | All versions | 1.11.0 |
nokogiri RubyGems | All versions | 1.11.0 |
Products include Debian Debian Linux, Nokogiri Nokogiri.
How do I fix CVE-2020-26247?
Upgrade nokogiri to 1.11.0 or later.
Is CVE-2020-26247 being exploited?
There is no known exploitation of CVE-2020-26247 in the wild and no public exploit code.
Other vulnerabilities in Debian Debian Linux
Sources
Also known as DEBIAN-CVE-2020-26247, DLA-2678-1, GHSA-vr8q-g5c7-m54m, OESA-2021-1144, UBUNTU-CVE-2020-26247.