CVE-2007-4987 json
Off-by-one error in the ReadBlobString function in blob.c in ImageMagick before 6.3.5-9 allows context-dependent attackers to execute arbit…
published 2007-09-24 19 y ago modified 2026-06-16 4 mo ago also EUVD-2007-4968
- cvss
- 9.3
- version 2.0, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 3.8%
- EPSS 3.8% chance of exploitation in 30 days, percentile 90%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- imagemagick Debian 14, Debian 13, Debian 12 7:6.2.4.5.dfsg1-2
debian advisories DEBIAN-CVE-2007-4987
- ImageMagick openSUSE Tumbleweed 7.1.0.8-1.2
opensuse advisories openSUSE-SU-2024:10597-1
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2007-4987 updated
ImageMagick writes terminating NUL one byte beyond char array end
-
Red Hat All currently supported Red Hat productsnot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
Exploit prediction
3.82% chance of exploitation in the next 30 days, higher than 90% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- securityfocus.com http://www.securityfocus.com/bid/25766 referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| NVD | 2.0 | 9.3 | AV:N/AC:M/Au:N/C:C/I:C/A:C |
Classification
- Weakness
-
- CWE-189 Numeric Errors
References
-
securityfocus.com
/bid/25766
vdb-entry, exploit, patch
-
ubuntu.com
/usn/usn-523-1
vendor-advisory
-
security.gentoo.org
/glsa/glsa-200710-27.xml
vendor-advisory
-
debian.org
/security/2009/dsa-1858
vendor-advisory
-
mandriva.com
/en/security/advisories?name=MDVSA-2008:035
vendor-advisory
-
novell.com
/linux/security/advisories/2007_23_sr.html
vendor-advisory
-
secunia.com
/advisories/27364
third-party-advisory
-
securityfocus.com
/archive/1/483572/100/0/threaded
mailing-list
-
secunia.com
/advisories/27309
third-party-advisory
- imagemagick.org /script/changelog.php
-
exchange.xforce.ibmcloud.com
/vulnerabilities/36739
vdb-entry
-
vupen.com
/english/advisories/2007/3245
vdb-entry
-
securitytracker.com
/id?1018729
vdb-entry
-
secunia.com
/advisories/27048
third-party-advisory
-
secunia.com
/advisories/28721
third-party-advisory
-
secunia.com
/advisories/27439
third-party-advisory
- issues.rpath.com /browse/RPL-1743
-
studio.imagemagick.org
/pipermail/magick-announce/2007-September/000037.html
mailing-list
-
secunia.com
/advisories/26926
third-party-advisory
-
labs.idefense.com
/intelligence/vulnerabilities/display.php?id=595
third-party-advisory
- bugs.gentoo.org /show_bug.cgi?id=186030
-
secunia.com
/advisories/36260
third-party-advisory
Sources
- CVE List CVE-2007-4987
- NVD CVE-2007-4987
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.