CVE-2007-4988
Description
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.
Severity
HIGH
CVSS v3
7.8
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H · source nvd
Exploit chance (EPSS)
3.093%
chance of exploitation in the next 30 days
higher than 88% of scored CVEs · 2026-11-17
CISA KEV
Not listed
Public exploit code
Yes
Exploit references (NVD and CNA): 1
Metasploit modules: 0
Nuclei templates: 0
Weakness
- CWE-681: Incorrect Conversion between Numeric Types
Timeline
- 2007-09-24Published by the CNA22:00 UTC
Affected products
Products listed as vulnerable. Upgrade to the version under "Fixed in", or a later one.
| Product | Vulnerable versions | Fixed in |
|---|---|---|
| imagemagick imagemagick | before 6.3.5-9fixed in 6.3.5-9 | 6.3.5-9 |
| canonical ubuntu_linux | 6.06no fix listed6.10no fix listed7.04no fix listed | not listednot listednot listed |
References
- http://www.securityfocus.com/bid/25765
- http://security.gentoo.org/glsa/glsa-200710-27.xml
- http://www.debian.org/security/2009/dsa-1858
- http://www.mandriva.com/en/security/advisories?name=MDVSA-2008:035
- http://www.novell.com/linux/security/advisories/2007_23_sr.html
- http://www.redhat.com/support/errata/RHSA-2008-0145.html
- http://www.ubuntu.com/usn/usn-523-1
- http://bugs.gentoo.org/show_bug.cgi?id=186030
- http://labs.idefense.com/intelligence/vulnerabilities/display.php?id=597
- http://secunia.com/advisories/26926
- http://secunia.com/advisories/27048
- http://secunia.com/advisories/27309
- http://secunia.com/advisories/27364
- http://secunia.com/advisories/27439
- http://secunia.com/advisories/28721
- http://secunia.com/advisories/29786
- http://secunia.com/advisories/36260
- http://studio.imagemagick.org/pipermail/magick-announce/2007-September/000037.html
- http://www.imagemagick.org/script/changelog.php
- http://www.securityfocus.com/archive/1/483572/100/0/threaded
Get more CVE data from the API.
curl 'https://api.contrastcyber.com/cve_lookup/CVE-2007-4988'curl 'https://api.contrastcyber.com/cve_risk_score/CVE-2007-4988'curl 'https://api.contrastcyber.com/cve_exploit/CVE-2007-4988'curl 'https://api.contrastcyber.com/cve_products/CVE-2007-4988'
Sources
- Vulnerability data from the National Vulnerability Database (NIST) and the CVE Program. CVE records: Copyright © 1999-2026, The MITRE Corporation, used under the CVE Program Terms of Use. CVE® is a registered trademark of The MITRE Corporation.
- CWE definitions: Copyright © 2006-2026, The MITRE Corporation, used under the CWE Terms of Use. CWE is a trademark of The MITRE Corporation.
- OWASP Top 10 categories by the OWASP Foundation (CC BY 3.0).
- EPSS scores by FIRST.org EPSS, used with attribution.
- KEV catalog and SSVC decisions by CISA.
- Advisory data from the GitHub Advisory Database through OSV.dev (CC BY 4.0).
- Exploit metadata from the Exploit Database (GPL-2.0-only, metadata only).
- Nuclei template names from nuclei-templates (MIT).