Lucene search

K
certCERTVU:602457
HistoryMay 05, 2006 - 12:00 a.m.

MySQL fails to properly validate COM_TABLE_DUMP packets

2006-05-0500:00:00
www.kb.cert.org
20

6.5 Medium

CVSS2

Access Vector

NETWORK

Access Complexity

LOW

Authentication

SINGLE

Confidentiality Impact

PARTIAL

Integrity Impact

PARTIAL

Availability Impact

PARTIAL

AV:N/AC:L/Au:S/C:P/I:P/A:P

0.171 Low

EPSS

Percentile

96.0%

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

Filter by status: All Affected Not Affected Unknown

Filter by content: __ Additional information available

__ Sort by: Status Alphabetical

Expand all

Javascript is disabled. Click here to view vendors.

MySQL AB __ Affected

Updated: May 05, 2006

Status

Affected

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.

Addendum

Refer to the security fixes sections of:

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

If you have feedback, comments, or additional information about this vulnerability, please send us [email](<mailto:[email protected]?Subject=VU%23602457 Feedback>).

Red Hat, Inc. __ Not Affected

Updated: May 17, 2006

Status

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
Base
Temporal
Environmental

References

Acknowledgements

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:

6.5 Medium

CVSS2

Access Vector

NETWORK

Access Complexity

LOW

Authentication

SINGLE

Confidentiality Impact

PARTIAL

Integrity Impact

PARTIAL

Availability Impact

PARTIAL

AV:N/AC:L/Au:S/C:P/I:P/A:P

0.171 Low

EPSS

Percentile

96.0%