From mboxrd@z Thu Jan 1 00:00:00 1970 From: Leo Famulari Subject: Requesting advice on ImageMagick popen() filename vulnerability (CVE-2016-5118) Date: Tue, 31 May 2016 13:02:05 -0400 Message-ID: <20160531170205.GA355@jasmine> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:44466) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b7n3d-0003pO-85 for guix-devel@gnu.org; Tue, 31 May 2016 13:02:22 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1b7n3Z-0001gv-3x for guix-devel@gnu.org; Tue, 31 May 2016 13:02:20 -0400 Received: from out2-smtp.messagingengine.com ([66.111.4.26]:41117) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b7n3X-0001fJ-Q0 for guix-devel@gnu.org; Tue, 31 May 2016 13:02:17 -0400 Received: from localhost (c-73-188-17-148.hsd1.pa.comcast.net [73.188.17.148]) by mail.messagingengine.com (Postfix) with ESMTPA id 4ADA3CCD88 for ; Tue, 31 May 2016 13:02:06 -0400 (EDT) Content-Disposition: inline List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: guix-devel@gnu.org CVE-2016-5118 is a bug in GraphicsMagick and ImageMagick whereby one can get shell execution by passing the libraries a file whose name begins with the pipe character, |. http://seclists.org/oss-sec/2016/q2/433 We (crudely) fixed this for GraphicsMagick in d8862778c1b. Now I see that ImageMagick has suggested a similar interim fix on their forums: https://www.imagemagick.org/discourse-server/viewtopic.php?f=2&t=29803#p134039 Also, they have begun committing mitigations to their Git repository: http://git.imagemagick.org/repos/ImageMagick/commit/ca430ff77794980941ff0fa0d2fc463b50c2c6b7 I plan to fix this in our package using the "crude" option until ImageMagick releases a new version, which seems to be happening every few days. Please let me know if you object to this solution.