Vulnerability Note VU#932041

Microsoft MFC component vulnerable to remote code execution via malformed embedded OLE object

Original Release date: 14 Feb 2007 | Last revised: 19 Sep 2007


A memory corruption vulnerability exists in the MFC component that is provided with Microsoft Windows and Visual Studio


The Microsoft Foundation Class Library (MFC), is a Microsoft library that wraps parts of the Windows API in C++ classes. MFC is included in Microsoft Visual Studio and Microsoft Windows.

Per Microsoft Security Bulletin MS07-012, a memory corruption vulnerability exists in the MFC component that is provided with Microsoft Windows and Visual Studio. An attacker may be able to exploit this vulnerability by convincing a user to open a malformed embedded OLE object within a Rich Text Format (RTF) file.

Note that reports indicate that Visual Studio 2005 and Windows Vista are unaffected by this vulnerability, however Windows Server 2003 is affected.


A remote unauthenticated attacker may be able to execute arbitrary code with the privileges of the user who is running Windows.


Microsoft has released an update to address this issue. See Microsoft Security Bulletin MS07-012 for more details. This advisory states that the patch is incomplete.

Do not run Windows with administrator privileges

Running Windows using an unprivileged regular user account may mitigate the affects of this vulnerability. See the Microsoft Technet article Applying the Principle of Least Privilege to User Accounts on Windows XP for more information.

Do not allow WordPad to parse embedded files

Microsoft WordPad is the default application for opening and interacting with RTF files in Microsoft Windows. Preventing WordPad from parsing embedded OLE objects in RTF files may partially mitigate this vulnerability. See the workarounds section of Microsoft Security Bulletin MS07-012 for instructions on how to edit the Windows registry to prevent WordPad from parsing these objects.

Systems Affected (Learn More)

VendorStatusDate NotifiedDate Updated
Microsoft CorporationAffected-14 Feb 2007
If you are a vendor and your product is affected, let us know.

CVSS Metrics (Learn More)

Group Score Vector
Base N/A N/A
Temporal N/A N/A
Environmental N/A N/A



Thanks to Microsoft for information that was used in this report. Microsoft in turn thanks Kostya Kortchinsky of Immunity, Inc. and Fabrice Desclaux from EADS Common Research Center.

This document was written by Ryan Giobbi.

Other Information

  • CVE IDs: CVE-2007-0025
  • Date Public: 13 Feb 2007
  • Date First Published: 14 Feb 2007
  • Date Last Updated: 19 Sep 2007
  • Severity Metric: 26.73
  • Document Revision: 32


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