{"api_version":"1","generated_at":"2026-07-23T05:21:29+00:00","cve":"CVE-2004-0836","urls":{"html":"https://cve.report/CVE-2004-0836","api":"https://cve.report/api/cve/CVE-2004-0836.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2004-0836","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2004-0836"},"summary":{"title":"CVE-2004-0836","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).","state":"PUBLISHED","assigner":"mitre","published_at":"2004-11-03 05:00:00","updated_at":"2025-04-03 01:03:51"},"problem_types":["CWE-119","n/a"],"metrics":[{"version":"2.0","source":"nvd@nist.gov","type":"Primary","score":"10","severity":"","vector":"AV:N/AC:L/Au:N/C:C/I:C/A:C","data":{"version":"2.0","vectorString":"AV:N/AC:L/Au:N/C:C/I:C/A:C","baseScore":10,"accessVector":"NETWORK","accessComplexity":"LOW","authentication":"NONE","confidentialityImpact":"COMPLETE","integrityImpact":"COMPLETE","availabilityImpact":"COMPLETE"}}],"references":[{"url":"http://bugs.mysql.com/bug.php?id=4017","name":"http://bugs.mysql.com/bug.php?id=4017","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":["Exploit","Vendor Advisory"],"title":"MySQL Bugs: #4017: mysql_real_connect buffer overflow","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"http://www.redhat.com/support/errata/RHSA-2004-597.html","name":"http://www.redhat.com/support/errata/RHSA-2004-597.html","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":["Patch","Vendor Advisory"],"title":"redhat.com | Red Hat Support","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"http://www.ciac.org/ciac/bulletins/p-018.shtml","name":"http://www.ciac.org/ciac/bulletins/p-018.shtml","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":["Broken Link"],"title":"P-018: Red Hat Update MySQL Packages Fix Security Issues and Bugs","mime":"text/html","httpstatus":"-1","archivestatus":"200"},{"url":"http://marc.info/?l=bugtraq&m=110140517515735&w=2","name":"http://marc.info/?l=bugtraq&m=110140517515735&w=2","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":["Mailing List","Third Party Advisory"],"title":"'[USN-32-1] mysql vulnerabilities' - MARC","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"http://www.redhat.com/support/errata/RHSA-2004-611.html","name":"http://www.redhat.com/support/errata/RHSA-2004-611.html","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":["Patch","Vendor Advisory"],"title":"rhn.redhat.com | Red Hat Support","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"http://distro.conectiva.com.br/atualizacoes/?id=a&anuncio=000892","name":"http://distro.conectiva.com.br/atualizacoes/?id=a&anuncio=000892","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":["Broken Link"],"title":"Home - Conectiva","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"http://secunia.com/advisories/12305/","name":"http://secunia.com/advisories/12305/","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":["Third Party Advisory"],"title":"Secunia - Advisories - MySQL \"mysql_real_connect()\" Function Buffer Overflow Vulnerability","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://exchange.xforce.ibmcloud.com/vulnerabilities/17047","name":"https://exchange.xforce.ibmcloud.com/vulnerabilities/17047","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":["Third Party Advisory","VDB Entry"],"title":"IBM X-Force Exchange","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"http://www.gentoo.org/security/en/glsa/glsa-200410-22.xml","name":"http://www.gentoo.org/security/en/glsa/glsa-200410-22.xml","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":["Third Party Advisory"],"title":"Gentoo Linux Documentation\n--\n  MySQL: Multiple vulnerabilities","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"http://lists.mysql.com/internals/14726","name":"http://lists.mysql.com/internals/14726","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":["Vendor Advisory"],"title":"MySQL Lists: internals: bk commit into 3.23 tree (1.1425)","mime":"text/x-diff","httpstatus":"200","archivestatus":"200"},{"url":"http://www.trustix.org/errata/2004/0054/","name":"http://www.trustix.org/errata/2004/0054/","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":["Vendor Advisory"],"title":"","mime":"text/plain","httpstatus":"-1","archivestatus":"200"},{"url":"http://www.debian.org/security/2004/dsa-562","name":"http://www.debian.org/security/2004/dsa-562","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":["Third Party Advisory"],"title":"Debian -- Security Information -- DSA-562-1 mysql","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"http://www.securityfocus.com/bid/10981","name":"http://www.securityfocus.com/bid/10981","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":["Third Party Advisory","VDB Entry"],"title":"MySQL Mysql_real_connect Function Potential Remote Buffer Overflow Vulnerability","mime":"text/html","httpstatus":"200","archivestatus":"0"},{"url":"https://www.cve.org/CVERecord?id=CVE-2004-0836","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2004-0836","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[{"source":"CNA","vendor":"n/a","product":"n/a","version":"affected n/a","platforms":[]}],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[{"cve_year":"2004","cve_id":"836","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"oracle","cpe5":"mysql","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"}],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[]},"source_records":{"cve_program":{"containers":{"adp":[{"providerMetadata":{"dateUpdated":"2024-08-08T00:31:47.560Z","orgId":"af854a3a-2127-422b-91ae-364da2661108","shortName":"CVE"},"references":[{"name":"RHSA-2004:611","tags":["vendor-advisory","x_refsource_REDHAT","x_transferred"],"url":"http://www.redhat.com/support/errata/RHSA-2004-611.html"},{"name":"10981","tags":["vdb-entry","x_refsource_BID","x_transferred"],"url":"http://www.securityfocus.com/bid/10981"},{"name":"DSA-562","tags":["vendor-advisory","x_refsource_DEBIAN","x_transferred"],"url":"http://www.debian.org/security/2004/dsa-562"},{"name":"20041125 [USN-32-1] mysql vulnerabilities","tags":["mailing-list","x_refsource_BUGTRAQ","x_transferred"],"url":"http://marc.info/?l=bugtraq&m=110140517515735&w=2"},{"name":"mysql-realconnect-bo(17047)","tags":["vdb-entry","x_refsource_XF","x_transferred"],"url":"https://exchange.xforce.ibmcloud.com/vulnerabilities/17047"},{"name":"12305","tags":["third-party-advisory","x_refsource_SECUNIA","x_transferred"],"url":"http://secunia.com/advisories/12305/"},{"name":"CLA-2004:892","tags":["vendor-advisory","x_refsource_CONECTIVA","x_transferred"],"url":"http://distro.conectiva.com.br/atualizacoes/?id=a&anuncio=000892"},{"name":"RHSA-2004:597","tags":["vendor-advisory","x_refsource_REDHAT","x_transferred"],"url":"http://www.redhat.com/support/errata/RHSA-2004-597.html"},{"name":"P-018","tags":["third-party-advisory","government-resource","x_refsource_CIAC","x_transferred"],"url":"http://www.ciac.org/ciac/bulletins/p-018.shtml"},{"name":"GLSA-200410-22","tags":["vendor-advisory","x_refsource_GENTOO","x_transferred"],"url":"http://www.gentoo.org/security/en/glsa/glsa-200410-22.xml"},{"name":"2004-0054","tags":["vendor-advisory","x_refsource_TRUSTIX","x_transferred"],"url":"http://www.trustix.org/errata/2004/0054/"},{"tags":["x_refsource_MISC","x_transferred"],"url":"http://lists.mysql.com/internals/14726"},{"tags":["x_refsource_MISC","x_transferred"],"url":"http://bugs.mysql.com/bug.php?id=4017"}],"title":"CVE Program Container"}],"cna":{"affected":[{"product":"n/a","vendor":"n/a","versions":[{"status":"affected","version":"n/a"}]}],"datePublic":"2004-10-11T00:00:00.000Z","descriptions":[{"lang":"en","value":"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)."}],"problemTypes":[{"descriptions":[{"description":"n/a","lang":"en","type":"text"}]}],"providerMetadata":{"dateUpdated":"2017-07-10T14:57:01.000Z","orgId":"8254265b-2729-46b6-b9e3-3dfca2d5bfca","shortName":"mitre"},"references":[{"name":"RHSA-2004:611","tags":["vendor-advisory","x_refsource_REDHAT"],"url":"http://www.redhat.com/support/errata/RHSA-2004-611.html"},{"name":"10981","tags":["vdb-entry","x_refsource_BID"],"url":"http://www.securityfocus.com/bid/10981"},{"name":"DSA-562","tags":["vendor-advisory","x_refsource_DEBIAN"],"url":"http://www.debian.org/security/2004/dsa-562"},{"name":"20041125 [USN-32-1] mysql vulnerabilities","tags":["mailing-list","x_refsource_BUGTRAQ"],"url":"http://marc.info/?l=bugtraq&m=110140517515735&w=2"},{"name":"mysql-realconnect-bo(17047)","tags":["vdb-entry","x_refsource_XF"],"url":"https://exchange.xforce.ibmcloud.com/vulnerabilities/17047"},{"name":"12305","tags":["third-party-advisory","x_refsource_SECUNIA"],"url":"http://secunia.com/advisories/12305/"},{"name":"CLA-2004:892","tags":["vendor-advisory","x_refsource_CONECTIVA"],"url":"http://distro.conectiva.com.br/atualizacoes/?id=a&anuncio=000892"},{"name":"RHSA-2004:597","tags":["vendor-advisory","x_refsource_REDHAT"],"url":"http://www.redhat.com/support/errata/RHSA-2004-597.html"},{"name":"P-018","tags":["third-party-advisory","government-resource","x_refsource_CIAC"],"url":"http://www.ciac.org/ciac/bulletins/p-018.shtml"},{"name":"GLSA-200410-22","tags":["vendor-advisory","x_refsource_GENTOO"],"url":"http://www.gentoo.org/security/en/glsa/glsa-200410-22.xml"},{"name":"2004-0054","tags":["vendor-advisory","x_refsource_TRUSTIX"],"url":"http://www.trustix.org/errata/2004/0054/"},{"tags":["x_refsource_MISC"],"url":"http://lists.mysql.com/internals/14726"},{"tags":["x_refsource_MISC"],"url":"http://bugs.mysql.com/bug.php?id=4017"}],"x_legacyV4Record":{"CVE_data_meta":{"ASSIGNER":"cve@mitre.org","ID":"CVE-2004-0836","STATE":"PUBLIC"},"affects":{"vendor":{"vendor_data":[{"product":{"product_data":[{"product_name":"n/a","version":{"version_data":[{"version_value":"n/a"}]}}]},"vendor_name":"n/a"}]}},"data_format":"MITRE","data_type":"CVE","data_version":"4.0","description":{"description_data":[{"lang":"eng","value":"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)."}]},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"n/a"}]}]},"references":{"reference_data":[{"name":"RHSA-2004:611","refsource":"REDHAT","url":"http://www.redhat.com/support/errata/RHSA-2004-611.html"},{"name":"10981","refsource":"BID","url":"http://www.securityfocus.com/bid/10981"},{"name":"DSA-562","refsource":"DEBIAN","url":"http://www.debian.org/security/2004/dsa-562"},{"name":"20041125 [USN-32-1] mysql vulnerabilities","refsource":"BUGTRAQ","url":"http://marc.info/?l=bugtraq&m=110140517515735&w=2"},{"name":"mysql-realconnect-bo(17047)","refsource":"XF","url":"https://exchange.xforce.ibmcloud.com/vulnerabilities/17047"},{"name":"12305","refsource":"SECUNIA","url":"http://secunia.com/advisories/12305/"},{"name":"CLA-2004:892","refsource":"CONECTIVA","url":"http://distro.conectiva.com.br/atualizacoes/?id=a&anuncio=000892"},{"name":"RHSA-2004:597","refsource":"REDHAT","url":"http://www.redhat.com/support/errata/RHSA-2004-597.html"},{"name":"P-018","refsource":"CIAC","url":"http://www.ciac.org/ciac/bulletins/p-018.shtml"},{"name":"GLSA-200410-22","refsource":"GENTOO","url":"http://www.gentoo.org/security/en/glsa/glsa-200410-22.xml"},{"name":"2004-0054","refsource":"TRUSTIX","url":"http://www.trustix.org/errata/2004/0054/"},{"name":"http://lists.mysql.com/internals/14726","refsource":"MISC","url":"http://lists.mysql.com/internals/14726"},{"name":"http://bugs.mysql.com/bug.php?id=4017","refsource":"MISC","url":"http://bugs.mysql.com/bug.php?id=4017"}]}}}},"cveMetadata":{"assignerOrgId":"8254265b-2729-46b6-b9e3-3dfca2d5bfca","assignerShortName":"mitre","cveId":"CVE-2004-0836","datePublished":"2004-10-16T04:00:00.000Z","dateReserved":"2004-09-08T00:00:00.000Z","dateUpdated":"2024-08-08T00:31:47.560Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.1"},"nvd":{"publishedDate":"2004-11-03 05:00:00","lastModifiedDate":"2025-04-03 01:03:51","problem_types":["CWE-119","n/a"],"metrics":{"cvssMetricV2":[{"source":"nvd@nist.gov","type":"Primary","cvssData":{"version":"2.0","vectorString":"AV:N/AC:L/Au:N/C:C/I:C/A:C","baseScore":10,"accessVector":"NETWORK","accessComplexity":"LOW","authentication":"NONE","confidentialityImpact":"COMPLETE","integrityImpact":"COMPLETE","availabilityImpact":"COMPLETE"},"baseSeverity":"HIGH","exploitabilityScore":10,"impactScore":10,"acInsufInfo":false,"obtainAllPrivilege":true,"obtainUserPrivilege":false,"obtainOtherPrivilege":false,"userInteractionRequired":false}]},"configurations":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:a:oracle:mysql:*:*:*:*:*:*:*:*","versionStartIncluding":"3.20","versionEndExcluding":"3.23.49","matchCriteriaId":"B4E0733B-5C1C-4579-9FD2-251E45E8D93F"},{"vulnerable":true,"criteria":"cpe:2.3:a:oracle:mysql:*:*:*:*:*:*:*:*","versionStartIncluding":"4.0.0","versionEndExcluding":"4.0.21","matchCriteriaId":"E9CB33C2-B487-4DC3-A7F4-4A9D61EA12FD"}]}]},{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:debian:debian_linux:3.0:*:*:*:*:*:*:*","matchCriteriaId":"2CAE037F-111C-4A76-8FFE-716B74D65EF3"}]}]}]},"legacy_mitre":{"record":{"CveYear":"2004","CveId":"836","Ordinal":"1","Title":"CVE-2004-0836","CVE":"CVE-2004-0836","Year":"2004"},"notes":[{"CveYear":"2004","CveId":"836","Ordinal":"1","NoteData":"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).","Type":"Description","Title":"CVE-2004-0836"},{"CveYear":"2004","CveId":"836","Ordinal":"2","NoteData":"2004-10-16","Type":"Other","Title":"Published"},{"CveYear":"2004","CveId":"836","Ordinal":"3","NoteData":"2017-07-10","Type":"Other","Title":"Modified"}]}}}