Remote code execution in PHP com_print_typeinfo on Windows
CVE-2012-2376 is a buffer overflow in the com_print_typeinfo function in PHP 5.4.3 and earlier on Windows. Crafted arguments trigger incorrect handling of COM object VARIANT types, allowing remote attackers to execute arbitrary code. The vulnerability was exploited in the wild in May 2012.
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
What an attacker gets, and what they’ve been doing with it.
Successful exploitation allows arbitrary code execution on the affected Windows system through the vulnerable PHP process. The resulting execution privileges and specific effects on data or service availability are not specified.
If you can’t patch tonight, do this now.
If immediate patching is not possible, reduce exposure by disabling or avoiding use of the vulnerable COM functionality and any application features that invoke com_print_typeinfo or process attacker-controlled COM-related input on Windows PHP deployments. Restrict remote access to affected applications, apply compensating controls such as WAF filtering where feasible, and run PHP with the least privileges possible to limit post-exploitation impact.
Patch, then assume compromise.
Upgrade PHP to a version newer than 5.4.3 that includes the fix for CVE-2012-2376. Because the issue affects Windows builds of PHP, remediation should prioritize patching Windows-based PHP deployments that expose functionality invoking the vulnerable COM handling path.
No validated public exploits yet. Hidden: 1 not yet analyzed, such as Exploit-DB entries.
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
3 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.