Gentoo Logo

ImageMagick, imlib, imlib2: BMP decoding buffer overflows


1.  Gentoo Linux Security Advisory

Version Information

Advisory Reference GLSA 200409-12 / imagemagick imlib
Release Date September 08, 2004
Latest Revision September 08, 2004: 01
Impact normal
Exploitable remote
Package Vulnerable versions Unaffected versions Architecture(s)
media-gfx/imagemagick < >= All supported architectures
media-libs/imlib < 1.9.14-r2 >= 1.9.14-r2 All supported architectures
media-libs/imlib2 < 1.1.2 >= 1.1.2 All supported architectures

Related bugreports: #62309, #62487


ImageMagick, imlib and imlib2 contain exploitable buffer overflow vulnerabilities in the BMP image processing code.

2.  Impact Information


ImageMagick is a suite of image manipulation utilities and libraries used for a wide variety of image formats. imlib is a general image loading and rendering library.


Due to improper bounds checking, ImageMagick and imlib are vulnerable to a buffer overflow when decoding runlength-encoded bitmaps. This bug can be exploited using a specially-crafted BMP image and could potentially allow remote code execution when this image is decoded by the user.


A specially-crafted runlength-encoded BMP could lead ImageMagick and imlib to crash or potentially execute arbitrary code.

3.  Resolution Information


There is no known workaround at this time.


All ImageMagick users should upgrade to the latest version:

Code Listing 3.1: Resolution

# emerge sync
# emerge -pv ">=media-gfx/imagemagick-"
# emerge ">=media-gfx/imagemagick-"

All imlib users should upgrade to the latest version:

Code Listing 3.2: Resolution

# emerge sync
# emerge -pv ">=media-libs/imlib-1.9.14-r2"
# emerge ">=media-libs/imlib-1.9.14-r2"

All imlib2 users should upgrade to the latest version:

Code Listing 3.3: Resolution

# emerge sync
# emerge -pv ">=media-libs/imlib2-1.1.2"
# emerge ">=media-libs/imlib2-1.1.2"

4.  References


Page updated September 08, 2004

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.