phgstats.inc.php in phgstats before 0.5.1, if register_globals is enabled, allows remote attackers to include arbitrary files and execute arbitrary PHP code by modifying the PHGDIR variable.
https://exchange.xforce.ibmcloud.com/vulnerabilities/24062
http://www.vupen.com/english/advisories/2006/0123
http://www.securityfocus.com/bid/17469
http://sourceforge.net/project/shownotes.php?release_id=384232