Microsoft Windows GDI32.DLL WMF image rendering code execution

win-wmf-execute-code (23846) The risk level is classified as HighHigh Risk

Description:

Multiple applications that use the GDI32.DLL (Graphics Rendering Engine) to parse and display Windows Meta File (WMF) images could allow a remote attacker to execute arbitrary code on the system, caused by a vulnerability in the SETABORTPROC function. The Windows Picture and Fax viewer is the default application to handle files with the .wmf extension. By creating a malicious WMF image and hosting it on a Web site or sending it to a potential victim as an email attachment, a remote attacker could execute arbitrary code to gain complete control of a victim's system, if the attacker could persuade the victim to visit the malicious Web site or open the email attachment.

Note: It is reported that this vulnerability affects the Graphics Rendering Engine used by other vendors, including Mozilla Firefox and Wine.

Platforms Affected:

  • Debian, Debian Linux 3.1
  • Gentoo, Linux
  • MandrakeSoft, Mandrake Linux 2006
  • MandrakeSoft, Mandrake Linux Corporate Server 3.0
  • Microsoft, Windows 2000 SP4
  • Microsoft, Windows 2003 Server x64
  • Microsoft, Windows 2003 Server Itanium
  • Microsoft, Windows 2003 Server SP1 Itanium
  • Microsoft, Windows 2003 Server SP1
  • Microsoft, Windows XP SP1
  • Microsoft, Windows XP Professional x64
  • Microsoft, Windows XP SP2
  • Wine, Wine prior to 1.12

Remedy:

As a workaround, do not open or preview .wmf files that are not trusted.

For vulnerability detection:

Enable the following checks in the ISS Protection platform:
WinMs06kb912919Update

For Virtual Patch:

Enable the following checks in the Dynamic ISS Protection platform:
Image_WMF_Generic_RecordSize_Overflow Image_WMF_Code_Exec_Function

For Manual Protection:

Apply the appropriate patch for your system, as listed in the latest Microsoft Security Bulletin. See References.

— OR —

Use Microsoft Automatic Update if it is supported by your operating system. The original bulletin issued by Microsoft has been superseded.

For Debian GNU/Linux:
Refer to DSA-954-1 for patch, upgrade, or suggested workaround information. See References.

Other vendor remedy information:

For Wine:
Upgrade to the latest versions of Wine (1.12 or later) available from the Wine Web site. See References.

For Gentoo Linux (Wine):
Refer to Gentoo Linux Security Announcement GLSA 2006-01-09 for patch, upgrade, or suggested workaround information. See References.

Consequences:

Gain Access

References:

Reported:

Dec 27, 2005

The information within this database may change without notice. 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. In no event shall the author/distributor (IBM Internet Security Systems X-Force) be held liable for any damages whatsoever arising out of or in connection with the use or spread of this information.

For corrections or additions please email xforce@iss.net

Return to the main page