search menu icon-carat-right cmu-wordmark

CERT Coordination Center

Microsoft Windows Graphics Rendering Engine buffer overflow vulnerability

Vulnerability Note VU#300549

Original Release Date: 2005-11-08 | Last Revised: 2006-02-08


Microsoft Windows Graphics Rendering Engine contains a buffer overflow that may allow a remote 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). The Windows Graphics Rendering Engine fails to properly validate WMF and EMF image files. This may allow a remote attacker to manipulate memory allocation routines to create an under-sized buffer. When data is copied to this buffer, a heap-based buffer overflow may occur.

Note that according to public reports, this vulnerability may also affect the Graphical Device Interface (GDI) subsystem.


By persuading a user to open a specially crafted WMF or EMF image file, an attacker may be able to execute arbitrary code with the privileges of the user.


Apply an update

Microsoft has addressed this issue in Microsoft Security Bulletin MS05-053.

Do not accept WMF or EMF files from untrusted sources

By only accessing WMF or EMF image files from trusted or known sources, the chances of exploitation are reduced.

For additional workarounds and mitigating factors for this vulnerability, please see MS05-053.

Vendor Information


Microsoft Corporation Affected

Updated:  November 08, 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.


Please see

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

CVSS Metrics

Group Score Vector



This vulnerability was reported in Microsoft Security Bulletin MS05-053. Microsoft credits eEye Digital Security and Symantec Security Response for

This document was written by Jeff Gennari.

Other Information

CVE IDs: CVE-2005-2123
Severity Metric: 13.37
Date Public: 2005-11-08
Date First Published: 2005-11-08
Date Last Updated: 2006-02-08 19:38 UTC
Document Revision: 15

Sponsored by CISA.