summaryrefslogtreecommitdiff
path: root/metadata/glsa/glsa-202006-05.xml
blob: 8e2d321a301cd9e41a7ec2828b62075ffbd7fe56 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE glsa SYSTEM "http://www.gentoo.org/dtd/glsa.dtd">
<glsa id="202006-05">
  <title>Nokogiri: Command injection</title>
  <synopsis>Nokogiri has a vulnerability allowing arbitrary execution of code
    if a certain function is used.
  </synopsis>
  <product type="ebuild">Nokogiri</product>
  <announced>2020-06-13</announced>
  <revised count="1">2020-06-13</revised>
  <bug>691974</bug>
  <access>remote</access>
  <affected>
    <package name="dev-ruby/nokogiri" auto="yes" arch="*">
      <unaffected range="ge">1.10.4</unaffected>
      <vulnerable range="lt">1.10.4</vulnerable>
    </package>
  </affected>
  <background>
    <p>Nokogiri is an HTML, XML, SAX, and Reader parser.</p>
  </background>
  <description>
    <p>A command injection vulnerability in Nokogiri allows commands to be
      executed in a subprocess by Ruby’s Kernel.open method. Processes are
      vulnerable only if the undocumented method
      Nokogiri::CSS::Tokenizer#load_file is being passed untrusted user input.
    </p>
  </description>
  <impact type="normal">
    <p>A remote attacker could possibly execute arbitrary code with the
      privileges of the process.
    </p>
  </impact>
  <workaround>
    <p>Avoid calling the undocumented method Nokogiri::CSS::Tokenizer#load_file
      with untrusted user input.
    </p>
  </workaround>
  <resolution>
    <p>All Nokogiri users should upgrade to the latest version:</p>
    
    <code>
      # emerge --sync
      # emerge --ask --oneshot --verbose "&gt;=dev-ruby/nokogiri-1.10.4"
    </code>
  </resolution>
  <references>
    <uri link="https://nvd.nist.gov/vuln/detail/CVE-2019-5477">CVE-2019-5477</uri>
    <uri link="https://github.com/sparklemotion/nokogiri/issues/1915">Upstream
      bug
    </uri>
  </references>
  <metadata tag="requester" timestamp="2020-05-22T01:52:12Z">BlueKnight</metadata>
  <metadata tag="submitter" timestamp="2020-06-13T01:06:32Z">sam_c</metadata>
</glsa>