search menu icon-carat-right cmu-wordmark

CERT Coordination Center

Microsoft Windows contains buffer overflow in processing of WMF and EMF image files

Vulnerability Note VU#806278

Original Release Date: 2004-10-13 | Last Revised: 2004-10-13


A vulnerability in the way the Microsoft Windows Graphics Rendering Engine processes certain types of image files could allow an attacker to execute arbitrary code on a vulnerable system.


The Microsoft Windows Graphics Rendering Engine supports a number of image formats including Windows Metafile (WMF) and Enhanced Metafile (EMF). There is a vulnerability in the way a buffer is validated by the Graphics Rendering Engine when processing these image formats. Exploitation of this vulnerability could allow a remote, unauthenticated attacker to execute arbitrary code on a vulnerable system.

Microsoft reports that this vulnerability is different than the GDI+ vulnerability described in MS04-028 and that the vulnerable component is not redistributed with other applications. The affected component in the GDI+ vulnerability could be redistributed by other applications.


A remote attacker may be able to cause a denial of service or potentially execute arbitrary code on a vulnerable system by introducing a specially crafted WMF or EMF file. This malicious WMF or EMF image may be introduced to the system via a malicious web page, HTML email, or an email attachment.


Apply Patch
Microsoft has provided a patch to address this vulnerability. For a list of affected versions and details on obtaining the patch, please refer to Microsoft Security Bulletin MS04-032.

Vendor Information


Microsoft Corporation Affected

Updated:  October 13, 2004



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.


Please refer to Microsoft Security Bulletin MS04-032.

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 Microsoft. Microsoft credits Patrick Porlan and Mark Russinovich of Winternals Software for discovering this vulnerability.

This document was written by Damon Morda and based on information provided by Microsoft.

Other Information

CVE IDs: CVE-2004-0209
Severity Metric: 25.31
Date Public: 2004-10-12
Date First Published: 2004-10-13
Date Last Updated: 2004-10-13 17:01 UTC
Document Revision: 11

Sponsored by CISA.