ImageMagick writes terminating NUL one byte beyond char array end
Published Sep 24, 2007
9.3
HIGHCVSS 2.0
EPSS 3.82%
Description
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.
Affected products
No data.
- 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
No data.
No Red Hat product state for this CVE.
No package ranges for this CVE.
Remediation
Red Hat statement
Note: As the address of the overwritten byte is not under attackers control, the worst impact his bug could have is an application crash. It can not be exploited to execute arbitrary code.
Metrics
No CVSS v4.0 score for this CVE.
No CVSS v3.1 score for this CVE.
No CVSS v3.0 score for this CVE.
AV:N/AC:M/Au:N/C:C/I:C/A:C
This CVE is not in the KEV list.
No CISA SSVC assessment for this CVE yet.
Estimated probability of exploitation in the wild in the next 30 days (FIRST EPSS). As of Oct 2, 2026.
Score over time
2022–2026- EPSS v2
- EPSS v3
- EPSS v4
- EPSS v5
Percentile over time
- EPSS v2
- EPSS v3
- EPSS v4
- EPSS v5
Table of values (12 key points)
Flat stretches are collapsed; showing up to 120 newest points.
| Date | Score | Percentile | Model |
|---|---|---|---|
| Oct 2, 2026 | 3.82% (0.03819) | 89.74th | v5 (v2026.06.15) |
| Jun 15, 2026 | 3.82% (0.03819) | 88.66th | v5 (v2026.06.15) |
| Mar 30, 2025 | 3.66% (0.03661) | 86.78th | v4 (v2025.03.14) |
| Mar 29, 2025 | 2.66% (0.02658) | 76.25th | v4 (v2025.03.14) |
| Mar 17, 2025 | 3.66% (0.03661) | 87.09th | v4 (v2025.03.14) |
| Dec 12, 2024 | 0.37% (0.00368) | 73.41th | v3 (v2023.03.01) |
| May 13, 2024 | 0.42% (0.00420) | 74.02th | v3 (v2023.03.01) |
| Feb 8, 2024 | 0.39% (0.00392) | 72.64th | v3 (v2023.03.01) |
| Mar 7, 2023 | 0.39% (0.00392) | 69.16th | v3 (v2023.03.01) |
| Mar 6, 2023 | 2.77% (0.02768) | 82.99th | v2 (v2022.01.01) |
| Apr 1, 2022 | 2.77% (0.02768) | 81.30th | v2 (v2022.01.01) |
| Feb 4, 2022 | 2.77% (0.02768) | 63.79th | v2 (v2022.01.01) |
References (26)
- http://bugs.gentoo.org/show_bug.cgi?id=186030 x_refsource_CONFIRM
- http://labs.idefense.com/intelligence/vulnerabilities/display.php?id=595 third-party-advisoryx_refsource_IDEFENSE
- http://secunia.com/advisories/26926 third-party-advisoryx_refsource_SECUNIA
- http://secunia.com/advisories/27048 third-party-advisoryx_refsource_SECUNIA
- http://secunia.com/advisories/27309 third-party-advisoryx_refsource_SECUNIA
- http://secunia.com/advisories/27364 third-party-advisoryx_refsource_SECUNIA
- http://secunia.com/advisories/27439 third-party-advisoryx_refsource_SECUNIA
- http://secunia.com/advisories/28721 third-party-advisoryx_refsource_SECUNIA
- http://secunia.com/advisories/36260 third-party-advisoryx_refsource_SECUNIA
- http://security.gentoo.org/glsa/glsa-200710-27.xml vendor-advisoryx_refsource_GENTOO
- http://studio.imagemagick.org/pipermail/magick-announce/2007-September/000037.html mailing-listx_refsource_MLIST
- http://www.debian.org/security/2009/dsa-1858 vendor-advisoryx_refsource_DEBIAN
- http://www.imagemagick.org/script/changelog.php x_refsource_CONFIRM
- http://www.mandriva.com/en/security/advisories?name=MDVSA-2008:035 vendor-advisoryx_refsource_MANDRIVA
- http://www.novell.com/linux/security/advisories/2007_23_sr.html vendor-advisoryx_refsource_SUSE
- http://www.securityfocus.com/archive/1/483572/100/0/threaded mailing-listx_refsource_BUGTRAQ
- http://www.securityfocus.com/bid/25766 vdb-entryx_refsource_BIDExploitPatch
- http://www.securitytracker.com/id?1018729 vdb-entryx_refsource_SECTRACK
- http://www.ubuntu.com/usn/usn-523-1 vendor-advisoryx_refsource_UBUNTU
- http://www.vupen.com/english/advisories/2007/3245 vdb-entryx_refsource_VUPEN
- https://access.redhat.com/security/cve/CVE-2007-4987 Vendor Advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=310101 Issue Tracking
- https://exchange.xforce.ibmcloud.com/vulnerabilities/36739 vdb-entryx_refsource_XF
- https://issues.rpath.com/browse/RPL-1743 x_refsource_CONFIRM
- https://nvd.nist.gov/vuln/detail/CVE-2007-4987
- https://www.cve.org/CVERecord?id=CVE-2007-4987
Change history (0)
No recorded changes yet.