CVE-2012-2376: Buffer Overflow
A security flaw was found in the way the comprinttypeinfo() routine of the PHP scripting language processed certain COM object arguments. If a PHP language based application remotely accepted untrusted comprinttypeinfo() arguments in order to print out a PHP class definition for a dispatchable interface, a remote attacker could provide a specially-crafted COM object, which once processed by the application could lead to that application crash, or, potentially arbitrary code execution with the privileges of the user running the application.
References: [1] https://isc.sans.edu/diary/PHP+5+4+Remote+Exploit+PoC+in+the+wild/13255 [2] http://packetstormsecurity.org/files/112851/php54-exec.txt [3] http://www.exploit-db.com/exploits/18861/ [4] http://www.reddit.com/r/netsec/comments/tuyp3/iscdiaryphp54remoteexploitpocinthewild/
CVE request: [5] http://www.openwall.com/lists/oss-security/2012/05/20/1
CVE assignment: [6] http://www.openwall.com/lists/oss-security/2012/05/20/2
Other sources
Buffer overflow in the comprinttypeinfo function in PHP 5.4.3 and earlier on Windows allows remote attackers to execute arbitrary code via crafted arguments that trigger incorrect handling of COM object VARIANT types, as exploited in the wild in May 2012.
— MITRE
Affected Software
Event History
Frequently Asked Questions
What is the severity of CVE-2012-2376?
CVE-2012-2376 is classified as a medium severity vulnerability that can lead to remote code execution.
How do I fix CVE-2012-2376?
To fix CVE-2012-2376, upgrade PHP to version 5.4.4 or later, or apply relevant patches.
What versions of PHP are affected by CVE-2012-2376?
CVE-2012-2376 affects PHP versions up to and including 5.4.3.
Can CVE-2012-2376 be exploited remotely?
Yes, CVE-2012-2376 can be exploited remotely if a vulnerable application accepts untrusted arguments.
What is the impact of CVE-2012-2376?
The impact of CVE-2012-2376 includes the potential for attackers to execute arbitrary code on the affected server.