Directory traversal vulnerability in zd_numer.php in Galeria Zdjec 3.0 and earlier allows remote attackers to include and execute arbitrary local files via a .. (dot dot) in the galeria parameter, as demonstrated by injecting PHP sequences into an Apache HTTP Server log file, which is then included by zd_numer.php.
https://www.exploit-db.com/exploits/3225
https://exchange.xforce.ibmcloud.com/vulnerabilities/31967
http://www.vupen.com/english/advisories/2007/0425