ImageMagick ReadDCMImage() function buffer overflow
| imagemagick-readdcmimage-bo (33376) |
Description:
ImageMagick is vulnerable to a heap-based buffer overflow, caused by an integer overflow in the ReadDCMImage() function. By creating a malicious DCM image file and persuading a victim to open the file, a remote attacer could overflow a buffer and execute arbitrary code on the system with the privileges of the victim.
Platforms Affected:
- Canonical, Ubuntu 6.06 LTS
- Canonical, Ubuntu 6.10
- Canonical, Ubuntu 7.04
- Gentoo, Linux
- ImageMagick, ImageMagick 6.2.9
- ImageMagick, ImageMagick 6.3.1
- ImageMagick, ImageMagick 6.3.2
- ImageMagick, ImageMagick 6.3.3-3
- ImageMagick, ImageMagick 6.3.x
- MandrakeSoft, Mandrake Linux 2007 X86_64
- MandrakeSoft, Mandrake Linux 2007
- MandrakeSoft, Mandrake Linux 2007.1 X86_64
- MandrakeSoft, Mandrake Linux 2007.1
- MandrakeSoft, Mandrake Linux 2008.0 X86_64
- MandrakeSoft, Mandrake Linux Corporate Server 3.0 X86_64
- MandrakeSoft, Mandrake Linux Corporate Server 3.0
- MandrakeSoft, Mandrake Linux Corporate Server 4.0 X86_64
- MandrakeSoft, Mandrake Linux Corporate Server 4.0
- RedHat, Enterprise Linux 2.1 WS
- RedHat, Enterprise Linux 2.1 ES
- RedHat, Enterprise Linux 2.1 AS
- RedHat, Enterprise Linux 3 ES
- RedHat, Enterprise Linux 3 Desktop
- RedHat, Enterprise Linux 3 WS
- RedHat, Enterprise Linux 3 AS
- RedHat, Enterprise Linux 4 ES
- RedHat, Enterprise Linux 4 Desktop
- RedHat, Enterprise Linux 4 AS
- RedHat, Enterprise Linux 4 WS
- RedHat, Enterprise Linux 5 Client Workstation
- RedHat, Enterprise Linux 5
- RedHat, Enterprise Linux 5 Client
- RedHat, Linux Advanced Workstation 2.1 Itanium
Remedy:
Upgrade to the latest version of ImageMagick (6.3.3-5 or later), available from SourceForge.net Files. See References.
For Gentoo Linux (ImageMagick):
Refer to GLSA 200705-13 for patch, upgrade, or suggested workaround information. See References.
For Ubuntu Linux:
Refer to USN-481-1 for patch, upgrade, or suggested workaround information. See References.
For Mandriva Linux (ImageMagick):
Refer to MDKSA-2007:147 for patch, upgrade, or suggested workaround information. See References.
For other distributions:
Contact your vendor for upgrade or patch information.
Consequences:
Gain Access
References:
- iDefense Labs PUBLIC ADVISORY: 03.31.07, Multiple Vendor ImageMagick DCM and XWD Buffer Overflow Vulnerabilities at http://labs.idefense.com/intelligence/vulnerabilities/display.php?id=496.
- ImageMagick Web site, Introduction to ImageMagick at http://www.imagemagick.org/script/index.php.
- SourceForge.net, ImageMagick at http://sourceforge.net/project/showfiles.php?group_id=24099.
- ASA-2008-167: ImageMagick security update (RHSA-2008-0165)
- ASA-2008-168: ImageMagick security update (RHSA-2008-0145)
- BID-23252: RETIRED: ImageMagic Multiple Integer Overflow Vulnerabilities
- BID-23347: ImageMagick DCM XWD Formats Multiple Integer Overflow Vulnerabilities
- CVE-2007-1797: Multiple integer overflows in ImageMagick before 6.3.3-5 allow remote attackers to execute arbitrary code via (1) a crafted DCM image, which results in a heap-based overflow in the ReadDCMImage function, or (2) the (a) colors or (b) comments field in a crafted XWD image, which results in a heap-based overflow in the ReadXWDImage function, different issues than CVE-2007-1667.
- FrSIRT/ADV-2007-1200: ImageMagick ReadDCMImage() and ReadXWDImage() Integer Overflow Issues
- GLSA-200705-13: ImageMagick: Multiple buffer overflows
- MDKSA-2007:147: Updated ImageMagick packages fix multiple vulnerabilities
- RHSA-2008-0145: Moderate: ImageMagick security update
- RHSA-2008-0165: Moderate: ImageMagick security update
- SA24721: ImageMagick DCM and XWD Buffer Overflows
- SECTRACK ID: 1017839: ImageMagick DCM and XCM Buffer Overflows Let Remote Users Execute Arbitrary Code
- USN-481-1: ImageMagick vulnerabilities
Reported:
Mar 31, 2007
The information within this database may change without notice. Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. In no event shall the author/distributor (Internet Security Systems X-Force) be held liable for any damages whatsoever arising out of or in connection with the use or spread of this information.
Copyright (c) 1994-2008 Internet Security Systems, Inc. All rights reserved worldwide.
For corrections or additions please email xforce@iss.net
