search menu icon-carat-right cmu-wordmark

CERT Coordination Center

MySQL fails to properly validate COM_TABLE_DUMP packets

Vulnerability Note VU#602457

Original Release Date: 2006-05-05 | Last Revised: 2006-05-17


MySQL contains a buffer overflow that may allow a remote, authenticated attacker to execute arbitrary code on a vulnerable server.



MySQL is an open-source database system available for Microsoft Windows, Linux, and other UNIX-based operating systems. Command packets are sent to the MySQL server to issue instructions to that server. One such command packet type is COM_TABLE_DUMP, which the MySQL Internals Manual describes as:

COM_TABLE_DUMP (used by slave server to get master table)
The Problem

MySQL fails to properly validate user-controlled parameters within COM_TABLE_DUMP packets. If an attacker sends a series of specially crafted COM_TABLE_DUMP packets to a vulnerable MySQL server, that attacker may be able to cause a buffer overflow.


Some level of authentication is needed to exploit this vulnerability. Exploit code for this vulnerability is publicly available


A remote, authenticated attacker may be able to execute arbitrary code on a MySQL server.


This issue is corrected in MySQL versions 4.0.27, 4.1.19, 5.0.21, and 5.1.10. Refer to the MySQL downloads page to get the appropriate updated version.

Disable anonymous access to MySQL

Although disabling anonymous access to MySQL does not prevent attacks from occurring, it does prevent unauthenticated users from attempting to exploit the vulnerability.

Vendor Information


MySQL AB Affected

Updated:  May 05, 2006



Vendor Statement

We have not received a statement from the vendor.

Vendor Information

The vendor has not provided us with any further information regarding this vulnerability.


Refer to the security fixes sections of:

If you have feedback, comments, or additional information about this vulnerability, please send us email.

Red Hat, Inc. Not Affected

Updated:  May 17, 2006


Not Affected

Vendor Statement

This issue only affected version 5 of MySQL. All Red Hat Enterprise Linux releases shipped with MySQL versions prior to 5 and are not vulnerable to this issue.

Vendor Information

The vendor has not provided us with any further information regarding this vulnerability.

CVSS Metrics

Group Score Vector



This vulnerability was reported by Stefano Di Paola.

This document was written by Jeff Gennari.

Other Information

CVE IDs: CVE-2006-1518
Severity Metric: 12.33
Date Public: 2006-05-02
Date First Published: 2006-05-05
Date Last Updated: 2006-05-17 12:24 UTC
Document Revision: 40

Sponsored by CISA.