{"uuid": "74001ab6-2412-4407-9e3d-cbae90347a5f", "vulnerability_lookup_origin": "1a89b78e-f703-45f3-bb86-59eb712668bd", "author": "9f56dd64-161d-43a6-b9c3-555944290a09", "vulnerability": "CVE-2012-0003", "type": "seen", "source": "https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/windows/browser/ms12_004_midi.rb", "content": "{\"aliases\": [], \"arch\": \"\", \"author\": [\"Shane Garrett\", \"juan vazquez \", \"sinn3r \"], \"autofilter_ports\": [], \"autofilter_services\": [], \"check\": false, \"default_credential\": false, \"description\": \"This module exploits a heap overflow vulnerability in the Windows Multimedia\\n          Library (winmm.dll). The vulnerability occurs when parsing specially crafted\\n          MIDI files.  Remote code execution can be achieved by using the Windows Media Player\\n          ActiveX control.\\n\\n          Exploitation is done by supplying a specially crafted MIDI file with\\n          specific events, causing the offset calculation being higher than what is\\n          available on the heap (0x400 allocated by WINMM!winmmAlloc), and then allowing\\n          us to either \\\"inc al\\\" or \\\"dec al\\\" a byte.  This can be used to corrupt an array\\n          (CImplAry) we setup, and force the browser to confuse types from tagVARIANT objects,\\n          which leverages remote code execution under the context of the user.\\n\\n          Note: At this time, for IE 8 target, msvcrt ROP is used by default. However,\\n          if you know your target's patch level, you may also try the 'MSHTML' advanced\\n          option for an info leak based attack.  Currently, this module only supports two\\n          MSHTML builds: 8.0.6001.18702, which is often seen in a newly installed XP SP3.\\n          Or 8.0.6001.19120, which is patch level before the MS12-004 fix.\\n\\n          Also, based on our testing, the vulnerability does not seem to trigger when\\n          the victim machine is operated via rdesktop.\", \"disclosure_date\": \"2012-01-10\", \"fullname\": \"exploit/windows/browser/ms12_004_midi\", \"is_install_path\": true, \"mod_time\": \"2025-06-23 12:43:46 +0000\", \"name\": \"MS12-004 midiOutPlayNextPolyEvent Heap Overflow\", \"needs_cleanup\": null, \"notes\": {\"Reliability\": [\"unknown-reliability\"], \"SideEffects\": [\"unknown-side-effects\"], \"Stability\": [\"unknown-stability\"]}, \"path\": \"/modules/exploits/windows/browser/ms12_004_midi.rb\", \"platform\": \"Windows\", \"post_auth\": false, \"rank\": 300, \"ref_name\": \"windows/browser/ms12_004_midi\", \"references\": [\"MSB-MS12-004\", \"CVE-2012-0003\", \"OSVDB-78210\", \"BID-51292\"], \"rport\": null, \"session_types\": false, \"targets\": [\"Automatic\", \"IE 6 on Windows XP SP3\", \"IE 7 on Windows XP SP3\", \"IE 8 on Windows XP SP3\"], \"type\": \"exploit\"}", "creation_timestamp": "2026-09-08T06:51:09.874797Z"}