From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 71A42138334 for ; Sat, 6 Oct 2018 17:13:34 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 3460AE0AAC; Sat, 6 Oct 2018 17:12:53 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id D2066E09F8 for ; Sat, 6 Oct 2018 17:10:39 +0000 (UTC) Received: from localhost (pool-71-163-21-11.washdc.fios.verizon.net [71.163.21.11]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: bman) by smtp.gentoo.org (Postfix) with ESMTPSA id 466E8335C8F for ; Sat, 6 Oct 2018 17:10:38 +0000 (UTC) Date: Sat, 6 Oct 2018 13:10:35 -0400 From: Aaron Bauman To: gentoo-announce@lists.gentoo.org Subject: [gentoo-announce] [ GLSA 201810-04 ] ImageMagick: Security hardening Message-ID: <20181006171035.GF31755@monkey> Reply-To: security@gentoo.org Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-announce@lists.gentoo.org MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="dWYAkE0V1FpFQHQ3" Content-Disposition: inline User-Agent: Mutt/1.10.1 (2018-07-13) X-Archives-Salt: 4f79c522-5eab-4d43-a3d5-47401bc53d2e X-Archives-Hash: 9d8964f7760e8030d6961054bde8216d --dWYAkE0V1FpFQHQ3 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Gentoo Linux Security Advisory GLSA 201810-04 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - https://security.gentoo.org/ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Severity: Normal Title: ImageMagick: Security hardening Date: October 06, 2018 Bugs: #664236 ID: 201810-04 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Synopsis =3D=3D=3D=3D=3D=3D=3D=3D 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. Background =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D ImageMagick is a collection of tools and libraries for many image formats. Affected packages =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D ------------------------------------------------------------------- Package / Vulnerable / Unaffected ------------------------------------------------------------------- 1 media-gfx/imagemagick < 6.9.10.10-r1 >=3D 6.9.10.10-r1=20 < 7.0.8.10-r1 >=3D 7.0.8.10-r1=20 Description =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D 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. Due to multiple -dSAFER sandbox bypass vulnerabilities in Ghostscript, this can lead to arbitrary code execution. To mitigate this problem we install a policy.xml file by default which will disable PS, EPS, PDF, and XPS coders. Impact =3D=3D=3D=3D=3D=3D 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. Workaround =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D There is no known workaround at this time. Resolution =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D All ImageMagick 6 users should upgrade to the latest version: # emerge --sync # emerge --ask --oneshot -v ">=3Dmedia-gfx/imagemagick-6.9.10.10-r1" All ImageMagick 7 users should upgrade to the latest version: # emerge --sync # emerge --ask --oneshot -v ">=3Dmedia-gfx/imagemagick-7.0.8.10-r1" References =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D [ 1 ] Ghostscript contains multiple -dSAFER sandbox bypass vulnerabilities (VU#332928) https://www.kb.cert.org/vuls/id/332928 Availability =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D This GLSA and any updates to it are available for viewing at the Gentoo Security Website: https://security.gentoo.org/glsa/201810-04 Concerns? =3D=3D=3D=3D=3D=3D=3D=3D=3D Security is a primary focus of Gentoo Linux and ensuring the confidentiality and security of our users' machines is of utmost importance to us. Any security concerns should be addressed to security@gentoo.org or alternatively, you may file a bug at https://bugs.gentoo.org. License =3D=3D=3D=3D=3D=3D=3D Copyright 2018 Gentoo Foundation, Inc; referenced text belongs to its owner(s). The contents of this document are licensed under the Creative Commons - Attribution / Share Alike license. https://creativecommons.org/licenses/by-sa/2.5 --dWYAkE0V1FpFQHQ3 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCAAdFiEEiDRK3jyVBE/RkymqpRQw84X1dt0FAlu47IsACgkQpRQw84X1 dt1JyAf/YuOSep3SpQZ8tInGOJ9K42zg0B3hwNWixEpiFn13f++Q+GbGVglKHt4C qRxMlk1VOdgntZDIrWj+fIRUCNtYOiWLPbX50Qt93hRpuFhC5Q3K+u/fhB5f3R4b 0Gfgf/8LgmmIemEeGJNEDWgDcvlYi7kBq0hEk10bK+OrATZfRMD9rINKcmZfI607 9O+t0QBukWFuQiOX3xY5rclolBd3vxm7PhI3krLhaXgy1dRL1J1s4/Z+QF/C+VgD 5u5NM1pjPeys/wYU1yS9LPqvMA1KTR5dhwq9gVkwPf6c1EGajxQhrpUUBV+6KyPS di8ckQ2hLN1gDpeQ+azH/IdvSBBAIA== =oOg9 -----END PGP SIGNATURE----- --dWYAkE0V1FpFQHQ3--