Directory traversal vulnerability in Gallery 2.0.3 and earlier, and 2.1 before RC-2a, allows remote attackers to include arbitrary PHP files via ".." (dot dot) sequences in the stepOrder parameter to (1) upgrade/index.php or (2) install/index.php.
https://www.exploit-db.com/exploits/1566
https://exchange.xforce.ibmcloud.com/vulnerabilities/25129
http://www.vupen.com/english/advisories/2006/0895
http://www.securityfocus.com/bid/17051