Format string vulnerability in the error-reporting feature in the mysqli extension in PHP 5.1.0 and 5.1.1 might allow remote attackers to execute arbitrary code via format string specifiers in MySQL error messages.
https://exchange.xforce.ibmcloud.com/vulnerabilities/24095
http://www.vupen.com/english/advisories/2006/0369
http://www.vupen.com/english/advisories/2006/0177
http://www.securityfocus.com/bid/16219
http://www.securityfocus.com/archive/1/421705/100/0/threaded
http://www.php.net/release_5_1_2.php
http://www.hardened-php.net/advisory_022006.113.html
http://securitytracker.com/id?1015485