Multiple SQL injection vulnerabilities in Softbiz Image Gallery allow remote attackers to execute arbitrary SQL commands via the (1) id parameter in image_desc.php, (2) provided parameter in template.php, (3) cid parameter in suggest_image.php, (4) img_id parameter in insert_rating.php, and (5) cid parameter in images.php.
https://exchange.xforce.ibmcloud.com/vulnerabilities/25616
http://www.vupen.com/english/advisories/2006/1217
http://www.securityfocus.com/archive/1/429763/100/0/threaded