Microsoft Windows GDI 'EMR_COLORMATCHTOTARGETW' Stack Overflow Vulnerability

BID:28570

Info

Microsoft Windows GDI 'EMR_COLORMATCHTOTARGETW' Stack Overflow Vulnerability

Bugtraq ID: 28570
Class: Boundary Condition Error
CVE: CVE-2008-1087
Remote: Yes
Local: No
Published: Apr 08 2008 12:00AM
Updated: Apr 06 2009 06:56PM
Credit: Yamata Li
Vulnerable: Rim Blackberry Unite! 1.0.1 bundle 36
Rim Blackberry Unite! 1.0.1
Rim Blackberry Unite! 1.0
Rim Blackberry Professional Software 4.1.4
Rim Blackberry Enterprise Server 4.1.6
Rim Blackberry Enterprise Server 4.1.5
Rim Blackberry Enterprise Server 4.1.4
Rim Blackberry Enterprise Server 4.1.3
Rim Blackberry Enterprise Server 4.0.3
Rim Blackberry Enterprise Server 4.0 SP3
Nortel Networks CallPilot 703t
Nortel Networks CallPilot 702t
Nortel Networks CallPilot 201i
Nortel Networks CallPilot 200i
Nortel Networks CallPilot 1002rp
Microsoft Windows XP Tablet PC Edition SP2
Microsoft Windows XP Professional x64 Edition SP2
Microsoft Windows XP Professional SP2
Microsoft Windows XP Media Center Edition SP2
Microsoft Windows XP Home SP2
Microsoft Windows Vista Ultimate 64-bit edition SP1
Microsoft Windows Vista Ultimate 64-bit edition 0
Microsoft Windows Vista Home Premium 64-bit edition SP1
Microsoft Windows Vista Home Premium 64-bit edition 0
Microsoft Windows Vista Home Basic 64-bit edition SP1
Microsoft Windows Vista Home Basic 64-bit edition 0
Microsoft Windows Vista Enterprise 64-bit edition SP1
Microsoft Windows Vista Enterprise 64-bit edition 0
Microsoft Windows Vista Business 64-bit edition SP1
Microsoft Windows Vista Business 64-bit edition 0
Microsoft Windows Vista Ultimate SP1
Microsoft Windows Vista Ultimate
Microsoft Windows Vista SP1
Microsoft Windows Vista Home Premium SP1
Microsoft Windows Vista Home Premium
Microsoft Windows Vista Home Basic SP1
Microsoft Windows Vista Home Basic
Microsoft Windows Vista Enterprise SP1
Microsoft Windows Vista Enterprise
Microsoft Windows Vista Business SP1
Microsoft Windows Vista Business
Microsoft Windows Vista 0
Microsoft Windows Server 2008 Standard Edition 0
Microsoft Windows Server 2008 Enterprise Edition 0
Microsoft Windows Server 2008 Datacenter Edition 0
Microsoft Windows Server 2003 x64 SP2
Microsoft Windows Server 2003 x64 SP1
Microsoft Windows Server 2003 Web Edition SP2
Microsoft Windows Server 2003 Web Edition SP1
Microsoft Windows Server 2003 Standard Edition SP2
Microsoft Windows Server 2003 Standard Edition SP1
Microsoft Windows Server 2003 Itanium SP2
Microsoft Windows Server 2003 Itanium SP1
Microsoft Windows Server 2003 Enterprise x64 Edition SP2
Microsoft Windows Server 2003 Enterprise Edition Itanium SP1
Microsoft Windows Server 2003 Enterprise Edition SP1
Microsoft Windows Server 2003 Datacenter x64 Edition SP2
Microsoft Windows Server 2003 Datacenter Edition Itanium SP1
Microsoft Windows Server 2003 Datacenter Edition SP1
Microsoft Windows Server 2003 SP2
Microsoft Windows Server 2003 SP1
Microsoft Windows 2000 Server SP4
Microsoft Windows 2000 Professional SP4
Microsoft Windows 2000 Datacenter Server SP4
Microsoft Windows 2000 Advanced Server SP4
HP Storage Management Appliance 2.1
+ HP Storage Management Appliance III
+ HP Storage Management Appliance II
+ HP Storage Management Appliance I
Not Vulnerable:

Discussion

Microsoft Windows GDI 'EMR_COLORMATCHTOTARGETW' Stack Overflow Vulnerability

Microsoft Windows is prone to a stack-based overflow vulnerability that resides in the GDI graphics library and can be triggered by a malformed EMF image file.

A successful exploit of this vulnerability can allow a remote attacker to completely compromise the affected computer.

Exploit / POC

Microsoft Windows GDI 'EMR_COLORMATCHTOTARGETW' Stack Overflow Vulnerability

Proof-of-concept code for Immunity CANVAS is available for one of the vulnerabilities discussed in MS08-021. It is not clear at this time if this code is for this issue or for the one discussed in BID 28571 (Microsoft Windows GDI 'CreateDIBPatternBrushPt' Function Heap Overflow Vulnerability).

We will update this BID as more information emerges. The proof-of-concept code is available for members of the Immunity Partners Program:

https://www.immunityinc.com/downloads/immpartners/ms08_021.tar.gz

NOTE: Further investigation reveals that attackers are actively attempting to exploit this vulnerability in the wild.

Core Security Technologies has developed a working commercial exploit for its CORE IMPACT product. This exploit is not otherwise publicly available or known to be circulating in the wild.

The following exploits are available:

Solution / Fix

Microsoft Windows GDI 'EMR_COLORMATCHTOTARGETW' Stack Overflow Vulnerability

Solution:
Microsoft released fixes and a security bulletin to address this issue. Please see the references for more information.


Microsoft Windows Server 2003 Datacenter Edition SP1

Microsoft Windows XP Media Center Edition SP2

Microsoft Windows Server 2003 Itanium SP1

Microsoft Windows Server 2003 Enterprise Edition Itanium SP1

Microsoft Windows Server 2003 Datacenter x64 Edition SP2

Microsoft Windows Vista Home Basic SP1

Microsoft Windows XP Tablet PC Edition SP2

Microsoft Windows Server 2003 Web Edition SP2

Microsoft Windows Vista Home Premium

Microsoft Windows Server 2003 Standard Edition SP1

Microsoft Windows Server 2003 x64 SP1

Microsoft Windows Vista Enterprise

Microsoft Windows XP Professional x64 Edition SP2

Microsoft Windows Vista 0

Microsoft Windows Vista Business

Microsoft Windows Server 2003 x64 SP2

Microsoft Windows Vista Ultimate SP1

Microsoft Windows Vista SP1

Microsoft Windows Server 2003 Enterprise Edition SP1

Microsoft Windows Vista Home Basic

Microsoft Windows Vista Business SP1

Microsoft Windows 2000 Advanced Server SP4

Microsoft Windows Vista Ultimate

Microsoft Windows Vista Home Premium SP1

Microsoft Windows Server 2003 SP2

Microsoft Windows Server 2003 Standard Edition SP2

Microsoft Windows XP Home SP2

Microsoft Windows Server 2003 SP1

Microsoft Windows 2000 Datacenter Server SP4

Microsoft Windows Server 2003 Itanium SP2

Microsoft Windows Server 2008 Standard Edition 0

Microsoft Windows Server 2003 Web Edition SP1

Microsoft Windows XP Professional SP2

Microsoft Windows Server 2003 Datacenter Edition Itanium SP1

Microsoft Windows 2000 Server SP4

Microsoft Windows Server 2003 Enterprise x64 Edition SP2

Microsoft Windows Server 2008 Datacenter Edition 0

Microsoft Windows 2000 Professional SP4

Microsoft Windows Server 2008 Enterprise Edition 0

Microsoft Windows Vista Enterprise SP1

References

© CVE.report 2026

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

Free CVE JSON API cve.report/api

CVE.report and Source URL Uptime Status status.cve.report