{"id":"CVE-2008-5416","aliases":["EUVD-2008-5393","GHSA-qhrx-q7mr-q5x7"],"status":"published","title":"Heap-based buffer overflow in Microsoft SQL Server 2000 SP4, 8.00.2050, 8.00.2039, and earlier;...","description":"Heap-based buffer overflow in Microsoft SQL Server 2000 SP4, 8.00.2050, 8.00.2039, and earlier; SQL Server 2000 Desktop Engine (MSDE 2000) SP4; SQL Server 2005 SP2 and 9.00.1399.06; SQL Server 2000 Desktop Engine (WMSDE) on Windows Server 2003 SP1 and SP2; and Windows Internal Database (WYukon) SP2 allows remote authenticated users to cause a denial of service (access violation exception) or execute arbitrary code by calling the sp_replwritetovarbin extended stored procedure with a set of invalid parameters that trigger memory overwrite, aka \"SQL Server sp_replwritetovarbin Limited Memory Overwrite Vulnerability.\"","severity":{"version":"2.0","score":9,"vector":"AV:N/AC:L/Au:S/C:C/I:C/A:C","level":"high","assessor":"primary","from":"nvd"},"epss":{"day":"2026-11-08","score":0.87036,"percentile":0.9975,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":true,"fix_available":false},"cwes":["CWE-119"],"published":"2008-12-10T13:33:00Z","modified":"2026-06-16T22:59:56Z","exploits":[{"source":"exploitdb","id":"EDB-16392","title":"Microsoft SQL Server - sp_replwritetovarbin Memory Corruption (MS09-004) (Metasploit)","type":"remote","platform":"windows","date":"2011-01-24","verified":true,"url":"https://www.exploit-db.com/exploits/16392"},{"source":"exploitdb","id":"EDB-16396","title":"Microsoft SQL Server - sp_replwritetovarbin Memory Corruption (MS09-004) (via SQL Injection) (Metasploit)","type":"remote","platform":"windows","date":"2011-02-08","verified":true,"url":"https://www.exploit-db.com/exploits/16396"},{"source":"exploitdb","id":"EDB-7501","title":"Microsoft SQL Server - 'sp_replwritetovarbin()' Heap Overflow","type":"local","platform":"windows","date":"2008-12-17","verified":true,"url":"https://www.exploit-db.com/exploits/7501"},{"source":"metasploit","id":"exploit/windows/mssql/ms09_004_sp_replwritetovarbin","title":"MS09-004 Microsoft SQL Server sp_replwritetovarbin Memory Corruption","type":"exploit","platform":"Windows","date":"2008-12-09","verified":true,"url":"https://www.rapid7.com/db/modules/exploit/windows/mssql/ms09_004_sp_replwritetovarbin"},{"source":"metasploit","id":"exploit/windows/mssql/ms09_004_sp_replwritetovarbin_sqli","title":"MS09-004 Microsoft SQL Server sp_replwritetovarbin Memory Corruption via SQL Injection","type":"exploit","platform":"Windows","date":"2008-12-09","verified":true,"url":"https://www.rapid7.com/db/modules/exploit/windows/mssql/ms09_004_sp_replwritetovarbin_sqli"},{"source":"pocgithub","id":"SECFORCE/CVE-2008-5416","title":"SECFORCE/CVE-2008-5416","date":"2017-05-03","url":"https://github.com/SECFORCE/CVE-2008-5416"}],"products":[{"vendor":"microsoft","product":"sql_server"}],"references":[{"url":"http://www.sec-consult.com/files/20081209_mssql-2000-sp_replwritetovarbin_memwrite.txt","tags":["x_refsource_MISC","x_transferred","Exploit"]},{"url":"http://www.vupen.com/english/advisories/2008/3380","tags":["vdb-entry","x_refsource_VUPEN","x_transferred"]},{"url":"http://secunia.com/advisories/33034","tags":["third-party-advisory","x_refsource_SECUNIA","x_transferred","Vendor Advisory"]},{"url":"http://osvdb.org/50917","tags":["vdb-entry","x_refsource_OSVDB","x_transferred"]},{"url":"http://securitytracker.com/id?1021363","tags":["vdb-entry","x_refsource_SECTRACK","x_transferred"]},{"url":"https://www.exploit-db.com/exploits/7501","tags":["exploit","x_refsource_EXPLOIT-DB","x_transferred"]},{"url":"http://securitytracker.com/id?1021490","tags":["vdb-entry","x_refsource_SECTRACK","x_transferred"]},{"url":"https://exchange.xforce.ibmcloud.com/vulnerabilities/47182","tags":["vdb-entry","x_refsource_XF","x_transferred"]},{"url":"http://www.kb.cert.org/vuls/id/696644","tags":["third-party-advisory","x_refsource_CERT-VN","x_transferred","US Government Resource"]},{"url":"http://www.securityfocus.com/archive/1/499042/100/0/threaded","tags":["mailing-list","x_refsource_BUGTRAQ","x_transferred"]},{"url":"http://www.securityfocus.com/archive/1/499085/100/0/threaded","tags":["mailing-list","x_refsource_BUGTRAQ","x_transferred"]},{"url":"https://docs.microsoft.com/en-us/security-updates/securitybulletins/2009/ms09-004","tags":["vendor-advisory","x_refsource_MS","x_transferred"]},{"url":"http://securityreason.com/securityalert/4706","tags":["third-party-advisory","x_refsource_SREASON","x_transferred"]},{"url":"http://www.vmware.com/support/vsphere4/doc/vsp_vc41_u1_rel_notes.html","tags":["x_refsource_CONFIRM","x_transferred"]},{"url":"http://www.microsoft.com/technet/security/advisory/961040.mspx","tags":["x_refsource_CONFIRM","x_transferred"]},{"url":"http://www.securityfocus.com/bid/32710","tags":["vdb-entry","x_refsource_BID","x_transferred","Exploit"]},{"url":"https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A6217","tags":["vdb-entry","signature","x_refsource_OVAL","x_transferred"]},{"url":"http://www.vmware.com/security/advisories/VMSA-2011-0003.html","tags":["x_refsource_CONFIRM","x_transferred"]},{"url":"http://www.us-cert.gov/cas/techalerts/TA09-041A.html","tags":["third-party-advisory","x_refsource_CERT","x_transferred","US Government Resource"]},{"url":"http://archives.neohapsis.com/archives/fulldisclosure/2008-12/0304.html","tags":["mailing-list","x_refsource_FULLDISC","x_transferred"]},{"url":"http://www.securityfocus.com/archive/1/516397/100/0/threaded","tags":["mailing-list","x_refsource_BUGTRAQ","x_transferred"]},{"url":"http://support.avaya.com/elmodocs2/security/ASA-2009-055.htm","tags":["x_refsource_CONFIRM","x_transferred"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2008-5416"},{"url":"https://github.com/advisories/GHSA-qhrx-q7mr-q5x7"}],"sources":{"cve":[{"id":"CVE-2008-5416","description":"Heap-based buffer overflow in Microsoft SQL Server 2000 SP4, 8.00.2050, 8.00.2039, and earlier; SQL Server 2000 Desktop Engine (MSDE 2000) SP4; SQL Server 2005 SP2 and 9.00.1399.06; SQL Server 2000 Desktop Engine (WMSDE) on Windows Server 2003 SP1 and SP2; and Windows Internal Database (WYukon) SP2 allows remote authenticated users to cause a denial of service (access violation exception) or execute arbitrary code by calling the sp_replwritetovarbin extended stored procedure with a set of invalid parameters that trigger memory overwrite, aka \"SQL Server sp_replwritetovarbin Limited Memory Overwrite Vulnerability.\"","status":"published","published":"2008-12-10T13:33:00Z","modified":"2024-08-07T10:56:45.789Z","updated_at":"2026-11-02T14:34:44.297409Z"}],"euvd":[{"id":"EUVD-2008-5393","description":"Heap-based buffer overflow in Microsoft SQL Server 2000 SP4, 8.00.2050, 8.00.2039, and earlier; SQL Server 2000 Desktop Engine (MSDE 2000) SP4; SQL Server 2005 SP2 and 9.00.1399.06; SQL Server 2000 Desktop Engine (WMSDE) on Windows Server 2003 SP1 and SP2; and Windows Internal Database (WYukon) SP2 allows remote authenticated users to cause a denial of service (access violation exception) or execute arbitrary code by calling the sp_replwritetovarbin extended stored procedure with a set of invalid parameters that trigger memory overwrite, aka \"SQL Server sp_replwritetovarbin Limited Memory Overwrite Vulnerability.\"","status":"published","published":"2008-12-10T13:33:00Z","modified":"2024-08-07T10:56:45Z","updated_at":"2026-11-03T01:38:43.439061Z"}],"ghsa":[{"id":"GHSA-qhrx-q7mr-q5x7","title":"Heap-based buffer overflow in Microsoft SQL Server 2000 SP4, 8.00.2050, 8.00.2039, and earlier;...","description":"Heap-based buffer overflow in Microsoft SQL Server 2000 SP4, 8.00.2050, 8.00.2039, and earlier; SQL Server 2000 Desktop Engine (MSDE 2000) SP4; SQL Server 2005 SP2 and 9.00.1399.06; SQL Server 2000 Desktop Engine (WMSDE) on Windows Server 2003 SP1 and SP2; and Windows Internal Database (WYukon) SP2 allows remote authenticated users to cause a denial of service (access violation exception) or execute arbitrary code by calling the sp_replwritetovarbin extended stored procedure with a set of invalid parameters that trigger memory overwrite, aka \"SQL Server sp_replwritetovarbin Limited Memory Overwrite Vulnerability.\"","status":"published","published":"2022-05-14T02:36:48Z","modified":"2023-02-02T05:05:55Z","cwes":["CWE-119"],"updated_at":"2026-11-02T14:52:12.214616Z"}],"nvd":[{"id":"CVE-2008-5416","description":"Heap-based buffer overflow in Microsoft SQL Server 2000 SP4, 8.00.2050, 8.00.2039, and earlier; SQL Server 2000 Desktop Engine (MSDE 2000) SP4; SQL Server 2005 SP2 and 9.00.1399.06; SQL Server 2000 Desktop Engine (WMSDE) on Windows Server 2003 SP1 and SP2; and Windows Internal Database (WYukon) SP2 allows remote authenticated users to cause a denial of service (access violation exception) or execute arbitrary code by calling the sp_replwritetovarbin extended stored procedure with a set of invalid parameters that trigger memory overwrite, aka \"SQL Server sp_replwritetovarbin Limited Memory Overwrite Vulnerability.\"","status":"published","published":"2008-12-10T14:00:01.207Z","modified":"2026-06-16T22:59:56.097Z","cvss":[{"version":"2.0","score":9,"vector":"AV:N/AC:L/Au:S/C:C/I:C/A:C","level":"high","assessor":"primary"}],"cwes":["CWE-119"],"updated_at":"2026-11-02T14:01:30.411919Z"}]}}
