mysql_install_db in MySQL 4.1.x before 4.1.12 and 5.x up to 5.0.4 creates the mysql_install_db.X file with a predictable filename and insecure permissions, which allows local users to execute arbitrary SQL commands by modifying the file's contents.
Exploitability
AV:LAC:LAu:NImpact
C:PI:PA:P4.6/AV:L/AC:L/Au:N/C:P/I:P/A:P