search menu icon-carat-right cmu-wordmark

CERT Coordination Center

Microsoft Windows GDI+ ICO InfoHeader Height division by zero vulnerability

Vulnerability Note VU#290961

Original Release Date: 2007-06-06 | Last Revised: 2007-06-06

Overview

Microsoft Windows GDI+ fails to properly handle ICO files, which could allow a remote, unauthenticated attacker to cause a denial-of-service condition.

Description

Microsoft Windows Graphics Device Interface (GDI+) is an application programming interface (API) that provides programmers the ability to display information on screens and printers. GDI+ includes the ability to process ICO (icon) image files. There is an integer division by zero vulnerability in the way the ICO parsing component of GDI+ (Gdiplus.dll) handles ICO files with a Height value of zero in the InfoHeader section of the ICO file. By introducing a specially crafted ICO file to the vulnerable component, a remote attacker could trigger an integer division by zero denial-of-service condition.

Windows Explorer has been shown to be vulnerable, however any application that uses the GDI+ library may be vulnerable.

Impact

A remote, unauthenticated attacker may be able to cause a denial-of-service condition on a vulnerable system by introducing a specially crafted ICO file. The affected application would crash with a "division by zero" error. In the case of Windows Explorer, simply having the file on the desktop or any other location that is displayed by Explorer is enough to trigger the vulnerability.

Solution

We are currently unaware of a practical solution to this problem.


Do not open untrusted files

Do not open unfamiliar or unexpected files, particularly those hosted on web sites or delivered as email attachments. It may be possible for a malformed ICO file to be embedded in an executable or other file. Please see Cyber Security Tip ST04-010.

Do not follow unsolicited links

In order to convince users to visit their sites, attackers often use URL encoding, IP address variations, long URLs, intentional misspellings, and other techniques to create misleading links. Do not click on unsolicited links received in email, instant messages, web forums, or internet relay chat (IRC) channels. Type URLs directly into the browser to avoid these misleading links. While these are generally good security practices, following these behaviors will not prevent exploitation of this vulnerability in all cases, particularly if a trusted site has been compromised or allows cross-site scripting.

Vendor Information

290961
 

Microsoft Corporation Affected

Notified:  May 03, 2007 Updated: June 06, 2007

Status

Affected

Vendor Statement

We have not received a statement from the vendor.

Vendor Information

The vendor has not provided us with any further information regarding this vulnerability.


CVSS Metrics

Group Score Vector
Base
Temporal
Environmental

References

Acknowledgements

Thanks to Dennis Rand of CSIS Security Group for reporting this vulnerability.

This document was written by Will Dormann.

Other Information

CVE IDs: CVE-2007-2237
Severity Metric: 5.54
Date Public: 2007-06-06
Date First Published: 2007-06-06
Date Last Updated: 2007-06-06 14:18 UTC
Document Revision: 16

Sponsored by CISA.