Rapid7 Vulnerability & Exploit Database

Windows SetImeInfoEx Win32k NULL Pointer Dereference

Back to Search

Windows SetImeInfoEx Win32k NULL Pointer Dereference



This module exploits elevation of privilege vulnerability that exists in Windows 7 and 2008 R2 when the Win32k component fails to properly handle objects in memory. An attacker who successfully exploited this vulnerability could run arbitrary code in kernel mode. An attacker could then install programs; view, change, or delete data; or create new accounts with full user rights. This module is tested against windows 7 x86, windows 7 x64 and windows server 2008 R2 standard x64.


  • unamer
  • bigric3
  • Anton Cherepanov
  • Dhiraj Mishra <dhiraj@notsosecure.com>




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/local/ms18_8120_win32k_privesc
msf exploit(ms18_8120_win32k_privesc) > show targets
msf exploit(ms18_8120_win32k_privesc) > set TARGET < target-id >
msf exploit(ms18_8120_win32k_privesc) > show options
    ...show and set options...
msf exploit(ms18_8120_win32k_privesc) > exploit

Time is precious, so I don’t want to do something manually that I can automate. Leveraging the Metasploit Framework when automating any task keeps us from having to re-create the wheel as we can use the existing libraries and focus our efforts where it matters.

– Jim O’Gorman | President, Offensive Security