CVE-2007-4987
Off-by-one error in the ReadBlobString function in blob.c in ImageMagick before 6.3.5-9 allows...
Off-by-one error in the ReadBlobString function in blob.c in ImageMagick before 6.3.5-9 allows context-dependent attackers to execute arbitrary code via a crafted image file, which triggers the writing of a '\0' character to an out-of-bounds address.
Exploit likelihood
What each source reports
NVD Score used
9.3
Off-by-one error in the ReadBlobString function in blob.c in ImageMagick before 6.3.5-9 allows context-dependent attackers to execute arbitrary code via a crafted image file, which triggers the writing of a '\0' character to an out-of-bounds address.
- Record
CVE-2007-4987- CVSS 2.0
- 9.3 High
AV:N/AC:M/Au:N/C:C/I:C/A:C - Weakness
- CWE-189
- Updated
- 2026-11-02
CVE List No score
Off-by-one error in the ReadBlobString function in blob.c in ImageMagick before 6.3.5-9 allows context-dependent attackers to execute arbitrary code via a crafted image file, which triggers the writing of a '\0' character to an out-of-bounds address.
- Record
CVE-2007-4987- Updated
- 2026-11-02
EUVDEUVD-2007-4968 No score
Off-by-one error in the ReadBlobString function in blob.c in ImageMagick before 6.3.5-9 allows context-dependent attackers to execute arbitrary code via a crafted image file, which triggers the writing of a '\0' character to an out-of-bounds address.
- Record
EUVD-2007-4968- Updated
- 2026-11-03
GitHub AdvisoriesGHSA-8r4q-vv4v-f978 No score
Off-by-one error in the ReadBlobString function in blob.c in ImageMagick before 6.3.5-9 allows...
Off-by-one error in the ReadBlobString function in blob.c in ImageMagick before 6.3.5-9 allows context-dependent attackers to execute arbitrary code via a crafted image file, which triggers the writing of a '\0' character to an out-of-bounds address.
- Record
GHSA-8r4q-vv4v-f978- Updated
- 2026-11-02
OSV No score
Off-by-one error in the ReadBlobString function in blob.c in ImageMagick before 6.3.5-9 allows context-dependent attackers to execute arbitrary code via a crafted image file, which triggers the writing of a '\0' character to an out-of-bounds address.
- Record
CVE-2007-4987- Updated
- 2026-11-02
OSVDEBIAN-CVE-2007-4987 No score
Off-by-one error in the ReadBlobString function in blob.c in ImageMagick before 6.3.5-9 allows context-dependent attackers to execute arbitrary code via a crafted image file, which triggers the writing of a '\0' character to an out-of-bounds address.
- Record
DEBIAN-CVE-2007-4987- Updated
- 2026-11-02
OSVopenSUSE-SU-2024:10597-1 No score
ImageMagick-7.1.0.8-1.2 on GA media
These are all security issues fixed in the ImageMagick-7.1.0.8-1.2 package on the GA media of openSUSE Tumbleweed.
- Record
openSUSE-SU-2024:10597-1- Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
imagemagickDebian:12 |
before 7:6.2.4.5.dfsg1-2 | 7:6.2.4.5.dfsg1-2 |
imagemagickDebian:13 |
before 7:6.2.4.5.dfsg1-2 | 7:6.2.4.5.dfsg1-2 |
imagemagickDebian:14 |
before 7:6.2.4.5.dfsg1-2 | 7:6.2.4.5.dfsg1-2 |
imagemagickDebian:4.0 From an advisory covering 9 CVEs |
before 7:6.2.4.5.dfsg1-0.15+etch1, plus listed versions 7:6.2.4.5.dfsg1-0.14 |
7:6.2.4.5.dfsg1-0.15+etch1 |
imagemagickDebian:5.0 From an advisory covering 9 CVEs |
before 7:6.3.7.9.dfsg2-1~lenny3, plus listed versions 7:6.3.7.9.dfsg1-37:6.3.7.9.dfsg1-3~lenny17:6.3.7.9.dfsg2-1~lenny1 |
7:6.3.7.9.dfsg2-1~lenny3 |
imagemagickDebian:5.0 From an advisory covering 4 CVEs |
before 7:6.2.4.5.dfsg1-1+lenny1 | 7:6.2.4.5.dfsg1-1+lenny1 |
ImageMagickopenSUSE:Tumbleweed From an advisory covering 7 CVEs |
before 7.1.0.8-1.2 | 7.1.0.8-1.2 |
History
| Recorded | Changed | Sources |
|---|---|---|
| affected, facts | ||
| aliases | EUVD | |
| aliases | ||
| first indexed | CVE List, GitHub Advisories, NVD, OSV |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2007-4987 is a high vulnerability (CVSS 9.3) in Imagemagick, published September 24, 2007. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 3.82%, the 90th percentile. Fixed in imagemagick 7:6.2.4.5.dfsg1-2.
References
secunia.com/advisories/27364
securityfocus.com/archive/1/483572/100/0/threaded
ubuntu.com/usn/usn-523-1
secunia.com/advisories/27309
securityfocus.com/bid/25766
imagemagick.org/script/changelog.php
Show 26 moreShow less
exchange.xforce.ibmcloud.com/vulnerabilities/36739
vupen.com/english/advisories/2007/3245
security.gentoo.org/glsa/glsa-200710-27.xml
securitytracker.com/id?1018729
secunia.com/advisories/27048
secunia.com/advisories/28721
secunia.com/advisories/27439
issues.rpath.com/browse/RPL-1743
debian.org/security/2009/dsa-1858
studio.imagemagick.org/pipermail/magick-announce/2007-September/000037.html
secunia.com/advisories/26926
mandriva.com/en/security/advisories?name=MDVSA-2008:035
labs.idefense.com/intelligence/vulnerabilities/display.php?id=595
bugs.gentoo.org/show_bug.cgi?id=186030
novell.com/linux/security/advisories/2007_23_sr.html
secunia.com/advisories/36260
nvd.nist.gov/vuln/detail/CVE-2007-4987
github.com/advisories/GHSA-8r4q-vv4v-f978
security-tracker.debian.org/tracker/CVE-2007-4987
suse.com/security/cve/CVE-2005-4601
suse.com/security/cve/CVE-2006-0082
suse.com/security/cve/CVE-2006-5456
suse.com/security/cve/CVE-2007-1797
suse.com/security/cve/CVE-2007-4985
suse.com/security/cve/CVE-2007-4987
suse.com/security/cve/CVE-2018-9135