ID CVE-2006-5456
Summary Multiple buffer overflows in GraphicsMagick before 1.1.7 and ImageMagick 6.0.7 allow user-assisted attackers to cause a denial of service and possibly execute arbitrary code via (1) a DCM image that is not properly handled by the ReadDCMImage function in coders/dcm.c, or (2) a PALM image that is not properly handled by the ReadPALMImage function in coders/palm.c.
References
Vulnerable Configurations
  • GraphicsMagick 1.0
    cpe:2.3:a:graphicsmagick:graphicsmagick:1.0
  • GraphicsMagick 1.0.6
    cpe:2.3:a:graphicsmagick:graphicsmagick:1.0.6
  • GraphicsMagick 1.1
    cpe:2.3:a:graphicsmagick:graphicsmagick:1.1
  • GraphicsMagick 1.1.3
    cpe:2.3:a:graphicsmagick:graphicsmagick:1.1.3
  • GraphicsMagick 1.1.4
    cpe:2.3:a:graphicsmagick:graphicsmagick:1.1.4
  • GraphicsMagick 1.1.5
    cpe:2.3:a:graphicsmagick:graphicsmagick:1.1.5
  • GraphicsMagick 1.1.6
    cpe:2.3:a:graphicsmagick:graphicsmagick:1.1.6
  • ImageMagick 6.0.7
    cpe:2.3:a:imagemagick:imagemagick:6.0.7
CVSS
Base: 5.1 (as of 24-10-2006 - 08:57)
Impact:
Exploitability:
CWE CWE-119
CAPEC
  • Buffer Overflow via Environment Variables
    This attack pattern involves causing a buffer overflow through manipulation of environment variables. Once the attacker finds that they can modify an environment variable, they may try to overflow associated buffers. This attack leverages implicit trust often placed in environment variables.
  • Overflow Buffers
    Buffer Overflow attacks target improper or missing bounds checking on buffer operations, typically triggered by input injected by an attacker. As a consequence, an attacker is able to write past the boundaries of allocated buffer regions in memory, causing a program crash or potentially redirection of execution as per the attackers' choice.
  • Client-side Injection-induced Buffer Overflow
    This type of attack exploits a buffer overflow vulnerability in targeted client software through injection of malicious content from a custom-built hostile service.
  • Filter Failure through Buffer Overflow
    In this attack, the idea is to cause an active filter to fail by causing an oversized transaction. An attacker may try to feed overly long input strings to the program in an attempt to overwhelm the filter (by causing a buffer overflow) and hoping that the filter does not fail securely (i.e. the user input is let into the system unfiltered).
  • MIME Conversion
    An attacker exploits a weakness in the MIME conversion routine to cause a buffer overflow and gain control over the mail server machine. The MIME system is designed to allow various different information formats to be interpreted and sent via e-mail. Attack points exist when data are converted to MIME compatible format and back.
  • Overflow Binary Resource File
    An attack of this type exploits a buffer overflow vulnerability in the handling of binary resources. Binary resources may include music files like MP3, image files like JPEG files, and any other binary file. These attacks may pass unnoticed to the client machine through normal usage of files, such as a browser loading a seemingly innocent JPEG file. This can allow the attacker access to the execution stack and execute arbitrary code in the target process. This attack pattern is a variant of standard buffer overflow attacks using an unexpected vector (binary files) to wrap its attack and open up a new attack vector. The attacker is required to either directly serve the binary content to the victim, or place it in a locale like a MP3 sharing application, for the victim to download. The attacker then is notified upon the download or otherwise locates the vulnerability opened up by the buffer overflow.
  • Buffer Overflow via Symbolic Links
    This type of attack leverages the use of symbolic links to cause buffer overflows. An attacker can try to create or manipulate a symbolic link file such that its contents result in out of bounds data. When the target software processes the symbolic link file, it could potentially overflow internal buffers with insufficient bounds checking.
  • Overflow Variables and Tags
    This type of attack leverages the use of tags or variables from a formatted configuration data to cause buffer overflow. The attacker crafts a malicious HTML page or configuration file that includes oversized strings, thus causing an overflow.
  • Buffer Overflow via Parameter Expansion
    In this attack, the target software is given input that the attacker knows will be modified and expanded in size during processing. This attack relies on the target software failing to anticipate that the expanded data may exceed some internal limit, thereby creating a buffer overflow.
  • Buffer Overflow in an API Call
    This attack targets libraries or shared code modules which are vulnerable to buffer overflow attacks. An attacker who has access to an API may try to embed malicious code in the API function call and exploit a buffer overflow vulnerability in the function's implementation. All clients that make use of the code library thus become vulnerable by association. This has a very broad effect on security across a system, usually affecting more than one software process.
  • Buffer Overflow in Local Command-Line Utilities
    This attack targets command-line utilities available in a number of shells. An attacker can leverage a vulnerability found in a command-line utility to escalate privilege to root.
Access
VectorComplexityAuthentication
NETWORK HIGH NONE
Impact
ConfidentialityIntegrityAvailability
PARTIAL PARTIAL PARTIAL
nessus via4
  • NASL family Oracle Linux Local Security Checks
    NASL id ORACLELINUX_ELSA-2007-0015.NASL
    description From Red Hat Security Advisory 2007:0015 : Updated ImageMagick packages that correct several security issues are now available. This update has been rated as having moderate security impact by the Red Hat Security Response Team. ImageMagick is an image display and manipulation tool for the X Window System that can read and write multiple image formats. Several security flaws were discovered in the way ImageMagick decodes DCM, PALM, and SGI graphic files. An attacker may be able to execute arbitrary code on a victim's machine if they were able to trick the victim into opening a specially crafted image file (CVE-2006-5456, CVE-2006-5868). A heap overflow flaw was found in ImageMagick. An attacker may be able to execute arbitrary code on a victim's machine if they were able to trick the victim into opening a specially crafted file (CVE-2006-2440). This issue only affected the version of ImageMagick distributed with Red Hat Enterprise Linux 4. Users of ImageMagick should upgrade to these updated packages, which contain backported patches to correct these issues.
    last seen 2019-02-21
    modified 2018-07-18
    plugin id 67439
    published 2013-07-12
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=67439
    title Oracle Linux 3 / 4 : ImageMagick (ELSA-2007-0015)
  • NASL family SuSE Local Security Checks
    NASL id SUSE_IMAGEMAGICK-2592.NASL
    description This update fixes a broken patch for CVE-2006-5456 and minor non-security issues. (CVE-2007-0770)
    last seen 2019-02-21
    modified 2012-05-17
    plugin id 29350
    published 2007-12-13
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=29350
    title SuSE 10 Security Update : ImageMagick (ZYPP Patch Number 2592)
  • NASL family SuSE Local Security Checks
    NASL id SUSE_IMAGEMAGICK-2585.NASL
    description This update fixes a broken patch for CVE-2006-5456 and minor non-security issues. (CVE-2007-0770)
    last seen 2019-02-21
    modified 2018-07-19
    plugin id 27107
    published 2007-10-17
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=27107
    title openSUSE 10 Security Update : ImageMagick (ImageMagick-2585)
  • NASL family CentOS Local Security Checks
    NASL id CENTOS_RHSA-2007-0015.NASL
    description Updated ImageMagick packages that correct several security issues are now available. This update has been rated as having moderate security impact by the Red Hat Security Response Team. ImageMagick is an image display and manipulation tool for the X Window System that can read and write multiple image formats. Several security flaws were discovered in the way ImageMagick decodes DCM, PALM, and SGI graphic files. An attacker may be able to execute arbitrary code on a victim's machine if they were able to trick the victim into opening a specially crafted image file (CVE-2006-5456, CVE-2006-5868). A heap overflow flaw was found in ImageMagick. An attacker may be able to execute arbitrary code on a victim's machine if they were able to trick the victim into opening a specially crafted file (CVE-2006-2440). This issue only affected the version of ImageMagick distributed with Red Hat Enterprise Linux 4. Users of ImageMagick should upgrade to these updated packages, which contain backported patches to correct these issues.
    last seen 2019-02-21
    modified 2018-11-10
    plugin id 24357
    published 2007-02-17
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=24357
    title CentOS 3 / 4 : ImageMagick (CESA-2007:0015)
  • NASL family Fedora Local Security Checks
    NASL id FEDORA_2007-1340.NASL
    description Maintainance update fixing several security issues and bugs. Note that Tenable Network Security has extracted the preceding description block directly from the Fedora security advisory. Tenable has attempted to automatically clean and format it as much as possible without introducing additional issues.
    last seen 2019-02-21
    modified 2015-10-21
    plugin id 27710
    published 2007-11-06
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=27710
    title Fedora 7 : GraphicsMagick-1.1.8-2.fc7 (2007-1340)
  • NASL family Red Hat Local Security Checks
    NASL id REDHAT-RHSA-2007-0015.NASL
    description Updated ImageMagick packages that correct several security issues are now available. This update has been rated as having moderate security impact by the Red Hat Security Response Team. ImageMagick is an image display and manipulation tool for the X Window System that can read and write multiple image formats. Several security flaws were discovered in the way ImageMagick decodes DCM, PALM, and SGI graphic files. An attacker may be able to execute arbitrary code on a victim's machine if they were able to trick the victim into opening a specially crafted image file (CVE-2006-5456, CVE-2006-5868). A heap overflow flaw was found in ImageMagick. An attacker may be able to execute arbitrary code on a victim's machine if they were able to trick the victim into opening a specially crafted file (CVE-2006-2440). This issue only affected the version of ImageMagick distributed with Red Hat Enterprise Linux 4. Users of ImageMagick should upgrade to these updated packages, which contain backported patches to correct these issues.
    last seen 2019-02-21
    modified 2018-11-16
    plugin id 24363
    published 2007-02-17
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=24363
    title RHEL 2.1 / 3 / 4 : ImageMagick (RHSA-2007:0015)
  • NASL family Debian Local Security Checks
    NASL id DEBIAN_DSA-1213.NASL
    description Several remote vulnerabilities have been discovered in Imagemagick, a collection of image manipulation programs, which may lead to the execution of arbitrary code. The Common Vulnerabilities and Exposures project identifies the following problems : - CVE-2006-0082 Daniel Kobras discovered that Imagemagick is vulnerable to format string attacks in the filename parsing code. - CVE-2006-4144 Damian Put discovered that Imagemagick is vulnerable to buffer overflows in the module for SGI images. - CVE-2006-5456 M Joonas Pihlaja discovered that Imagemagick is vulnerable to buffer overflows in the module for DCM and PALM images. - CVE-2006-5868 Daniel Kobras discovered that Imagemagick is vulnerable to buffer overflows in the module for SGI images. This update also addresses regressions in the XCF codec, which were introduced in the previous security update.
    last seen 2019-02-21
    modified 2018-08-09
    plugin id 23662
    published 2006-11-20
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=23662
    title Debian DSA-1213-1 : imagemagick - several vulnerabilities
  • NASL family Slackware Local Security Checks
    NASL id SLACKWARE_SSA_2007-066-06.NASL
    description A new imagemagick package is available for Slackware 11.0 to fix security issues.
    last seen 2019-02-21
    modified 2018-08-09
    plugin id 24792
    published 2007-03-12
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=24792
    title Slackware 11.0 : imagemagick (SSA:2007-066-06)
  • NASL family Mandriva Local Security Checks
    NASL id MANDRAKE_MDKSA-2006-193.NASL
    description Multiple buffer overflows in GraphicsMagick before 1.1.7 and ImageMagick 6.0.7 allow user-assisted attackers to cause a denial of service and possibly execute execute arbitrary code via (1) a DCM image that is not properly handled by the ReadDCMImage function in coders/dcm.c, or (2) a PALM image that is not properly handled by the ReadPALMImage function in coders/palm.c. Updated packages have been patched to correct these issues.
    last seen 2019-02-21
    modified 2018-07-19
    plugin id 24578
    published 2007-02-18
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=24578
    title Mandrake Linux Security Advisory : ImageMagick (MDKSA-2006:193)
  • NASL family Ubuntu Local Security Checks
    NASL id UBUNTU_USN-422-1.NASL
    description Vladimir Nadvornik discovered that the fix for CVE-2006-5456, released in USN-372-1, did not correctly solve the original flaw in PALM image handling. By tricking a user into processing a specially crafted image with an application that uses imagemagick, an attacker could execute arbitrary code with the user's privileges. Note that Tenable Network Security has extracted the preceding description block directly from the Ubuntu security advisory. Tenable has attempted to automatically clean and format it as much as possible without introducing additional issues.
    last seen 2019-02-21
    modified 2018-11-28
    plugin id 28014
    published 2007-11-10
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=28014
    title Ubuntu 5.10 / 6.06 LTS / 6.10 : imagemagick vulnerabilities (USN-422-1)
  • NASL family SuSE Local Security Checks
    NASL id SUSE_GRAPHICSMAGICK-2593.NASL
    description This update fixes a broken patch for CVE-2006-5456 and minor non-security issues. (CVE-2007-0770)
    last seen 2019-02-21
    modified 2018-07-19
    plugin id 27102
    published 2007-10-17
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=27102
    title openSUSE 10 Security Update : GraphicsMagick (GraphicsMagick-2593)
  • NASL family Ubuntu Local Security Checks
    NASL id UBUNTU_USN-372-1.NASL
    description M. Joonas Pihlaja discovered that ImageMagick did not sufficiently verify the validity of PALM and DCM images. When processing a specially crafted image with an application that uses imagemagick, this could be exploited to execute arbitrary code with the application's privileges. Note that Tenable Network Security has extracted the preceding description block directly from the Ubuntu security advisory. Tenable has attempted to automatically clean and format it as much as possible without introducing additional issues.
    last seen 2019-02-21
    modified 2018-12-01
    plugin id 27953
    published 2007-11-10
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=27953
    title Ubuntu 5.04 / 5.10 / 6.06 LTS / 6.10 : imagemagick vulnerability (USN-372-1)
  • NASL family SuSE Local Security Checks
    NASL id SUSE_IMAGEMAGICK-2239.NASL
    description Two security problems were found in GraphicsMagick which are also present in ImageMagick. - Multiple buffer overflows in ImageMagick allowed user-assisted attackers to cause a denial of service and possibly execute execute arbitrary code via (1) a DCM image that is not properly handled by the ReadDCMImage function in coders/dcm.c, or (2) a PALM image that is not properly handled by the ReadPALMImage function in coders/palm.c. (CVE-2006-5456) Additionally a segfault regression when converting a PGM image was fixed on SLE 10.
    last seen 2019-02-21
    modified 2014-10-28
    plugin id 29348
    published 2007-12-13
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=29348
    title SuSE 10 Security Update : ImageMagick (ZYPP Patch Number 2239)
  • NASL family SuSE Local Security Checks
    NASL id SUSE_IMAGEMAGICK-2235.NASL
    description Two security problems were found in GraphicsMagick which are also present in ImageMagick. CVE-2006-5456: Multiple buffer overflows in ImageMagick allowed user-assisted attackers to cause a denial of service and possibly execute arbitrary code via (1) a DCM image that is not properly handled by the ReadDCMImage function in coders/dcm.c, or (2) a PALM image that is not properly handled by the ReadPALMImage function in coders/palm.c. Additionaly a segfault regression when converting a PGM image was fixed on SLE 10.
    last seen 2019-02-21
    modified 2018-07-19
    plugin id 27105
    published 2007-10-17
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=27105
    title openSUSE 10 Security Update : ImageMagick (ImageMagick-2235)
  • NASL family Gentoo Local Security Checks
    NASL id GENTOO_GLSA-200611-07.NASL
    description The remote host is affected by the vulnerability described in GLSA-200611-07 (GraphicsMagick: PALM and DCM buffer overflows) M. Joonas Pihlaja has reported that a boundary error exists within the ReadDCMImage() function of coders/dcm.c, causing the improper handling of DCM images. Pihlaja also reported that there are several boundary errors in the ReadPALMImage() function of coders/palm.c, similarly causing the improper handling of PALM images. Impact : An attacker could entice a user to open a specially crafted DCM or PALM image with GraphicsMagick, and possibly execute arbitrary code with the privileges of the user running GraphicsMagick. Workaround : There is no known workaround at this time.
    last seen 2019-02-21
    modified 2018-07-11
    plugin id 23672
    published 2006-11-20
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=23672
    title GLSA-200611-07 : GraphicsMagick: PALM and DCM buffer overflows
  • NASL family Gentoo Local Security Checks
    NASL id GENTOO_GLSA-200611-19.NASL
    description The remote host is affected by the vulnerability described in GLSA-200611-19 (ImageMagick: PALM and DCM buffer overflows) M. Joonas Pihlaja has reported that a boundary error exists within the ReadDCMImage() function of coders/dcm.c, causing the improper handling of DCM images. Pihlaja also reported that there are several boundary errors in the ReadPALMImage() function of coders/palm.c, similarly causing the improper handling of PALM images. Impact : An attacker could entice a user to open a specially crafted DCM or PALM image with ImageMagick, and possibly execute arbitrary code with the privileges of the user running ImageMagick. Workaround : There is no known workaround at this time.
    last seen 2019-02-21
    modified 2018-07-11
    plugin id 23727
    published 2006-11-27
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=23727
    title GLSA-200611-19 : ImageMagick: PALM and DCM buffer overflows
oval via4
accepted 2013-04-29T04:21:58.509-04:00
class vulnerability
contributors
  • name Aharon Chernin
    organization SCAP.com, LLC
  • name Dragos Prisaca
    organization G2, Inc.
definition_extensions
  • comment The operating system installed on the system is Red Hat Enterprise Linux 3
    oval oval:org.mitre.oval:def:11782
  • comment CentOS Linux 3.x
    oval oval:org.mitre.oval:def:16651
  • comment The operating system installed on the system is Red Hat Enterprise Linux 4
    oval oval:org.mitre.oval:def:11831
  • comment CentOS Linux 4.x
    oval oval:org.mitre.oval:def:16636
  • comment Oracle Linux 4.x
    oval oval:org.mitre.oval:def:15990
description Multiple buffer overflows in GraphicsMagick before 1.1.7 and ImageMagick 6.0.7 allow user-assisted attackers to cause a denial of service and possibly execute arbitrary code via (1) a DCM image that is not properly handled by the ReadDCMImage function in coders/dcm.c, or (2) a PALM image that is not properly handled by the ReadPALMImage function in coders/palm.c.
family unix
id oval:org.mitre.oval:def:9765
status accepted
submitted 2010-07-09T03:56:16-04:00
title Multiple buffer overflows in GraphicsMagick before 1.1.7 and ImageMagick 6.0.7 allow user-assisted attackers to cause a denial of service and possibly execute arbitrary code via (1) a DCM image that is not properly handled by the ReadDCMImage function in coders/dcm.c, or (2) a PALM image that is not properly handled by the ReadPALMImage function in coders/palm.c.
version 23
redhat via4
advisories
rhsa
id RHSA-2007:0015
rpms
  • ImageMagick-0:5.5.6-24
  • ImageMagick-c++-0:5.5.6-24
  • ImageMagick-c++-devel-0:5.5.6-24
  • ImageMagick-devel-0:5.5.6-24
  • ImageMagick-perl-0:5.5.6-24
  • ImageMagick-0:6.0.7.1-16.0.3
  • ImageMagick-c++-0:6.0.7.1-16.0.3
  • ImageMagick-c++-devel-0:6.0.7.1-16.0.3
  • ImageMagick-devel-0:6.0.7.1-16.0.3
  • ImageMagick-perl-0:6.0.7.1-16.0.3
refmap via4
bid 20707
bugtraq
  • 20061127 rPSA-2006-0218-1 ImageMagick
  • 20070208 rPSA-2007-0029-1 ImageMagick
confirm
debian DSA-1213
gentoo
  • GLSA-200611-07
  • GLSA-200611-19
mandriva
  • MDKSA-2006:193
  • MDKSA-2007:041
osvdb 29990
secunia
  • 22569
  • 22572
  • 22601
  • 22604
  • 22819
  • 22834
  • 22998
  • 23090
  • 23121
  • 24186
  • 24196
  • 24284
  • 24458
sgi 20070201-01-P
slackware SSA:2007-066-06
suse
  • SUSE-SA:2006:066
  • SUSE-SR:2007:003
ubuntu
  • USN-372-1
  • USN-422-1
vupen
  • ADV-2006-4170
  • ADV-2006-4171
xf imagemagick-graphicsmagick-palm-bo(29816)
statements via4
contributor Mark J Cox
lastmodified 2007-03-14
organization Red Hat
statement Red Hat Enterprise Linux 5 is not vulnerable to this issue as it contains a backported patch.
Last major update 20-09-2011 - 00:00
Published 23-10-2006 - 13:07
Last modified 17-10-2018 - 17:43
Back to Top