What’s Vulnerable › Vulnerabilities
CVE-2004-0836
- Severity: critical (CVSS 10.0 v2.0)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 9.8% probability of exploitation in the next 30 days
- Public exploit or detection template: yes
- Published: 2004-11-03 · updated 2026-06-16
- Weakness: CWE-119
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).
Affected products
- Debian Linux: 3.0
- MySQL Server: from 3.20 before 3.23.49; from 4.0.0 before 4.0.21 — fixed in 3.23.49, 4.0.21
How to fix
Upgrade to a fixed version: MySQL Server 3.23.49, 4.0.21. Check the vendor advisory for mitigations.
References
- http://bugs.mysql.com/bug.php?id=4017
- http://distro.conectiva.com.br/atualizacoes/?id=a&anuncio=000892
- http://lists.mysql.com/internals/14726
- http://marc.info/?l=bugtraq&m=110140517515735&w=2
- http://secunia.com/advisories/12305/
- http://www.ciac.org/ciac/bulletins/p-018.shtml
- http://www.debian.org/security/2004/dsa-562
- http://www.gentoo.org/security/en/glsa/glsa-200410-22.xml
- http://www.redhat.com/support/errata/RHSA-2004-597.html
- http://www.redhat.com/support/errata/RHSA-2004-611.html
- http://www.securityfocus.com/bid/10981
- http://www.trustix.org/errata/2004/0054/
Get alerted when CVE-2004-0836 or the next vulnerability affects your stack