summaryrefslogtreecommitdiff
blob: 4646661b6380022a568c1795df633be632ae8c9b (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
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE glsa SYSTEM "http://www.gentoo.org/dtd/glsa.dtd">
<glsa id="202107-17">
  <title>Mechanize: Command injection</title>
  <synopsis>A file named by an attacker being utilized by Mechanize could
    result in arbitrary code execution.
  </synopsis>
  <product type="ebuild">mechanize</product>
  <announced>2021-07-08</announced>
  <revised count="1">2021-07-08</revised>
  <bug>768609</bug>
  <access>local, remote</access>
  <affected>
    <package name="dev-ruby/mechanize" auto="yes" arch="*">
      <unaffected range="ge">2.7.7</unaffected>
      <vulnerable range="lt">2.7.7</vulnerable>
    </package>
  </affected>
  <background>
    <p>Mechanize is a Ruby library used for automating interaction with
      websites.
    </p>
  </background>
  <description>
    <p>Mechanize does not neutralize filename input and could allow arbitrary
      code execution if an attacker can control filenames used by Mechanize.
    </p>
  </description>
  <impact type="high">
    <p>Please review the referenced CVE identifiers for details.</p>
  </impact>
  <workaround>
    <p>There is no known workaround at this time.</p>
  </workaround>
  <resolution>
    <p>All Mechanize users should upgrade to the latest version:</p>
    
    <code>
      # emerge --sync
      # emerge --ask --oneshot --verbose "&gt;=dev-ruby/mechanize-2.7.7"
    </code>
  </resolution>
  <references>
    <uri link="https://nvd.nist.gov/vuln/detail/CVE-2021-21289">CVE-2021-21289</uri>
  </references>
  <metadata tag="requester" timestamp="2021-05-31T21:54:48Z">whissi</metadata>
  <metadata tag="submitter" timestamp="2021-07-08T03:38:36Z">ajak</metadata>
</glsa>