ImageMagick ReadBlobString() function buffer overflow
| imagemagick-readblogstring-bo (36739) |
Description:
ImageMagick is vulnerable to an off-by-one buffer overflow, caused by improper bounds checking by the ReadBlobString() function in magick/blob.c. By persuading a victim to open a specially-crafted image file, a remote attacker could exploit this vulnerability to overflow a buffer and execute arbitrary code on the system with the privileges of the user.
*CVSS:
| Base Score: | 7.6 |
| Access Vector: | Network |
| Access Complexity: | High |
| Authentication: | None |
| Confidentiality Impact: | Complete |
| Integrity Impact: | Complete |
| Availability Impact: | Complete |
| Temporal Score: | 5.6 |
| Exploitability: | Unproven |
| Remediation Level: | Official-Fix |
| Report Confidence: | Confirmed |
Consequences:
Gain Access
Remedy:
Upgrade to the latest version of ImageMagick (6.3.5-9 or later), available from the ImageMagick Web site. See References.
For GraphicsMagick:
Upgrade to the latest version of GraphicsMagick (1.1.11 or later), available from the GraphicsMagick Web site. See References.
For Ubuntu Linux (imagemagick):
Refer to USN-523-1 for patch, upgrade, or suggested workaround information. See References.
For other distributions:
Contact your vendor for upgrade or patch information.
References:
- GraphicsMagick Web site: GraphicsMagick Image Processing System.
- iDefense PUBLIC ADVISORY: 09.19.07: Multiple Vendor ImageMagick Off-By-One Vulnerability.
- ImageMagick Web site: Downloads.
- BID-25766: ImageMagick Blob.C Off-By-One Buffer Overflow Vulnerability
- CVE-2007-4987: 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.
- DSA-1858: imagemagick -- multiple vulnerabilities
- GLSA-200710-27: ImageMagick: Multiple vulnerabilities
- MDVSA-2008:035: Updated ImageMagick packages fix multiple vulnerabilities
- SA26926: ImageMagick Multiple Vulnerabilities
- SA29094: GraphicsMagick Multiple Vulnerabilities
- SECTRACK ID: 1018729: ImageMagick Off-by-one and Integer Overflows Let Remote Users Execute Arbitrary Code
- SUSE-SR:2007:023: SUSE Security Summary Report
- USN-523-1: ImageMagick vulnerabilities
- VUPEN/ADV-2007-3245: ImageMagick Images Processing Multiple Code Execution Vulnerabilities
Platforms Affected:
- Canonical Ubuntu 6.06 LTS
- Canonical Ubuntu 6.10
- Canonical Ubuntu 7.04
- Debian Debian Linux 4.0
- Debian Debian Linux 5.0
- Gentoo Linux
- GraphicsMagick GraphicsMagick 1.1.10
- ImageMagick ImageMagick prior to 6.3.5-9
- MandrakeSoft Mandrake Linux 2007
- MandrakeSoft Mandrake Linux 2007 X86_64
- MandrakeSoft Mandrake Linux 2007.1 X86_64
- MandrakeSoft Mandrake Linux 2007.1
- MandrakeSoft Mandrake Linux 2008.0
- MandrakeSoft Mandrake Linux 2008.0 X86_64
- MandrakeSoft Mandrake Linux Corporate Server 4.0
- MandrakeSoft Mandrake Linux Corporate Server 4.0 X86_64
Reported:
Sep 19, 2007
The information within this database may change without notice. Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. In no event shall the author/distributor (IBM Internet Security Systems X-Force) be held liable for any damages whatsoever arising out of or in connection with the use or spread of this information.
For corrections or additions please email xforce@iss.net
* According to the Forum of Incident Response and Security Teams (FIRST), the Common Vulnerability Scoring System (CVSS) is an "industry open standard designed to convey vulnerability severity and help to determine urgency and priority of response." IBM PROVIDES THE CVSS SCORES "AS IS" WITHOUT WARRANTY OF ANY KIND, INCLUDING THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. CUSTOMERS ARE RESPONSIBLE FOR ASSESSING THE IMPACT OF ANY ACTUAL OR POTENTIAL SECURITY VULNERABILITY.
The information within this database may change without notice. Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. In no event shall IBM be held liable for any damages whatsoever arising out of or in connection with the use or spread of this information.
