1. CVE archive
  2. 2008
  3. CVE-2008-7247

CVE-2008-7247

6 Medium severity CVSS v2.0 · source NVD AV:N/AC:M/Au:S/C:P/I:P/A:P 6 – Medium

Description

sql/sql_table.cc in MySQL 5.0.x through 5.0.88, 5.1.x through 5.1.41, and 6.0 before 6.0.9-alpha, when the data home directory contains a symlink to a different filesystem, allows remote authenticated users to bypass intended access restrictions by calling CREATE TABLE with a (1) DATA DIRECTORY or (2) INDEX DIRECTORY argument referring to a subdirectory that requires following this symlink.

Affected products

VendorProductVersionPlatform
mysql mysql 5.0.20 –
mysql mysql 5.0.22.1.0.1 –
mysql mysql 5.0.24 –
mysql mysql 5.0.30 –
mysql mysql 5.0.36 –
mysql mysql 5.0.44 –
mysql mysql 5.0.54 –
mysql mysql 5.0.56 –
mysql mysql 5.0.60 –
mysql mysql 5.0.66 –
mysql mysql 5.0.82 –
mysql mysql 5.1.5 –
mysql mysql 5.1.23 –
mysql mysql 5.1.32 –
mysql mysql 6.0.9 –
mysql mysql 5.0.0 –
mysql mysql 5.0.1 –
mysql mysql 5.0.2 –
mysql mysql 5.0.3 –
mysql mysql 5.0.4 –
mysql mysql 5.0.5 –
mysql mysql 5.0.5.0.21 –
mysql mysql 5.0.10 –
mysql mysql 5.0.15 –
mysql mysql 5.0.16 –
mysql mysql 5.0.17 –
oracle mysql 5.0.0 alpha –
oracle mysql 5.0.3 beta –
oracle mysql 5.0.6 –
oracle mysql 5.0.7 –
oracle mysql 5.0.8 –
oracle mysql 5.0.11 –
oracle mysql 5.0.12 –
oracle mysql 5.0.13 –
oracle mysql 5.0.14 –
oracle mysql 5.0.18 –
oracle mysql 5.0.19 –
oracle mysql 5.0.21 –
oracle mysql 5.0.22 –
oracle mysql 5.0.23 –
oracle mysql 5.0.25 –
oracle mysql 5.0.26 –
oracle mysql 5.0.27 –
oracle mysql 5.0.30 sp1 –
oracle mysql 5.0.32 –
oracle mysql 5.0.33 –
oracle mysql 5.0.37 –
oracle mysql 5.0.38 –
oracle mysql 5.0.41 –
oracle mysql 5.0.42 –
oracle mysql 5.0.45 –
oracle mysql 5.0.50 –
oracle mysql 5.0.51 –
oracle mysql 5.0.52 –
oracle mysql 5.0.75 –
oracle mysql 5.0.77 –
oracle mysql 5.0.81 –
oracle mysql 5.0.83 –
oracle mysql 5.1 –
oracle mysql 5.1.1 –
oracle mysql 5.1.2 –
oracle mysql 5.1.3 –
oracle mysql 5.1.4 –
oracle mysql 5.1.6 –
oracle mysql 5.1.7 –
oracle mysql 5.1.8 –
oracle mysql 5.1.9 –
oracle mysql 5.1.10 –
oracle mysql 5.1.11 –
oracle mysql 5.1.12 –
oracle mysql 5.1.13 –
oracle mysql 5.1.14 –
oracle mysql 5.1.15 –
oracle mysql 5.1.16 –
oracle mysql 5.1.17 –
oracle mysql 5.1.18 –
oracle mysql 5.1.19 –
oracle mysql 5.1.20 –
oracle mysql 5.1.21 –
oracle mysql 5.1.22 –
oracle mysql 5.1.30 –
oracle mysql 6.0.0 –
oracle mysql 6.0.1 –
oracle mysql 6.0.2 –
oracle mysql 6.0.3 –
oracle mysql 6.0.4 –
All 1,328 Oracle Mysql vulnerabilities
All 92 Mysql vulnerabilities

Vulnerability type

CWE-59 Improper Link Resolution Before File Access

The product attempts to access a file based on the filename, but it does not properly prevent that filename from identifying a link or shortcut that resolves to an unintended resource.

Impact on systems

ScopeImpact
Confidentiality, Integrity, Access Control Read Files or Directories, Modify Files or Directories, Bypass Protection Mechanism
An attacker may be able to traverse the file system to unintended locations and read or overwrite the contents of unexpected files. If the files are used for a security mechanism then an attacker may be able to bypass the mechanism.
Other Execute Unauthorized Code or Commands
Windows simple shortcuts, sometimes referred to as soft links, can be exploited remotely since a .LNK file can be uploaded like a normal file. This can enable remote execution.

How to prevent it

Architecture and Design · Separation of Privilege Follow the principle of least privilege when assigning access rights to entities in a software system. Denying access to a file can prevent an attacker from replacing that file with a link to a sensitive file. Ensure good compartmentalization in the system to provide protected areas that can be trusted.

All 1,887 CWE-59 CVEs, with trend and prevention

Source: MITRE CWE catalog · cwe.mitre.org