Gentoo Logo

GraphicsMagick: Format string vulnerability


1.  Gentoo Linux Security Advisory

Version Information

Advisory Reference GLSA 200602-13 / graphicsmagick
Release Date February 26, 2006
Latest Revision February 26, 2006: 01
Impact normal
Exploitable remote
Package Vulnerable versions Unaffected versions Architecture(s)
media-gfx/graphicsmagick < 1.1.7 >= 1.1.7 All supported architectures

Related bugreports: #119476


A vulnerability in GraphicsMagick allows attackers to crash the application and potentially execute arbitrary code.

2.  Impact Information


GraphicsMagick is a collection of tools to read, write and manipulate images in many formats.


The SetImageInfo function was found vulnerable to a format string mishandling. Daniel Kobras discovered that the handling of "%"-escaped sequences in filenames passed to the function is inadequate in ImageMagick GLSA 200602-06 and the same vulnerability exists in GraphicsMagick.


By feeding specially crafted file names to GraphicsMagick an attacker can crash the program and possibly execute arbitrary code with the privileges of the user running GraphicsMagick.

3.  Resolution Information


There is no known workaround at this time.


All GraphicsMagick users should upgrade to the latest version:

Code Listing 3.1: Resolution

# emerge --sync
# emerge --ask --oneshot --verbose ">=media-gfx/graphicsmagick-1.1.7"

4.  References


Page updated February 26, 2006

Summary: This is a Gentoo Linux Security Advisory

Security Team
Contact Address

Donate to support our development efforts.

Copyright 2001-2015 Gentoo Foundation, Inc. Questions, Comments? Contact us.