The mysqlhotcopy script in mysql 4.0.20 and earlier, when using the scp method from the mysql-server package, allows local users to overwrite arbitrary files via a symlink attack on temporary files.
https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A10693
https://exchange.xforce.ibmcloud.com/vulnerabilities/17030
http://www.redhat.com/support/errata/RHSA-2004-597.html
http://www.debian.org/security/2004/dsa-540
http://www.ciac.org/ciac/bulletins/p-018.shtml
http://packages.debian.org/changelogs/pool/main/m/mysql-dfsg/mysql-dfsg_4.0.20-11/changelog