PHP remote file inclusion vulnerability in theme/include_mode/template.php in JV2 Folder Gallery 3.0.2 and earlier allows remote attackers to execute arbitrary PHP code via a URL in the galleryfilesdir parameter.
https://www.exploit-db.com/exploits/3240
https://exchange.xforce.ibmcloud.com/vulnerabilities/32043
http://www.vupen.com/english/advisories/2007/0447
http://www.securityfocus.com/bid/22354