CVE:CVE-2004-0381
CNNVD:CNNVD-200405-031
Oracle MySQL是美国甲骨文（Oracle）公司的一套开源的关系数据库管理系统。
MySQL错误报告工具(mysqlbug)不安全建立临时文件，本地攻击者可以利用这个漏洞破坏系统任意文件内容，造成拒绝服务攻击。mysqlbug是错误报告脚本，运行时会启动文本编辑器，用户会被提示使用模板写入他们的错误报告。问题存在与脚本在处理用户简单的退出文本编辑器而没有更改漏洞报告的情况下，mysqlbug会执行如下代码：--if cmp -s $TEMP $TEMP.xthen  echo "File not changed， no bug report submitted."  cp $TEMP /tmp/failed-mysql-bugreport  echo "The raw bug report exists in/tmp/failed-mysql-bugreport"  echo "If you use this remember that the first linesof the report nowis a lie.."  exit 1fi--会以静态文件名建立临时文件，因此攻击者可以建立符号连接，当其他用户调用错误调试时，可导致连接的目标文件被破坏，本地攻击者可以利用这个漏洞对本地系统进行拒绝服务攻击。
solution:Upgrade mysql mysql to a higher version than 4.1.0,and avoid the version 4.1.0; Upgrade oracle mysql to a higher version than 3.20.32a,3.22.26,3.22.27,3.22.28,3.22.29,3.22.30,3.22.32,3.23.2,3.23.3,3.23.5,3.23.8,3.23.9,3.23.10,3.23.22,3.23.23,3.23.24,3.23.25,3.23.26,3.23.27,3.23.28,3.23.28:gamma,3.23.29,3.23.30,3.23.31,3.23.32,3.23.33,3.23.34,3.23.36,3.23.37,3.23.38,3.23.39,3.23.40,3.23.41,3.23.42,3.23.43,3.23.44,3.23.45,3.23.46,3.23.47,3.23.48,3.23.49,3.23.50,3.23.51,3.23.52,3.23.53,3.23.53a,3.23.54,3.23.54a,3.23.55,3.23.56,3.23.58,4.0.0,4.0.1,4.0.2,4.0.3,4.0.4,4.0.5,4.0.5a,4.0.6,4.0.7,4.0.7:gamma,4.0.8,4.0.8:gamma,4.0.9,4.0.9:gamma,4.0.10,4.0.11,4.0.11:gamma,4.0.12,4.0.13,4.0.14,4.0.15,4.0.18,4.1.0:alpha,and avoid the version 3.20.32a,3.22.26,3.22.27,3.22.28,3.22.29,3.22.30,3.22.32,3.23.2,3.23.3,3.23.5,3.23.8,3.23.9,3.23.10,3.23.22,3.23.23,3.23.24,3.23.25,3.23.26,3.23.27,3.23.28,3.23.28:gamma,3.23.29,3.23.30,3.23.31,3.23.32,3.23.33,3.23.34,3.23.36,3.23.37,3.23.38,3.23.39,3.23.40,3.23.41,3.23.42,3.23.43,3.23.44,3.23.45,3.23.46,3.23.47,3.23.48,3.23.49,3.23.50,3.23.51,3.23.52,3.23.53,3.23.53a,3.23.54,3.23.54a,3.23.55,3.23.56,3.23.58,4.0.0,4.0.1,4.0.2,4.0.3,4.0.4,4.0.5,4.0.5a,4.0.6,4.0.7,4.0.7:gamma,4.0.8,4.0.8:gamma,4.0.9,4.0.9:gamma,4.0.10,4.0.11,4.0.11:gamma,4.0.12,4.0.13,4.0.14,4.0.15,4.0.18,4.1.0:alpha