SQL injection vulnerability in index.php in the Gallery (com_gallery) component for Mambo and Joomla! allows remote attackers to execute arbitrary SQL commands via the id parameter in a detail action.
https://www.exploit-db.com/exploits/5084
http://www.attrition.org/pipermail/vim/2008-February/001902.html
http://www.attrition.org/pipermail/vim/2008-February/001901.html