CVE-2007-4988
published 2007-09-24CVE-2007-4988: 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…
PriorityP430high7.8CVSS 3.1
AVLACLPRNUIRSUCHIHAH
EPSS
3.09%
86.4th percentile
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.
Affected
14 ranges
| Vendor | Product | Version range | Fixed in |
|---|---|---|---|
| canonical | ubuntu_linux | — | — |
| canonical | ubuntu_linux | — | — |
| canonical | ubuntu_linux | — | — |
| debian | graphicsmagick | < graphicsmagick 1.1.11-1 (bookworm) | graphicsmagick 1.1.11-1 (bookworm) |
| debian | imagemagick | < graphicsmagick 1.1.11-1 (bookworm) | graphicsmagick 1.1.11-1 (bookworm) |
| graphicsmagick | graphicsmagick | >= 0 < 1.1.11-1 | 1.1.11-1 |
| graphicsmagick | graphicsmagick | >= 0 < 1.1.11-1 | 1.1.11-1 |
| graphicsmagick | graphicsmagick | >= 0 < 1.1.11-1 | 1.1.11-1 |
| graphicsmagick | graphicsmagick | >= 0 < 1.1.11-1 | 1.1.11-1 |
| imagemagick | imagemagick | < 6.3.5-9 | 6.3.5-9 |
| imagemagick | imagemagick | >= 0 < 7:6.2.4.5.dfsg1-2 | 7:6.2.4.5.dfsg1-2 |
| imagemagick | imagemagick | >= 0 < 7:6.2.4.5.dfsg1-2 | 7:6.2.4.5.dfsg1-2 |
| imagemagick | imagemagick | >= 0 < 7:6.2.4.5.dfsg1-2 | 7:6.2.4.5.dfsg1-2 |
| imagemagick | imagemagick | >= 0 < 7:6.2.4.5.dfsg1-2 | 7:6.2.4.5.dfsg1-2 |
CVSS provenance
nvdv3.17.8HIGHCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
nvdv2.06.8MEDIUMAV:N/AC:M/Au:N/C:P/I:P/A:P
osv7.8HIGH
vendor_debian7.8MEDIUM
vendor_redhat7.8HIGH
Stop checking back — get the weekly exploitation signal.
Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.
Ubuntu
ImageMagick vulnerabilities
vendor_ubuntu·2007-10-03
CVE-2007-4985 ImageMagick vulnerabilities
Title: ImageMagick vulnerabilities
Summary: ImageMagick vulnerabilities
Multiple vulnerabilities were found in the image decoders of ImageMagick.
If a user or automated system were tricked into processing a malicious
DCM, DIB, XBM, XCF, or XWD image, a remote attacker could execute arbitrary
code with user privileges.
Instructions: In general, a standard system upgrade is sufficient to effect the
necessary changes.
Red Hat
Integer overflow in ImageMagick's DIB coder
vendor_redhat·2007-09-19·CVSS 7.8
CVE-2007-4988 [HIGH] CWE-190 Integer overflow in ImageMagick's DIB coder
Integer overflow in ImageMagick's DIB coder
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.
Debian
CVE-2007-4988: graphicsmagick - Sign extension error in the ReadDIBImage function in ImageMagick before 6.3.5-9 ...
vendor_debian·2007·CVSS 7.8
CVE-2007-4988 [HIGH] CVE-2007-4988: graphicsmagick - Sign extension error in the ReadDIBImage function in ImageMagick before 6.3.5-9 ...
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.
Scope: local
bookworm: resolved (fixed in 1.1.11-1)
bullseye: resolved (fixed in 1.1.11-1)
forky: resolved (fixed in 1.1.11-1)
sid: resolved (fixed in 1.1.11-1)
trixie: resolved (fixed in 1.1.11-1)
GHSA
GHSA-xhjj-jg7j-pqrx: Sign extension error in the ReadDIBImage function in ImageMagick before 6
ghsa_unreviewed·2022-05-01
CVE-2007-4988 [MEDIUM] CWE-119 GHSA-xhjj-jg7j-pqrx: Sign extension error in the ReadDIBImage function in ImageMagick before 6
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.
OSV
CVE-2007-4988: Sign extension error in the ReadDIBImage function in ImageMagick before 6
osv·2007-09-24·CVSS 7.8
CVE-2007-4988 [HIGH] CVE-2007-4988: Sign extension error in the ReadDIBImage function in ImageMagick before 6
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.
No detection rules found.
No public exploits indexed.
CWE
Incorrect Conversion between Numeric Types
mitre_cwe
CWE-681 Incorrect Conversion between Numeric Types
CWE-681: Incorrect Conversion between Numeric Types
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.
Modes of Introduction:
Phase: Implementation
Common Consequences:
Scope: Other, Integrity. Impact: Unexpected State, Quality Degradation. The program could wind up using the wrong number and generate incorrect results. If the number is used to allocate resources or make a security decision, then this could introduce a vulnerability.
Detection Methods:
Automated Static Analysis: Automated static analysis, commonly referred to as Static Application Security Testing (SAST), can find some instances of
CWE
Unexpected Sign Extension
mitre_cwe
CWE-194 Unexpected Sign Extension
CWE-194: Unexpected Sign Extension
The product performs an operation on a number that causes it to be sign extended when it is transformed into a larger data type. When the original number is negative, this can produce unexpected values that lead to resultant weaknesses.
Modes of Introduction:
Phase: Implementation
Common Consequences:
Scope: Integrity, Confidentiality, Availability, Other. Impact: Read Memory, Modify Memory, Other. When an unexpected sign extension occurs in code that operates directly on memory buffers, such as a size value or a memory index, then it could cause the program to write or read outside the boundaries of the intended buffer. If the numeric value is associated with an application-level resource, such as a quantity or price for a product in an e-commerce sit
http://bugs.gentoo.org/show_bug.cgi?id=186030http://labs.idefense.com/intelligence/vulnerabilities/display.php?id=597http://secunia.com/advisories/26926http://secunia.com/advisories/27048http://secunia.com/advisories/27309http://secunia.com/advisories/27364http://secunia.com/advisories/27439http://secunia.com/advisories/28721http://secunia.com/advisories/29786http://secunia.com/advisories/36260http://security.gentoo.org/glsa/glsa-200710-27.xmlhttp://studio.imagemagick.org/pipermail/magick-announce/2007-September/000037.htmlhttp://www.debian.org/security/2009/dsa-1858http://www.imagemagick.org/script/changelog.phphttp://www.mandriva.com/en/security/advisories?name=MDVSA-2008:035http://www.novell.com/linux/security/advisories/2007_23_sr.htmlhttp://www.redhat.com/support/errata/RHSA-2008-0145.htmlhttp://www.securityfocus.com/archive/1/483572/100/0/threadedhttp://www.securityfocus.com/bid/25765http://www.securitytracker.com/id?1018729http://www.ubuntu.com/usn/usn-523-1http://www.vupen.com/english/advisories/2007/3245https://exchange.xforce.ibmcloud.com/vulnerabilities/36737https://issues.rpath.com/browse/RPL-1743https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A9656http://bugs.gentoo.org/show_bug.cgi?id=186030http://labs.idefense.com/intelligence/vulnerabilities/display.php?id=597http://secunia.com/advisories/26926http://secunia.com/advisories/27048http://secunia.com/advisories/27309http://secunia.com/advisories/27364http://secunia.com/advisories/27439http://secunia.com/advisories/28721http://secunia.com/advisories/29786http://secunia.com/advisories/36260http://security.gentoo.org/glsa/glsa-200710-27.xmlhttp://studio.imagemagick.org/pipermail/magick-announce/2007-September/000037.htmlhttp://www.debian.org/security/2009/dsa-1858http://www.imagemagick.org/script/changelog.phphttp://www.mandriva.com/en/security/advisories?name=MDVSA-2008:035http://www.novell.com/linux/security/advisories/2007_23_sr.htmlhttp://www.redhat.com/support/errata/RHSA-2008-0145.htmlhttp://www.securityfocus.com/archive/1/483572/100/0/threadedhttp://www.securityfocus.com/bid/25765http://www.securitytracker.com/id?1018729http://www.ubuntu.com/usn/usn-523-1http://www.vupen.com/english/advisories/2007/3245https://exchange.xforce.ibmcloud.com/vulnerabilities/36737https://issues.rpath.com/browse/RPL-1743https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A9656
2007-09-24
Published