CVE Vulnerabilities

CVE-2005-0004

Improper Link Resolution Before File Access ('Link Following')

Published: Apr 14, 2005 | Modified: Aug 05, 2022
CVSS 3.x
N/A
Source:
NVD
CVSS 2.x
4.6 MEDIUM
AV:L/AC:L/Au:N/C:P/I:P/A:P
RedHat/V2
RedHat/V3
7.9 MODERATE
CVSS:3.0/AV:L/AC:L/PR:L/UI:R/S:C/C:N/I:H/A:H
Ubuntu
UNTRIAGED

The mysqlaccess script in MySQL 4.0.23 and earlier, 4.1.x before 4.1.10, 5.0.x before 5.0.3, and other versions including 3.x, allows local users to overwrite arbitrary files or read temporary files via a symlink attack on temporary files.

Weakness

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.

Affected Software

Name Vendor Start Version End Version
Mysql Oracle 4.0.0 (including) 4.0.23 (excluding)
Mysql Oracle 4.1.0 (including) 4.1.10 (excluding)
Mysql Oracle 5.0.0 (including) 5.0.3 (excluding)
Mysql-dfsg Ubuntu dapper *
Mysql-dfsg Ubuntu edgy *
Mysql-dfsg-4.1 Ubuntu dapper *
Mysql-dfsg-4.1 Ubuntu edgy *
Mysql-dfsg-5.0 Ubuntu dapper *
Mysql-dfsg-5.0 Ubuntu devel *
Mysql-dfsg-5.0 Ubuntu edgy *
Mysql-dfsg-5.0 Ubuntu feisty *

Potential Mitigations

  • 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.

References