1 |
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - |
2 |
Gentoo Linux Security Advisory GLSA 201810-04 |
3 |
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - |
4 |
https://security.gentoo.org/ |
5 |
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - |
6 |
|
7 |
Severity: Normal |
8 |
Title: ImageMagick: Security hardening |
9 |
Date: October 06, 2018 |
10 |
Bugs: #664236 |
11 |
ID: 201810-04 |
12 |
|
13 |
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - |
14 |
|
15 |
Synopsis |
16 |
======== |
17 |
|
18 |
Due to multiple vulnerabilities in various coders used by ImageMagick, |
19 |
Gentoo Linux now installs a policy.xml file which will restrict coder |
20 |
usage by default. |
21 |
|
22 |
Background |
23 |
========== |
24 |
|
25 |
ImageMagick is a collection of tools and libraries for many image |
26 |
formats. |
27 |
|
28 |
Affected packages |
29 |
================= |
30 |
|
31 |
------------------------------------------------------------------- |
32 |
Package / Vulnerable / Unaffected |
33 |
------------------------------------------------------------------- |
34 |
1 media-gfx/imagemagick < 6.9.10.10-r1 >= 6.9.10.10-r1 |
35 |
< 7.0.8.10-r1 >= 7.0.8.10-r1 |
36 |
|
37 |
Description |
38 |
=========== |
39 |
|
40 |
If you process an image with ImageMagick and don't validate the file |
41 |
before (e.g. check magic byte), ImageMagick will call any coders found |
42 |
in the given file. So if ImageMagick will find Ghostscript for example, |
43 |
it will call Ghostscript. |
44 |
|
45 |
Due to multiple -dSAFER sandbox bypass vulnerabilities in Ghostscript, |
46 |
this can lead to arbitrary code execution. |
47 |
|
48 |
To mitigate this problem we install a policy.xml file by default which |
49 |
will disable PS, EPS, PDF, and XPS coders. |
50 |
|
51 |
Impact |
52 |
====== |
53 |
|
54 |
A remote attacker, by enticing a user to process a specially crafted |
55 |
image file, could execute arbitrary code with the privileges of the |
56 |
process or cause a Denial of Service condition. |
57 |
|
58 |
Workaround |
59 |
========== |
60 |
|
61 |
There is no known workaround at this time. |
62 |
|
63 |
Resolution |
64 |
========== |
65 |
|
66 |
All ImageMagick 6 users should upgrade to the latest version: |
67 |
|
68 |
# emerge --sync |
69 |
# emerge --ask --oneshot -v ">=media-gfx/imagemagick-6.9.10.10-r1" |
70 |
|
71 |
All ImageMagick 7 users should upgrade to the latest version: |
72 |
|
73 |
# emerge --sync |
74 |
# emerge --ask --oneshot -v ">=media-gfx/imagemagick-7.0.8.10-r1" |
75 |
|
76 |
References |
77 |
========== |
78 |
|
79 |
[ 1 ] Ghostscript contains multiple -dSAFER sandbox bypass |
80 |
vulnerabilities (VU#332928) |
81 |
https://www.kb.cert.org/vuls/id/332928 |
82 |
|
83 |
Availability |
84 |
============ |
85 |
|
86 |
This GLSA and any updates to it are available for viewing at |
87 |
the Gentoo Security Website: |
88 |
|
89 |
https://security.gentoo.org/glsa/201810-04 |
90 |
|
91 |
Concerns? |
92 |
========= |
93 |
|
94 |
Security is a primary focus of Gentoo Linux and ensuring the |
95 |
confidentiality and security of our users' machines is of utmost |
96 |
importance to us. Any security concerns should be addressed to |
97 |
security@g.o or alternatively, you may file a bug at |
98 |
https://bugs.gentoo.org. |
99 |
|
100 |
License |
101 |
======= |
102 |
|
103 |
Copyright 2018 Gentoo Foundation, Inc; referenced text |
104 |
belongs to its owner(s). |
105 |
|
106 |
The contents of this document are licensed under the |
107 |
Creative Commons - Attribution / Share Alike license. |
108 |
|
109 |
https://creativecommons.org/licenses/by-sa/2.5 |