MySQL Password Length Remote Buffer Overflow Vulnerability

BID:10655

Info

MySQL Password Length Remote Buffer Overflow Vulnerability

Bugtraq ID: 10655
Class: Boundary Condition Error
CVE: CVE-2004-0627
CVE-2004-0627
Remote: Yes
Local: No
Published: Jul 05 2004 12:00AM
Updated: Jul 06 2016 12:19PM
Credit: Discovery is credited to Chris Anley.
Vulnerable: MySQL AB MySQL 5.0 .0-alpha
MySQL AB MySQL 5.0 .0-0
MySQL AB MySQL 4.1.2 -alpha
MySQL AB MySQL 4.1.0.0-alpha
MySQL AB MySQL 4.1.0-0
Not Vulnerable: MySQL AB MySQL 5.0
MySQL AB MySQL 4.1.3 -beta
MySQL AB MySQL 4.1.3 -0

Discussion

MySQL Password Length Remote Buffer Overflow Vulnerability

MySQL is prone to a remotely exploitable stack-based buffer overflow vulnerability.

This issue exists in the password checking routines and may be triggered by a malicious authentication packet.

Exploitation will be complicated by the fact that the exploit string will be scrambled with a random number generator and may also require a valid password hash. However, if successfully exploited, the attacker may execute arbitrary code in the context of the server.

This issue is known to exist in MySQL 4.1 releases prior to 4.1.3 and MySQL 5.0.

Exploit / POC

MySQL Password Length Remote Buffer Overflow Vulnerability

Currently we are not aware of any exploits for this issue. If you feel we are in error or are aware of more recent information, please mail us at: [email protected] <mailto:[email protected]>.

Solution / Fix

MySQL Password Length Remote Buffer Overflow Vulnerability

Solution:
This issue has been addressed in MySQL 4.1.3 releases. Recent builds of 5.0 reportedly also address this issue, but users are advised to contact the vendor for further details.


MySQL AB MySQL 4.1.0.0-alpha

MySQL AB MySQL 4.1.0-0

MySQL AB MySQL 4.1.2 -alpha

References

MySQL Password Length Remote Buffer Overflow Vulnerability

References:

© CVE.report 2026

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

Free CVE JSON API cve.report/api

CVE.report and Source URL Uptime Status status.cve.report