search menu icon-carat-right cmu-wordmark

CERT Coordination Center

Microsoft Windows LoadImage API vulnerable to integer overflow

Vulnerability Note VU#625856

Original Release Date: 2005-01-06 | Last Revised: 2005-01-12


The Microsoft Windows LoadImage API routine is vulnerable to an integer overflow that may allow a remote attacker to execute arbitrary code on a vulnerable system.


The LoadImage API routine is used to load an image from a file on Microsoft Windows platforms. The LoadImage API is included part of the USER 32 library. A lack of input validation on user supplied input to the LoadImage API routine may allow an integer overflow to occur. If a remote attacker supplies a specially crafted image file to a vulnerable system, that attacker may be able to trigger the integer overflow to compromise that system.

According to public reports, many Microsoft Windows are affected. However, reports also indicate Windows XP with Service Pack 2 is not vulnerable, but we have not confirmed this.

Note that exploits for this vulnerability are publicly available.


If a remote attacker can persuade a user to access a specially crafted image file, the attacker may be able to execute arbitrary code on that user's system, possibly with elevated privileges. Potentially any operation that displays an image could trigger exploitation; for instance, browsing the file system, reading HTML email, or browsing websites.


Apply Patch

Apply a patch as described in Microsoft Security Bulletin MS05-002. Please also note that Microsoft is actively deploying the patches for this vulnerability via Windows Update.

Vendor Information


Microsoft Corporation Unknown

Notified:  January 06, 2005 Updated: January 11, 2005



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.


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

CVSS Metrics

Group Score Vector



This vulnerability was reported by flashsky fangxing and eEye Digital Security.

This document was written by Jeff Gennari.

Other Information

CVE IDs: CVE-2004-1049
Severity Metric: 44.75
Date Public: 2004-12-23
Date First Published: 2005-01-06
Date Last Updated: 2005-01-12 16:00 UTC
Document Revision: 54

Sponsored by CISA.