All vulnerabilities

Servers and applications

CVE-2009-4030

MySQL 5.1.x before 5.1.41 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 data…

Severity
Medium 4.4
Published
30 Nov 2009
Last changed
16 Jun 2026
Added to UpHeron
21 Oct 2026
Exploit chance
0.4% in the next 30 daysHigher than 37% of CVEs. EPSS by FIRST, 12 Nov 2026
Weakness
Link following (CWE-59)
Attack
Needs local access · No login needed
Attacker can
Read some data · Change some data · Slow it down
CVSS vector
AV:L/AC:M/Au:N/C:P/I:P/A:P
Sources
NVD

Description

MySQL 5.1.x before 5.1.41 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 data home directory, related to incorrect calculation of the mysql_unpacked_real_data_home value. NOTE: this vulnerability exists because of an incomplete fix for CVE-2008-4098 and CVE-2008-2079.

From NVD.

Affected software

SoftwareAffected versions
MySQLServers and applications · cpe:a:oracle:mysql
  • Version 5.1.30
  • Version 5.1.22
  • Version 5.1.21
  • Version 5.1.20
All 23 release lines
  • Version 5.1
  • Version 5.1.1
  • Version 5.1.2
  • Version 5.1.3
  • Version 5.1.4
  • Version 5.1.6
  • Version 5.1.7
  • Version 5.1.8
  • Version 5.1.9
  • Version 5.1.10
  • Version 5.1.11
  • Version 5.1.12
  • Version 5.1.13
  • Version 5.1.14
  • Version 5.1.15
  • Version 5.1.16
  • Version 5.1.17
  • Version 5.1.18
  • Version 5.1.19
  • Version 5.1.20
  • Version 5.1.21
  • Version 5.1.22
  • Version 5.1.30

References

  • NVD https://nvd.nist.gov/vuln/detail/CVE-2009-4030
  • CVE.org https://www.cve.org/CVERecord?id=CVE-2009-4030