Description
Buffer overflow in the mysql_real_connect function in MySQL 4.x before 4.0.21, and 3.x before 3.23.49, allows remote DNS servers to cause a denial of service and possibly execute arbitrary code via a DNS response with a large address length (h_length).
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.0 | mysql | 3.23.49-8.8 | DSA-562-2 |
Advisories 1
- DSA-562-2 mysql - several vulnerabilities Debian Security (DSA / DLA) · Mar 9, 2026
References
- RHSA-2004:611 vendor-advisory
- 10981 vdb-entry
- DSA-562 vendor-advisory
- 20041125 [USN-32-1] mysql vulnerabilities mailing-list
- mysql-realconnect-bo(17047) vdb-entry
- 12305 third-party-advisory
- CLA-2004:892 vendor-advisory
- RHSA-2004:597 vendor-advisory
- P-018 third-party-advisory government-resource
- GLSA-200410-22 vendor-advisory
- 2004-0054 vendor-advisory
- http://lists.mysql.com/internals/14726
- http://bugs.mysql.com/bug.php?id=4017