Description
Buffer overflow in the open_table function in sql_base.cc in MySQL 5.0.x up to 5.0.20 might allow remote attackers to execute arbitrary code via crafted COM_TABLE_DUMP packets with invalid length values.
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 3.1 | mysql-dfsg | 4.0.24-10sarge2 | DSA-1079-1 |
| Debian 3.1 | mysql-dfsg-4.1 | 4.1.11a-4sarge3 | DSA-1073-1 |
| Debian 3.0 | mysql | 3.23.49-8.15 | DSA-1071-1 |
Public exploits
Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.
Exploit-DB 1
- MySQL 5.0.20 - COM_TABLE_DUMP Memory Leak/Remote Buffer Overflow EDB-1741 · remote · May 2, 2006 · verified
Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.
Advisories 3
- DSA-1071-1 mysql - several vulnerabilities Debian Security (DSA / DLA) · Mar 9, 2026
- DSA-1073-1 mysql-dfsg-4.1 - several vulnerabilities Debian Security (DSA / DLA) · Mar 9, 2026
- DSA-1079-1 mysql-dfsg - several Debian Security (DSA / DLA) · Mar 9, 2026
References
- 20060502 MySQL COM_TABLE_DUMP Information Leakage and Arbitrary commandexecution. mailing-list
- 19929 third-party-advisory
- http://www.wisec.it/vulns.php?page=8
- DSA-1079 vendor-advisory
- ADV-2006-1633 vdb-entry
- SUSE-SA:2006:036 vendor-advisory
- 839 third-party-advisory
- SUSE-SR:2006:012 vendor-advisory
- 17780 vdb-entry
- http://dev.mysql.com/doc/refman/5.0/en/news-5-0-21.html
- 20241 third-party-advisory
- 20762 third-party-advisory
- mysql-comtabledump-bo(26232) vdb-entry
- 20333 third-party-advisory
- http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=365939
- 1016016 vdb-entry
- DSA-1071 vendor-advisory
- 20253 third-party-advisory
- 20457 third-party-advisory
- DSA-1073 vendor-advisory
- VU#602457 third-party-advisory