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

high Nessus Plugin ID 14677

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.

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'

See Also

http://www.nessus.org/u?b267cc28

https://securitytracker.com/id/1011104

https://securitytracker.com/id/1011105

https://security.gentoo.org/glsa/200409-12

Plugin Details

Severity: High

ID: 14677

File Name: gentoo_GLSA-200409-12.nasl

Version: 1.20

Type: local

Published: 9/8/2004

Updated: 1/6/2021

Supported Sensors: Nessus

Risk Information

VPR

Risk Factor: Medium

Score: 6.3

CVSS v2

Risk Factor: High

Base Score: 7.5

Vector: CVSS2#AV:N/AC:L/Au:N/C:P/I:P/A:P

Vulnerability Information

CPE: p-cpe:/a:gentoo:linux:imagemagick, p-cpe:/a:gentoo:linux:imlib, p-cpe:/a:gentoo:linux:imlib2, cpe:/o:gentoo:linux

Required KB Items: Host/local_checks_enabled, Host/Gentoo/release, Host/Gentoo/qpkg-list

Patch Publication Date: 9/8/2004

Reference Information

CVE: CVE-2004-0802, CVE-2004-0817

GLSA: 200409-12