CVE-2012-2376: Remote code execution in PHP com_print_typeinfo on Windows
- Vendor
- PHP Group
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.
Impact, mitigation & remediation
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
Impact
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.
Mitigation
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.
Remediation
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.
Exploits
No validated public exploits yet. Hidden: 1 not yet analyzed, such as Exploit-DB entries.
Affected products & vendors
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
References
Frequently asked questions
- Is CVE-2012-2376 exploited in the wild?
- Yes. As of Oct 16, 2026, Mallory has reports of exploitation in the wild.
- Is there a public exploit for CVE-2012-2376?
- Yes. As of Oct 16, 2026, Mallory has reports of a public exploit for CVE-2012-2376.
- Is there a patch for CVE-2012-2376?
- 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.
- What products are affected by CVE-2012-2376?
- PHP Group Php.
- How severe is CVE-2012-2376?
- CVE-2012-2376 has a CVSS v2 score of 10.0 (Critical) and an EPSS score of 19.8% (97th percentile) as of Oct 16, 2026.
Recent activity
3 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.