PHP '_gdGetColors()' Buffer Overflow Vulnerability

Summary
The host is running PHP and is prone to Buffer Overflow vulnerability.
Impact
Successful exploitation could allow attackers to potentially compromise a vulnerable system. Impact Level: System
Solution
Apply patches from SVN repository, http://svn.php.net/viewvc?view=revision&revision=289557 ***** NOTE: Ignore this warning if patch is already applied. *****
Insight
The flaw is due to error in '_gdGetColors' function in gd_gd.c which fails to check certain colorsTotal structure member, whicn can be exploited to cause buffer overflow or buffer over-read attacks via a crafted GD file.
Affected
PHP version 5.2.x to 5.2.11 and 5.3.0 on Linux.
References