Vulnerability Note VU#290961

Microsoft Windows GDI+ ICO InfoHeader Height division by zero vulnerability

Original Release date: 06 Jun 2007 | Last revised: 06 Jun 2007

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.

Systems Affected (Learn More)

VendorStatusDate NotifiedDate Updated
Microsoft CorporationAffected03 May 200706 Jun 2007
If you are a vendor and your product is affected, let us know.

CVSS Metrics (Learn More)

Group Score Vector
Base N/A N/A
Temporal N/A N/A
Environmental N/A N/A

References

Credit

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
  • Date Public: 06 Jun 2007
  • Date First Published: 06 Jun 2007
  • Date Last Updated: 06 Jun 2007
  • Severity Metric: 5.54
  • Document Revision: 16

Feedback

If you have feedback, comments, or additional information about this vulnerability, please send us email.