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

Overview

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

Description

MySQL and COM_TABLE_DUMP

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.

Considerations

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

Impact

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

Solution

Upgrade
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

602457
Expand all

MySQL AB

Updated:  May 05, 2006

Status

  Vulnerable

Vendor Statement

No statement is currently available from the vendor regarding this vulnerability.

Vendor Information

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

Addendum

Refer to the security fixes sections of:

http://dev.mysql.com/doc/refman/4.1/en/news-4-0-27.html
http://dev.mysql.com/doc/refman/4.1/en/news-4-1-19.html
http://dev.mysql.com/doc/refman/5.0/en/news-5-0-21.html
http://dev.mysql.com/doc/refman/5.1/en/news-5-1-10.html

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

Red Hat, Inc.

Updated:  May 17, 2006

Status

  Not Vulnerable

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.

Addendum

There are no additional comments at this time.

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


CVSS Metrics

Group Score Vector
Base N/A N/A
Temporal N/A N/A
Environmental N/A

References

Credit

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: 31

Sponsored by the Department of Homeland Security Office of Cybersecurity and Communications.