MySQL Community Server 5.0 < 5.0.51 RENAME TABLE Symlink System Table Overwrite

This script is Copyright (C) 2007-2014 Tenable Network Security, Inc.

Synopsis :

The remote database server is susceptible to a local symlink attack.

Description :

The version of MySQL Community Server installed on the remote host
reportedly fails to check whether a file to which a symlink points
exists when using RENAME TABLE against a table with explicit DATA
DIRECTORY and INDEX DIRECTORY options. A local attacker may be able
to leverage this issue to overwrite system table information by
replacing the file to which the symlink points.

See also :,186931,186931

Solution :

Upgrade to MySQL Community Server version 5.0.51 or later.

Risk factor :

High / CVSS Base Score : 7.1
CVSS Temporal Score : 5.9
Public Exploit Available : true

Family: Databases

Nessus Plugin ID: 29251 ()

Bugtraq ID: 26765

CVE ID: CVE-2007-5969