GLSA-200409-12 : ImageMagick, imlib, imlib2: BMP decoding buffer overflows

This script is Copyright (C) 2004-2014 Tenable Network Security, Inc.


Synopsis :

The remote Gentoo host is missing one or more security-related
patches.

Description :

The remote host is affected by the vulnerability described in GLSA-200409-12
(ImageMagick, imlib, imlib2: BMP decoding buffer overflows)

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.

Impact :

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

Workaround :

There is no known workaround at this time.

See also :

http://www.nessus.org/u?b267cc28
http://securitytracker.com/alerts/2004/Aug/1011104.html
http://securitytracker.com/alerts/2004/Aug/1011105.html
http://www.gentoo.org/security/en/glsa/glsa-200409-12.xml

Solution :

All ImageMagick users should upgrade to the latest version:
# emerge sync
# emerge -pv '>=media-gfx/imagemagick-6.0.7.1'
# emerge '>=media-gfx/imagemagick-6.0.7.1'
All imlib users should upgrade to the latest version:
# 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:
# emerge sync
# emerge -pv '>=media-libs/imlib2-1.1.2'
# emerge '>=media-libs/imlib2-1.1.2'

Risk factor :

High / CVSS Base Score : 7.5
(CVSS2#AV:N/AC:L/Au:N/C:P/I:P/A:P)

Family: Gentoo Local Security Checks

Nessus Plugin ID: 14677 (gentoo_GLSA-200409-12.nasl)

Bugtraq ID:

CVE ID: CVE-2004-0802
CVE-2004-0817