Bug 2008914 (CVE-2021-41098) - CVE-2021-41098 rubygem-nokogiri: XEE on JRuby
Summary: CVE-2021-41098 rubygem-nokogiri: XEE on JRuby
Status: NEW
Alias: CVE-2021-41098
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
Target Milestone: ---
Assignee: Nobody
QA Contact:
Depends On: 2008915 2008916 2009647
Blocks: 2008917
TreeView+ depends on / blocked
Reported: 2021-09-29 13:40 UTC by Guilherme de Almeida Suckevicz
Modified: 2023-07-07 08:29 UTC (History)
38 users (show)

Fixed In Version: rubygem-nokogiri 1.12.5
Doc Type: If docs needed, set a value
Doc Text:
A XML External Entity Reference (XXE) vulnerability was found in RubyGem Nokogiri on JRuby (Java implementation of the Ruby). If attacker is able to insert untrusted XML input containing a reference to an external entity, it is processed by a weakly configured SAX parser, resulting disclosure of confidential data and server side request forgery. The highest threat from this vulnerability is to system confidentiality.
Clone Of:
Last Closed: 2021-10-01 13:28:11 UTC

Attachments (Terms of Use)

Description Guilherme de Almeida Suckevicz 2021-09-29 13:40:00 UTC
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.


Upstream patch:

Comment 1 Guilherme de Almeida Suckevicz 2021-09-29 13:40:24 UTC
Created rubygem-nokogiri tracking bugs for this issue:

Affects: epel-7 [bug 2008916]
Affects: fedora-all [bug 2008915]

Comment 2 Mamoru TASAKA 2021-09-29 13:56:36 UTC
Please look at the upstream info precisely.

> JRuby users should upgrade to Nokogiri v1.12.5 
> CRuby users are not affected.

Comment 3 juneau 2021-09-29 14:07:55 UTC
services-sources notaffected

Comment 7 Yadnyawalk Tale 2021-10-08 19:48:15 UTC
Haven't seen ManageIQ or Katello using JRuby. I do know theforeman project have some usage for Puppet client and server's Puppet module but JRuby not getting used in downstream. Thus, Red Hat CloudForms and Red Hat Satellite are not affected by this.

Note You need to log in before you can comment on or make changes to this bug.