CVE Vulnerabilities

CVE-2007-4988

Incorrect Conversion between Numeric Types

Published: Sep 24, 2007 | Modified: Apr 09, 2025
CVSS 3.x
7.8
HIGH
Source:
NVD
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
CVSS 2.x
6.8 MEDIUM
AV:N/AC:M/Au:N/C:P/I:P/A:P
RedHat/V2
RedHat/V3
Ubuntu
MEDIUM
root.io logo minimus.io logo echo.ai logo

Sign extension error in the ReadDIBImage function in ImageMagick before 6.3.5-9 allows context-dependent attackers to execute arbitrary code via a crafted width value in an image file, which triggers an integer overflow and a heap-based buffer overflow.

Weakness

When converting from one data type to another, such as long to integer, data can be omitted or translated in a way that produces unexpected values. If the resulting values are used in a sensitive context, then dangerous behaviors may occur.

Affected Software

NameVendorStart VersionEnd Version
ImagemagickImagemagick*6.3.5-9 (excluding)
Red Hat Enterprise Linux 3RedHatImageMagick-0:5.5.6-28*
Red Hat Enterprise Linux 4RedHatImageMagick-0:6.0.7.1-17.el4_6.1*
Red Hat Enterprise Linux 5RedHatImageMagick-0:6.2.8.0-4.el5_1.1*
GraphicsmagickUbuntudevel*
GraphicsmagickUbuntuedgy*
GraphicsmagickUbuntufeisty*
GraphicsmagickUbuntugutsy*
GraphicsmagickUbuntuhardy*
GraphicsmagickUbuntuintrepid*
GraphicsmagickUbuntuupstream*
ImagemagickUbuntudapper*
ImagemagickUbuntudevel*
ImagemagickUbuntuedgy*
ImagemagickUbuntufeisty*
ImagemagickUbuntugutsy*
ImagemagickUbuntuhardy*
ImagemagickUbuntuintrepid*
ImagemagickUbuntuupstream*

Potential Mitigations

References