The mysql_error() function in php versions less than or equal to 4.4.4 and 5.1.6 can be used to conduct cross site scripting attacks.
You can download this advisory from the following link: https://packetstormsecurity.com/files/download/50330/mysql_error.txt
Source: https://packetstormsecurity.com/files/50330/mysql_error.txt.html

