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)…
Noroxi assessment
Priority: Monitor (action score 17/100)
- The sources we track (CISA KEV, Exploit-DB, Metasploit, Nuclei, GitHub) show no public exploit code or exploitation in the wild.
- Probability of exploitation in the next 30 days: 0.42% (FIRST EPSS).
- Fixed version: mysql-dfsg-5.0 (Debian:4.0) 5.0.32-7etch12; mysql-dfsg-5.0 (Debian:5.0) 5.0.51a-24+lenny3; mariadb (openSUSE:Tumbleweed) 10.0.22-3.8.
Low priority for now. Upgrade to mysql-dfsg-5.0 (Debian:4.0) 5.0.32-7etch12; mysql-dfsg-5.0 (Debian:5.0) 5.0.51a-24+lenny3; mariadb (openSUSE:Tumbleweed) 10.0.22-3.8 or later.
Generated automatically from the record's data: CVSS (NVD and CNA), CISA KEV and SSVC, FIRST EPSS, exploit sources, fixed versions. How we calculate it
Primary sources: NVD · CVE.org · FIRST EPSS
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.
- Published
- Nov 30, 2009
- Updated
- Jun 16, 2026
- EPSS
- 0.4% · 37th percentile
- CWE
- CWE-59
Report tools
Action score
17
Low priority for now.
- CVSS
- 17 / 40 · 4.4 / 10
- CISA KEV
- 0 / 30 · Not listed
- EPSS
- 0 / 30 · 0.4%
Get told when this record changes
- Not in KEV: no record of exploitation in the wild
- No public exploit code on record
- A fix has been released
If any of these changes, we'll tell you in the daily email digest.
Is MySQL on your server exposed to the internet?Run a port scan
Is your version affected? Check itNoroxi analysis
What does it mean in your environment?
The assessment above is generated automatically from the record's data; it doesn't know your environment. Our team verifies on your systems whether this vulnerability is actually exploitable and which mitigation is enough.
We use this product, ask for helpAffected systems
Is your version affected?
Pick the product and type the version you run. It's compared with this record's version ranges in your browser; the version isn't sent anywhere.
Using mysql? Add it to your stack and be the first to know about CVEs like this one. (MySQL)
Is MySQL on your server exposed to the internet?
The free port scanner finds the open ports on your server and matches the service versions it can read against known vulnerabilities. No account needed.
Run a port scanAffected versions
NVD version ranges (for catalog products). Add the product to your stack with a version and matching uses these.
- mysql mysql5.1.23
- mysql mysql5.1.32
- mysql mysql5.1.5
- oracle mysql5.1
- oracle mysql5.1.1
- oracle mysql5.1.10
- oracle mysql5.1.11
- oracle mysql5.1.12
+12 more rows
- oracle mysql5.1.13
- oracle mysql5.1.14
- oracle mysql5.1.15
- oracle mysql5.1.16
- oracle mysql5.1.17
- oracle mysql5.1.18
- oracle mysql5.1.19
- oracle mysql5.1.2
- oracle mysql5.1.20
- oracle mysql5.1.21
- oracle mysql5.1.22
- oracle mysql5.1.3
Package-level exposure
OSV and GitHub Advisory data: ecosystem, package and range. SBOM matching uses this table.
| Ecosystem | Package | Affected range | Fix |
|---|---|---|---|
| Debian:4.0 | mysql-dfsg-5.0 | before 5.0.32-7etch12 | 5.0.32-7etch12 |
| Debian:5.0 | mysql-dfsg-5.0 | before 5.0.51a-24+lenny3 | 5.0.51a-24+lenny3 |
| openSUSE:Tumbleweed | mariadb | before 10.0.22-3.8 | 10.0.22-3.8 |
| Red Hat:enterprise_linux:4::as | mysql | before 0:4.1.22-2.el4_8.3 | 0:4.1.22-2.el4_8.3 |
| Red Hat:enterprise_linux:4::as | mysql-bench | before 0:4.1.22-2.el4_8.3 | 0:4.1.22-2.el4_8.3 |
| Red Hat:enterprise_linux:4::as | mysql-debuginfo | before 0:4.1.22-2.el4_8.3 | 0:4.1.22-2.el4_8.3 |
| Red Hat:enterprise_linux:4::as | mysql-devel | before 0:4.1.22-2.el4_8.3 | 0:4.1.22-2.el4_8.3 |
| Red Hat:enterprise_linux:4::as | mysql-server | before 0:4.1.22-2.el4_8.3 | 0:4.1.22-2.el4_8.3 |
| Red Hat:enterprise_linux:5::client_workstation | mysql | before 0:5.0.77-4.el5_4.2 | 0:5.0.77-4.el5_4.2 |
| Red Hat:enterprise_linux:5::client_workstation | mysql-bench | before 0:5.0.77-4.el5_4.2 | 0:5.0.77-4.el5_4.2 |
| Red Hat:enterprise_linux:5::client_workstation | mysql-debuginfo | before 0:5.0.77-4.el5_4.2 | 0:5.0.77-4.el5_4.2 |
| Red Hat:enterprise_linux:5::client_workstation | mysql-devel | before 0:5.0.77-4.el5_4.2 | 0:5.0.77-4.el5_4.2 |
| Red Hat:enterprise_linux:5::client_workstation | mysql-server | before 0:5.0.77-4.el5_4.2 | 0:5.0.77-4.el5_4.2 |
| Red Hat:enterprise_linux:5::client_workstation | mysql-test | before 0:5.0.77-4.el5_4.2 | 0:5.0.77-4.el5_4.2 |
| SUSE:Linux Enterprise High Performance Computing 15 SP1-LTSS | mariadb104 | before 10.4.30-150100.3.5.10 | 10.4.30-150100.3.5.10 |
| SUSE:Linux Enterprise High Performance Computing 15 SP1-LTSS | python-mysqlclient | before 1.4.6-150100.3.3.7 | 1.4.6-150100.3.3.7 |
| SUSE:Linux Enterprise Software Development Kit 12 SP5 | lz4 | before 1.8.0-3.5.2 | 1.8.0-3.5.2 |
| SUSE:Linux Enterprise Software Development Kit 12 SP5 | mariadb-connector-c | before 3.1.22-2.35.1 | 3.1.22-2.35.1 |
| SUSE:Linux Enterprise Software Development Kit 12 SP5 | mariadb104 | before 10.4.30-8.5.46 | 10.4.30-8.5.46 |
| SUSE:Linux Enterprise Software Development Kit 12 SP5 | python-mysqlclient | before 1.3.14-8.9.2 | 1.3.14-8.9.2 |
Same product
mysql: all recordsOther highest-scoring records for the same primary product.
- CVE-2004-0627The check_scramble_323 function in MySQL 4.1.x before 4.1.3, and 5.0, allows remote attackers to bypass authentication via a zero-length…61This week
- CVE-2003-0780Buffer overflow in get_salt_from_password from sql_acl.cc for MySQL 4.0.14 and earlier, and 3.23.x, allows attackers with ALTER TABLE…60This week
- CVE-2004-0628Stack-based buffer overflow in MySQL 4.1.x before 4.1.3, and 5.0, allows remote attackers to cause a denial of service (crash) and possibly…42Plan
Published before and after this one in the same product
- ← EarlierCVE-2009-4019Nov 30, 2009 · mysqld in MySQL 5.0.x before 5.0.88 and 5.1.x before 5.1.41 does not (1) properly handle errors during execution of certain SELECT…21Monitor
- ← EarlierCVE-2009-4028Nov 30, 2009 · The vio_verify_callback function in viosslfactories.c in MySQL 5.0.x before 5.0.88 and 5.1.x before 5.1.41, when OpenSSL is used, accepts a…28Monitor
- Later →CVE-2010-1621May 14, 2010 · The mysql_uninstall_plugin function in sql/sql_plugin.cc in MySQL 5.1 before 5.1.46 does not check privileges before uninstalling a plugin…20Monitor
Remediation
Which version to upgrade to
Fix versions compiled from the vendor, package registries and Microsoft. Verify the vendor's note before upgrading.
| Product / package | Fixed version | Source |
|---|---|---|
| debian:mysql-dfsg-5.0 | 5.0.32-7etch12 · Debian:4.0 | Package registry (OSV) |
| opensuse:mariadb | 10.0.22-3.8 · openSUSE:Tumbleweed | Package registry (OSV) |
| red hat:mysql | 0:5.0.77-4.el5_4.2 · Red Hat:enterprise_linux:5::client_workstation | Package registry (OSV) |
| red hat:mysql-bench | 0:5.0.77-4.el5_4.2 · Red Hat:enterprise_linux:5::client_workstation | Package registry (OSV) |
| red hat:mysql-debuginfo | 0:5.0.77-4.el5_4.2 · Red Hat:enterprise_linux:5::client_workstation | Package registry (OSV) |
| red hat:mysql-devel | 0:5.0.77-4.el5_4.2 · Red Hat:enterprise_linux:5::client_workstation | Package registry (OSV) |
| red hat:mysql-server | 0:5.0.77-4.el5_4.2 · Red Hat:enterprise_linux:5::client_workstation | Package registry (OSV) |
| red hat:mysql-test | 0:5.0.77-4.el5_4.2 · Red Hat:enterprise_linux:5::client_workstation | Package registry (OSV) |
| suse:lz4 | 1.8.0-3.5.2 · SUSE:Linux Enterprise Software Development Kit 12 SP5 | Package registry (OSV) |
| suse:mariadb-connector-c | 3.1.22-2.35.1 · SUSE:Linux Enterprise Software Development Kit 12 SP5 | Package registry (OSV) |
| suse:mariadb104 | 10.4.30-150100.3.5.10 · SUSE:Linux Enterprise High Performance Computing 15 SP1-LTSS | Package registry (OSV) |
| suse:python-mysqlclient | 1.4.6-150100.3.3.7 · SUSE:Linux Enterprise High Performance Computing 15 SP1-LTSS | Package registry (OSV) |
Exploit status
No known public exploit
No public exploit has been observed yet. That doesn't mean you're safe, only that the bar is a little higher.
Research context
For pentesters and researchers: attack profile, score disagreement, timeline, patch commits, credits, variant and chain candidates, bug bounty scope. All derived from existing data; no exploit code.
Timeline
From publication to today: proof of concept, Metasploit module, CISA KEV and fix record. Dates are as reported by the sources.
No dated events beyond publication.
Not on record for this CVE: EPSS history · patch commit or PR link · researcher credit · variant or chain candidate · public bounty program.
Technical details
Attack conditions
If successful
- Confidentiality
- P · data can be read
- Integrity
- P · data or configuration can be modified
- Availability
- P · the service can be disrupted
- Attack complexity
- M
- Confidentiality impact
- P
- Integrity impact
- P
- Availability impact
- P
Weakness class (CWE)
CWE-59 · Improper Link Resolution Before File Access ('Link Following')CVSS vector
AV:L/AC:M/Au:N/C:P/I:P/A:P
nvd-primary
Attack context
MITRE CAPEC attack patterns and ATT&CK techniques for this weakness class (CWE). A starting point for detection rules and threat hunting.
Attack patterns (CAPEC)
ATT&CK techniques
- Obfuscated Files or Information: HTML SmugglingT1027.006
- Obfuscated Files or Information: Embedded PayloadsT1027.009
- Boot or Logon Autostart Execution:Shortcut ModificationT1547.009
- Hide Artifacts: Resource ForkingT1564.009
- Hijack Execution Flow: Executable Installer File Permissions WeaknessT1574.005
- Hijack Execution Flow: Services File Permissions WeaknessT1574.010
Change log (1)
- Fix✗ → ✓
For records you follow, these changes also arrive as notifications. →
References
Show all references (19 more)Show less
- dev.mysql.com/doc/refman/5.1/en/news-5-1-41.html
- lists.apple.com/archives/security-announce/2010//Mar/msg00001.html
- lists.mysql.com/commits/89940
- lists.opensuse.org/opensuse-security-announce/2010-05/msg00001.html
- lists.opensuse.org/opensuse-security-announce/2010-11/msg00005.html
- marc.info/?l=oss-security&m=125908040022018&w=2
- marc.info/?l=oss-security&m=125908080222685&w=2
- secunia.com/advisories/38517
- secunia.com/advisories/38573
- support.apple.com/kb/HT4077
- ubuntu.com/usn/usn-897-1
- www.debian.org/security/2010/dsa-1997
- www.openwall.com/lists/oss-security/2009/11/19/3
- www.openwall.com/lists/oss-security/2009/11/24/6
- www.redhat.com/support/errata/RHSA-2010-0109.html
- www.redhat.com/support/errata/RHSA-2010-0110.html
- www.ubuntu.com/usn/USN-1397-1
- www.vupen.com/english/advisories/2010/1107
- oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A11116
Vendor advisories and official records. Exploit/PoC links are deliberately left out.