summaryrefslogtreecommitdiff
blob: 8b1b96e811df3901421dfae983246f17d9d8c11f (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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE glsa SYSTEM "http://www.gentoo.org/dtd/glsa.dtd">
<glsa id="201810-04">
  <title>ImageMagick: Security hardening</title>
  <synopsis>Due to multiple vulnerabilities in various coders used by
    ImageMagick, Gentoo Linux now installs a policy.xml file which will
    restrict coder usage by default.
  </synopsis>
  <product type="ebuild">imagemagick</product>
  <announced>2018-10-06</announced>
  <revised count="1">2018-10-06</revised>
  <bug>664236</bug>
  <access>local, remote</access>
  <affected>
    <package name="media-gfx/imagemagick" auto="yes" arch="*">
      <unaffected range="ge">6.9.10.10-r1</unaffected>
      <unaffected range="ge">7.0.8.10-r1</unaffected>
      <vulnerable range="lt">6.9.10.10-r1</vulnerable>
      <vulnerable range="lt">7.0.8.10-r1</vulnerable>
    </package>
  </affected>
  <background>
    <p>ImageMagick is a collection of tools and libraries for many image
      formats.
    </p>
  </background>
  <description>
    <p>If you process an image with ImageMagick and don’t validate the file
      before (e.g. check magic byte), ImageMagick will call any coders found in
      the given file. So if ImageMagick will find Ghostscript for example, it
      will call Ghostscript.
    </p>
    
    <p>Due to multiple -dSAFER sandbox bypass vulnerabilities in Ghostscript,
      this can lead to arbitrary code execution.
    </p>
    
    <p>To mitigate this problem we install a policy.xml file by default which
      will disable PS, EPS, PDF, and XPS coders.
    </p>
  </description>
  <impact type="normal">
    <p>A remote attacker, by enticing a user to process a specially crafted
      image file, could execute arbitrary code with the privileges of the
      process or cause a Denial of Service condition.
    </p>
  </impact>
  <workaround>
    <p>There is no known workaround at this time.</p>
  </workaround>
  <resolution>
    <p>All ImageMagick 6 users should upgrade to the latest version:</p>
    
    <code>
      # emerge --sync
      # emerge --ask --oneshot --verbose
      "&gt;=media-gfx/imagemagick-6.9.10.10-r1"
    </code>
    
    <p>All ImageMagick 7 users should upgrade to the latest version:</p>
    
    <code>
      # emerge --sync
      # emerge --ask --oneshot --verbose
      "&gt;=media-gfx/imagemagick-7.0.8.10-r1"
    </code>
    
  </resolution>
  <references>
    <uri link="https://www.kb.cert.org/vuls/id/332928">Ghostscript contains
      multiple -dSAFER sandbox bypass vulnerabilities (VU#332928)
    </uri>
  </references>
  <metadata tag="requester" timestamp="2018-08-22T17:43:38Z">whissi</metadata>
  <metadata tag="submitter" timestamp="2018-10-06T17:09:35Z">whissi</metadata>
</glsa>