Vulnerability & Exploit Database

Back to search

MS12-063 Microsoft Internet Explorer execCommand Use-After-Free Vulnerability

This module exploits a vulnerability found in Microsoft Internet Explorer (MSIE). When rendering an HTML page, the CMshtmlEd object gets deleted in an unexpected manner, but the same memory is reused again later in the CMshtmlEd::Exec() function, leading to a use-after-free condition. Please note that this vulnerability has been exploited in the wild since Sep 14 2012. Also note that presently, this module has some target dependencies for the ROP chain to be valid. For WinXP SP3 with IE8, msvcrt must be present (as it is by default). For Vista or Win7 with IE8, or Win7 with IE9, JRE 1.6.x or below must be installed (which is often the case).

Free Metasploit Download

Get your copy of the world's leading penetration testing tool

 Download Now

Module Name



  • unknown
  • eromang
  • binjo
  • sinn3r <sinn3r [at]>
  • juan vazquez <juan.vazquez [at]>



  • Automatic
  • IE 7 on Windows XP SP3
  • IE 8 on Windows XP SP3
  • IE 7 on Windows Vista
  • IE 8 on Windows Vista
  • IE 8 on Windows 7
  • IE 9 on Windows 7


  • windows



Module Options

To display the available options, load the module within the Metasploit console and run the commands 'show options' or 'show advanced':

msf > use exploit/windows/browser/ie_execcommand_uaf msf exploit(ie_execcommand_uaf) > show targets ...targets... msf exploit(ie_execcommand_uaf) > set TARGET <target-id> msf exploit(ie_execcommand_uaf) > show options and set options... msf exploit(ie_execcommand_uaf) > exploit

Related Vulnerabilities