Gallery photo album package before 1.3.1 allows local and possibly remote attackers to execute arbitrary code via a modified GALLERY_BASEDIR variable that points to a directory or URL that contains a Trojan horse init.php script.
https://exchange.xforce.ibmcloud.com/vulnerabilities/9737
https://euvd.enisa.europa.eu/vulnerability/EUVD-2002-1395
http://www.securityfocus.com/bid/5375
http://www.debian.org/security/2002/dsa-138
http://archives.neohapsis.com/archives/bugtraq/2002-07/0471.html