Home / Mysql / Mysql / CVE-2005-2558
CVE-2005-2558: is it exploited, and which versions of Mysql are affected and fixed?
CVE-2005-2558 is a vulnerability in Mysql. It is not known to be exploited: it is not in CISA's Known Exploited Vulnerabilities catalog (catalog 2026.11.30, read December 3, 2026, 08:08 UTC). Affected: mysql 4.1.0, mysql 4.1.3, mysql 4.1.10 and 29 more (NVD). No fixed version is listed in the sources yet; check the vendor advisory. Severity: Medium (4.6, CVSS 2.0, from NVD).
Data checked December 3, 2026: last read CISA KEV December 3, 2026, 08:08 UTC, CVE record November 19, 2026, 07:21 UTC and NVD November 19, 2026, 08:54 UTC.
What is CVE-2005-2558?
Stack-based buffer overflow in the init_syms function in MySQL 4.0 before 4.0.25, 4.1 before 4.1.13, and 5.0 before 5.0.7-beta allows remote authenticated users who can create user-defined functions to execute arbitrary code via a long function_name field.
From the CVE record by mitre, last updated August 7, 2024, 22:30 UTC.
Which products and versions does the NVD list as affected?
| Vendor | Product | Versions | Type |
|---|---|---|---|
| mysql | mysql | 4.1.0 | application |
| mysql | mysql | 4.1.3 | application |
| mysql | mysql | 4.1.10 | application |
| mysql | mysql | 5.0.1 | application |
| mysql | mysql | 5.0.2 | application |
| mysql | mysql | 5.0.3 | application |
| mysql | mysql | 5.0.4 | application |
| oracle | mysql | 4.0.0 | application |
| oracle | mysql | 4.0.1 | application |
| oracle | mysql | 4.0.2 | application |
| oracle | mysql | 4.0.3 | application |
| oracle | mysql | 4.0.4 | application |
| oracle | mysql | 4.0.5 | application |
| oracle | mysql | 4.0.5a | application |
| oracle | mysql | 4.0.6 | application |
| oracle | mysql | 4.0.7 | application |
| oracle | mysql | 4.0.8 | application |
| oracle | mysql | 4.0.9 | application |
| oracle | mysql | 4.0.10 | application |
| oracle | mysql | 4.0.11 | application |
| oracle | mysql | 4.0.12 | application |
| oracle | mysql | 4.0.13 | application |
| oracle | mysql | 4.0.14 | application |
| oracle | mysql | 4.0.15 | application |
| oracle | mysql | 4.0.18 | application |
NVD analysis (status Modified), last modified June 16, 2026, 22:15 UTC.
How severe is CVE-2005-2558?
| Score | Version | Vector | Source |
|---|---|---|---|
| Medium 4.6 | CVSS 2.0 | AV:L/AC:L/Au:N/C:P/I:P/A:P | NVD |
Each score is shown as its source gave it: the CNA that wrote the record, CISA's ADP (vulnrichment) and the NVD. They can differ.
What the ratings mean: in CVSS 3 and 4, scores run from 0 to 10, with Low 0.1 to 3.9, Medium 4.0 to 6.9, High 7.0 to 8.9 and Critical 9.0 to 10.0. CVSS 2 has no Critical band: its High runs from 7.0 to 10.0. The vector lists how the flaw is reached (network, local), what an attacker needs (privileges, a user's click) and what it can harm.
Is CVE-2005-2558 exploited in the wild?
- CISA KEV
- Not listed (catalog 2026.11.30)
- EPSS
- 2.33% probability of exploitation activity in the next 30 days, percentile 84.0 (FIRST EPSS, scores of December 2, 2026)
Where are the vendor advisories and references?
- DSA-831 vendor-advisory, x_refsource_DEBIAN
- mysql-user-defined-function-bo(21737) vdb-entry, x_refsource_XF
- MDKSA-2005:163 vendor-advisory, x_refsource_MANDRIVA
- 20050808 [AppSecInc Advisory MYSQL05-V0002] Buffer Overflow in MySQL User Defined Functions mailing-list, x_refsource_FULLDISC
- USN-180-2 vendor-advisory, x_refsource_UBUNTU
- USN-180-1 vendor-advisory, x_refsource_UBUNTU
- SUSE-SR:2005:021 vendor-advisory, x_refsource_SUSE
- DSA-833 vendor-advisory, x_refsource_DEBIAN
- DSA-829 vendor-advisory, x_refsource_DEBIAN
- 20381 third-party-advisory, x_refsource_SECUNIA
- 14509 vdb-entry, x_refsource_BID
- 236703 vendor-advisory, x_refsource_SUNALERT
- FLSA-2006:167803 vendor-advisory, x_refsource_FEDORA
- http://www.appsecinc.com/resources/alerts/mysql/2005-002.html x_refsource_MISC
- 20050808 [AppSecInc Advisory MYSQL05-V0002] Buffer Overflow in MySQL User Defined Functions mailing-list, x_refsource_BUGTRAQ
- ADV-2008-1326 vdb-entry, x_refsource_VUPEN
- SCOSA-2006.18 vendor-advisory, x_refsource_SCO
- 17027 third-party-advisory, x_refsource_SECUNIA
- 29847 third-party-advisory, x_refsource_SECUNIA
When was it published, and where is the official record?
- Reserved
- August 16, 2005
- Published
- August 16, 2005, 04:00 UTC
- CVE record updated
- August 7, 2024, 22:30 UTC by mitre
- NVD
- Modified, last modified June 16, 2026, 22:15 UTC
- Last checked
- CVE list November 19, 2026, 07:21 UTC; NVD November 19, 2026, 08:54 UTC; KEV December 3, 2026, 08:08 UTC; EPSS December 2, 2026
- Official record
- cve.org · NVD
What other CVEs affect Mysql?
- Oct 27, 2017CVE-2017-15945 Mariadb: incorrect permissions on a critical resource
- Apr 16, 2015CVE-2015-2575 Debian Linux: improper access control
- Mar 28, 2013CVE-2013-1492 Mysql: memory corruption (buffer overflow)
- Mar 28, 2013CVE-2012-0553 Mysql: memory corruption (buffer overflow)
- Dec 21, 2012CVE-2012-0882 Oracle Mysql: memory corruption (buffer overflow)
- Aug 17, 2012CVE-2012-2749 Mysql: n/a
- Aug 17, 2012CVE-2012-2102 Mysql: memory corruption (buffer overflow)
- Aug 17, 2012CVE-2009-5026 Mysql: SQL injection
Questions about CVE-2005-2558
Is CVE-2005-2558 exploited in the wild?
Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 08:08 UTC. FIRST's EPSS gives it a 2.33% chance of exploitation activity in the next 30 days (scores of December 2, 2026).
Which versions of Mysql are affected by CVE-2005-2558?
mysql 4.1.0, mysql 4.1.3, mysql 4.1.10, mysql 5.0.1, mysql 5.0.2, mysql 5.0.3 and 26 more, per the NVD. The tables above give every range the sources list.
Which version fixes CVE-2005-2558?
None of the sources (the CVE record, the NVD and GitHub's reviewed advisories) lists a fixed version yet. Check the vendor's advisory in the references.
How severe is CVE-2005-2558?
Medium (4.6, CVSS 2.0, from NVD). The severity table above shows each score with its source.
Where is the official record of CVE-2005-2558?
The CVE Program's record is at cve.org and the NVD's at nvd.nist.gov. For a fix, the vendor's own advisory is the one to follow.