55 lines
1.9 KiB
XML
55 lines
1.9 KiB
XML
<?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 ">=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>
|