# CVE-2007-4987

- Priority: **Prioritise**
- Reason: Public exploit (reference, Date unknown)
- Next step: Check applicability and the vendor advisory: no fix release is recorded here
- Status: published
- Published: 2007-09-24 · Modified: 2024-08-07
- Aliases: DEBIAN-CVE-2007-4987
- Record: https://cvemate.com/vulnerability/CVE-2007-4987 · JSON: https://cvemate.com/vulnerability/CVE-2007-4987/json

## Description

```text
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.
```

## Signals

- CVSS: 9.3 high (v2.0, NVD) AV:N/AC:M/Au:N/C:C/I:C/A:C
- EPSS: 3.819%, percentile 90.383%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 1 (reference)

## Affected

- debian imagemagick (Debian): \< 7:6.2.4.5.dfsg1-2
- imagemagick imagemagick: 5.3.3 \| 5.3.8 \| 5.4.2.3 \| 5.4.3 \| 5.4.4.5 \| 5.4.7 \| 5.4.8 \| 5.4.8.2\_1.1.0 \| 5.5.3\_.2\_1.2.0 \| 5.5.4 \| 5.5.6 \| 5.5.6.0\_20030409 \| 5.5.7 \| 5.5.7.15 \| 6.0 \| 6.0.1 \| 6.0.2 \| 6.0.2.5 \| 6.0.3 \| 6.0.4 \| 6.0.4.4 \| 6.0.5 \| 6.0.6 \| 6.0.6.2 \| 6.0.7 \| 6.0.8 \| 6.1 \| 6.1.1 \| 6.1.2 \| 6.1.3 \| 6.1.4 \| 6.1.5 \| 6.1.6 \| 6.1.7 \| 6.1.8 \| 6.2 \| 6.2.0.3 \| 6.2.0.7 \| 6.2.1 \| 6.2.2 \| 6.2.3 \| 6.2.3.4 \| 6.2.4 \| 6.2.4.3 \| 6.2.4.5 \| 6.2.5 \| 6.2.6 \| 6.2.7 \| 6.2.8 \| 6.2.9 \| 6.2.9.2 \| 6.3.1 \| 6.3.2 \| 6.3.3\_3 \| 6.3.3\_5 \| 6.3.3\_6 \| 6.3.4

## References (first 20 of 23)

- <http://secunia.com/advisories/27364>
- <http://www.securityfocus.com/archive/1/483572/100/0/threaded>
- <http://www.ubuntu.com/usn/usn-523-1>
- <http://secunia.com/advisories/27309>
- <http://www.securityfocus.com/bid/25766>
- <http://www.imagemagick.org/script/changelog.php>
- <https://exchange.xforce.ibmcloud.com/vulnerabilities/36739>
- <http://www.vupen.com/english/advisories/2007/3245>
- <http://security.gentoo.org/glsa/glsa-200710-27.xml>
- <http://www.securitytracker.com/id?1018729>
- <http://secunia.com/advisories/27048>
- <http://secunia.com/advisories/28721>
- <http://secunia.com/advisories/27439>
- <https://issues.rpath.com/browse/RPL-1743>
- <http://www.debian.org/security/2009/dsa-1858>
- <http://studio.imagemagick.org/pipermail/magick-announce/2007-September/000037.html>
- <http://secunia.com/advisories/26926>
- <http://www.mandriva.com/en/security/advisories?name=MDVSA-2008:035>
- <http://labs.idefense.com/intelligence/vulnerabilities/display.php?id=595>
- <http://bugs.gentoo.org/show_bug.cgi?id=186030>

---

Data as of 2026-12-05T04:49:49.763Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
