CVE-2007-4988 json
Sign extension error in the ReadDIBImage function in ImageMagick before 6.3.5-9 allows context-dependent attackers to execute arbitrary cod…
published 2007-09-24 19 y ago modified 2026-06-16 4 mo ago also EUVD-2007-4969
- cvss
- 7.8
- version 3.1, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 3.1%
- EPSS 3.1% chance of exploitation in 30 days, percentile 87%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- imagemagick imagemagick 6.3.5-9
- imagemagick Debian 14, Debian 13, Debian 12 7:6.2.4.5.dfsg1-2
- graphicsmagick Debian 14, Debian 13, Debian 12 1.1.11-1
debian advisories DEBIAN-CVE-2007-4988
- ImageMagick RHEL 3 5.5.6-28
- ImageMagick RHEL 4 6.0.7.1-17.el4_6.1
- ImageMagick RHEL 5 6.2.8.0-4.el5_1.1
- ImageMagick-c++ RHEL 3 5.5.6-28
- ImageMagick-c++ RHEL 4 6.0.7.1-17.el4_6.1
- ImageMagick-c++ RHEL 5 6.2.8.0-4.el5_1.1
- ImageMagick-perl RHEL 3 5.5.6-28
- ImageMagick-perl RHEL 4 6.0.7.1-17.el4_6.1
red hat advisories RHSA-2008:0145
- GraphicsMagick openSUSE Tumbleweed 1.3.36-1.7
opensuse advisories openSUSE-SU-2024:10596-1
- securityfocus.com/bid/25765 advisory
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-4988 updated
Integer overflow in ImageMagick's DIB coder
-
Red Hat Desktop version 3 ImageMagick 5.5.6-28, ImageMagick-c++ 5.5.6-28, ImageMagick-perl 5.5.6-28 Red Hat Enterprise Linux (v. 5 server) ImageMagick 6.2.8.0-4.el5_1.1, ImageMagick-c++ 6.2.8.0-4.el5_1.1, ImageMagick-perl 6.2.8.0-4.el5_1.1 Red Hat Enterprise Linux AS version 3 ImageMagick 5.5.6-28, ImageMagick-c++ 5.5.6-28, ImageMagick-perl 5.5.6-28 Red Hat Enterprise Linux AS version 4 ImageMagick 6.0.7.1-17.el4_6.1, ImageMagick-c++ 6.0.7.1-17.el4_6.1, ImageMagick-perl 6.0.7.1-17.el4_6.1 Red Hat Enterprise Linux Desktop (v. 5 client) ImageMagick 6.2.8.0-4.el5_1.1, ImageMagick-c++ 6.2.8.0-4.el5_1.1, ImageMagick-perl 6.2.8.0-4.el5_1.1 Red Hat Enterprise Linux Desktop version 4 ImageMagick 6.0.7.1-17.el4_6.1, ImageMagick-c++ 6.0.7.1-17.el4_6.1, ImageMagick-perl 6.0.7.1-17.el4_6.1fixed: vendor fix RHSA-2008:0145
+5 more productsfewer
Red Hat Enterprise Linux Desktop Workstation (v. 5 client) ImageMagick 6.2.8.0-4.el5_1.1, ImageMagick-c++ 6.2.8.0-4.el5_1.1, ImageMagick-perl 6.2.8.0-4.el5_1.1 Red Hat Enterprise Linux ES version 3 ImageMagick 5.5.6-28, ImageMagick-c++ 5.5.6-28, ImageMagick-perl 5.5.6-28 Red Hat Enterprise Linux ES version 4 ImageMagick 6.0.7.1-17.el4_6.1, ImageMagick-c++ 6.0.7.1-17.el4_6.1, ImageMagick-perl 6.0.7.1-17.el4_6.1 Red Hat Enterprise Linux WS version 3 ImageMagick 5.5.6-28, ImageMagick-c++ 5.5.6-28, ImageMagick-perl 5.5.6-28 Red Hat Enterprise Linux WS version 4 ImageMagick 6.0.7.1-17.el4_6.1, ImageMagick-c++ 6.0.7.1-17.el4_6.1, ImageMagick-perl 6.0.7.1-17.el4_6.1
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.09% chance of exploitation in the next 30 days, higher than 87% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- securityfocus.com http://www.securityfocus.com/bid/25765 referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| NVD | 3.1 | 7.8 | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
| NVD | 2.0 | 6.8 | AV:N/AC:M/Au:N/C:P/I:P/A:P |
Classification
- Weakness
-
- CWE-681 Incorrect Conversion between Numeric Types
References
-
securityfocus.com
/bid/25765
vdb-entry, broken-link, exploit, patch, third-party-advisory
-
redhat.com
/support/errata/RHSA-2008-0145.html
vendor-advisory, broken-link
-
ubuntu.com
/usn/usn-523-1
vendor-advisory, third-party-advisory
-
security.gentoo.org
/glsa/glsa-200710-27.xml
vendor-advisory, third-party-advisory
-
debian.org
/security/2009/dsa-1858
vendor-advisory, mailing-list, third-party-advisory
-
mandriva.com
/en/security/advisories?name=MDVSA-2008:035
vendor-advisory, broken-link
-
novell.com
/linux/security/advisories/2007_23_sr.html
vendor-advisory, broken-link
-
secunia.com
/advisories/27364
third-party-advisory, broken-link
-
securityfocus.com
/archive/1/483572/100/0/threaded
mailing-list, broken-link, third-party-advisory, vdb-entry
-
secunia.com
/advisories/27309
third-party-advisory, broken-link
-
secunia.com
/advisories/29786
third-party-advisory, broken-link
-
imagemagick.org
/script/changelog.php
release-notes
-
vupen.com
/english/advisories/2007/3245
vdb-entry, broken-link
-
labs.idefense.com
/intelligence/vulnerabilities/display.php?id=597
third-party-advisory, broken-link
-
securitytracker.com
/id?1018729
vdb-entry, broken-link, third-party-advisory
-
secunia.com
/advisories/27048
third-party-advisory, broken-link
-
exchange.xforce.ibmcloud.com
/vulnerabilities/36737
vdb-entry, third-party-advisory
-
secunia.com
/advisories/28721
third-party-advisory, broken-link
-
secunia.com
/advisories/27439
third-party-advisory, broken-link
-
issues.rpath.com
/browse/RPL-1743
broken-link
-
studio.imagemagick.org
/pipermail/magick-announce/2007-September/000037.html
mailing-list, broken-link
-
secunia.com
/advisories/26926
third-party-advisory, broken-link
-
oval.cisecurity.org
/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A9656
vdb-entry, signature, broken-link
-
bugs.gentoo.org
/show_bug.cgi?id=186030
issue-tracking
-
secunia.com
/advisories/36260
third-party-advisory, broken-link
Sources
- CVE List CVE-2007-4988
- NVD CVE-2007-4988
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.