CVE-2007-4987
What it is
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.
At a glance
- Exploitability
- Can be exploited over the network without logging in. High risk of data exposure, data tampering, service disruption.
- Exploit odds
- 3.8% chance of exploitation in the next 30 days (EPSS).
- Fix
- A patch, advisory or fixed version is referenced. Upgrade or apply it.
Timeline
- PublishedDisclosed publicly on CVE.org and NVD
- Last updatedMost recent change to the record
Why it ranks here
- Exploited in the wild: no, CISA does not list it.
- Exploit odds: 3.8% in the next 30 days (EPSS).
- Severity: 9.3 HIGH (CVSS).
- Fix: a patch or advisory is linked.
Details
- Published
- Last modified
- Exploit probability
- 3.8% · EPSS, next 30 days
- Weakness
- CWE-189
- Record status
- Modified
Affected
- Imagemagick 5.3.3
- Imagemagick 5.3.8
- Imagemagick 5.4.2.3
- Imagemagick 5.4.3
- Imagemagick 5.4.4.5
- Imagemagick 5.4.7
- Imagemagick 5.4.8
- Imagemagick 5.4.8.2_1.1.0
Attack profile CVSS 2.0 · 9.3
- Attack vector
- Network
- Complexity
- Medium
- Authentication
- None
- Confidentiality
- Complete
- Integrity
- Complete
- Availability
- Complete
Raw vector
AV:N/AC:M/Au:N/C:C/I:C/A:C
Is it in your code?
Hand this to your coding agent. It searches your project for the affected products and checks versions. Nothing leaves your machine.
Read https://cve-list.com/agent/cve/CVE-2007-4987.md and follow it. Check whether this project is affected by CVE-2007-4987. Read only. Don't change anything and don't upload my code. Tell me yes, no or not sure, with the file as proof.
Fix and advisories
References
- http://bugs.gentoo.org/show_bug.cgi?id=186030
- http://labs.idefense.com/intelligence/vulnerabilities/display.php?id=595
- http://secunia.com/advisories/26926
- http://secunia.com/advisories/27048
- http://secunia.com/advisories/27309
- http://secunia.com/advisories/27364
- http://secunia.com/advisories/27439
- http://secunia.com/advisories/28721
- http://secunia.com/advisories/36260
- http://security.gentoo.org/glsa/glsa-200710-27.xml
- http://studio.imagemagick.org/pipermail/magick-announce/2007-September/000037.html
- http://www.debian.org/security/2009/dsa-1858
- http://www.imagemagick.org/script/changelog.php
- http://www.mandriva.com/en/security/advisories?name=MDVSA-2008:035
- http://www.novell.com/linux/security/advisories/2007_23_sr.html
- http://www.securityfocus.com/archive/1/483572/100/0/threaded
- http://www.securityfocus.com/bid/25766
- http://www.securitytracker.com/id?1018729
- http://www.ubuntu.com/usn/usn-523-1
- http://www.vupen.com/english/advisories/2007/3245
- https://exchange.xforce.ibmcloud.com/vulnerabilities/36739
- https://issues.rpath.com/browse/RPL-1743
- http://bugs.gentoo.org/show_bug.cgi?id=186030
- http://labs.idefense.com/intelligence/vulnerabilities/display.php?id=595
- http://secunia.com/advisories/26926