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

CVE-2008-4098

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

Description

MySQL before 5.0.67 allows local users to bypass certain privilege checks by calling CREATE TABLE on a MyISAM table with modified (1) DATA DIRECTORY or (2) INDEX DIRECTORY arguments that are originally associated with pathnames without symlinks, and that can point to tables created at a future time at which a pathname is modified to contain a symlink to a subdirectory of the MySQL home data directory. NOTE: this vulnerability exists because of an incomplete fix for CVE-2008-4097.

Affected products

VendorProductVersionPlatform
canonical ubuntu linux 6.06 –
canonical ubuntu linux 7.10 –
canonical ubuntu linux 8.04 –
canonical ubuntu linux 8.10 –
canonical ubuntu linux 9.04 –
canonical ubuntu linux 9.10 –
debian debian linux 5.0 –
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.10 –
mysql mysql 5.0.15 –
mysql mysql 5.0.16 –
mysql mysql 5.0.17 –
mysql mysql 5.0.20 –
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 –
oracle mysql 5.0.23 –
oracle mysql 5.0.25 –
oracle mysql 5.0.26 –
oracle mysql 5.0.28 –
oracle mysql 5.0.30 sp1 –
oracle mysql 5.0.32 –
oracle mysql 5.0.34 –
oracle mysql 5.0.36 sp1 –
oracle mysql 5.0.38 –
oracle mysql 5.0.40 –
oracle mysql 5.0.41 –
oracle mysql 5.0.42 –
oracle mysql 5.0.44 sp1 –
oracle mysql 5.0.45 –
oracle mysql 5.0.46 –
oracle mysql 5.0.48 –
oracle mysql 5.0.50 –
oracle mysql 5.0.50 sp1 –
oracle mysql 5.0.51 –
oracle mysql 5.0.52 –
oracle mysql 5.0.56 sp1 –
oracle mysql 5.0.58 –
oracle mysql 5.0.60 sp1 –
oracle mysql 5.0.62 –
oracle mysql 5.0.64 –
oracle mysql 5.0.66 sp1 –
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