{"id":"CVE-2008-5416","url":"https://www.cyber-defence.io/tools/cve/CVE-2008-5416","generatedAt":"2026-10-27T18:39:25.881Z","title":"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…","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.\"","published":"2008-12-10T14:00:01.000Z","lastModified":"2026-06-16T22:59:56.000Z","status":"Modified","sourceIdentifier":"cve@mitre.org","cvss":{"version":"2.0","score":9,"severity":"HIGH","vector":"AV:N/AC:L/Au:S/C:C/I:C/A:C"},"cwe":["CWE-119"],"affected":["microsoft/sql server"],"epss":{"score":0.87036,"percentile":0.99746,"date":"2026-10-26","history":[]},"kev":{"listed":false},"exploits":{"count":3,"verified":true,"firstPublished":"2008-12-17","source":"Exploit-DB (https://gitlab.com/exploit-database/exploitdb)","entries":[{"edbId":16396,"kind":"exploit","title":"Microsoft SQL Server - sp_replwritetovarbin Memory Corruption (MS09-004) (via SQL Injection) (Metasploit)","url":"https://www.exploit-db.com/exploits/16396","sourceUrl":"https://gitlab.com/exploit-database/exploitdb/-/blob/main/exploits/windows/remote/16396.rb","file":"exploits/windows/remote/16396.rb","published":"2011-02-08","added":"2011-02-08","updated":"2011-03-10","author":"Metasploit","type":"remote","platform":"windows","port":null,"verified":true,"codes":["CVE-2008-5416","OSVDB-50589","MS09-004"],"tags":"Metasploit Framework (MSF)","aliases":null,"applicationUrl":null,"screenshotUrl":null,"referenceUrl":null},{"edbId":16392,"kind":"exploit","title":"Microsoft SQL Server - sp_replwritetovarbin Memory Corruption (MS09-004) (Metasploit)","url":"https://www.exploit-db.com/exploits/16392","sourceUrl":"https://gitlab.com/exploit-database/exploitdb/-/blob/main/exploits/windows/remote/16392.rb","file":"exploits/windows/remote/16392.rb","published":"2011-01-24","added":"2011-01-24","updated":"2011-03-09","author":"Metasploit","type":"remote","platform":"windows","port":null,"verified":true,"codes":["CVE-2008-5416","OSVDB-50589","MS09-004"],"tags":"Metasploit Framework (MSF)","aliases":null,"applicationUrl":null,"screenshotUrl":null,"referenceUrl":null},{"edbId":7501,"kind":"exploit","title":"Microsoft SQL Server - 'sp_replwritetovarbin()' Heap Overflow","url":"https://www.exploit-db.com/exploits/7501","sourceUrl":"https://gitlab.com/exploit-database/exploitdb/-/blob/main/exploits/windows/local/7501.asp","file":"exploits/windows/local/7501.asp","published":"2008-12-17","added":"2008-12-16","updated":null,"author":"Guido Landi","type":"local","platform":"windows","port":null,"verified":true,"codes":["OSVDB-50589","CVE-2008-5416","CVE-2008-4270"],"tags":null,"aliases":null,"applicationUrl":null,"screenshotUrl":null,"referenceUrl":null}]},"verdict":{"level":"urgent","text":"EPSS puts the probability of exploitation in the next 30 days at 87.0%, higher than 100% of all known CVEs. Patch or mitigate before the next change window."},"changes":[],"references":[{"url":"http://archives.neohapsis.com/archives/fulldisclosure/2008-12/0304.html","source":"cve@mitre.org"},{"url":"http://osvdb.org/50917","source":"cve@mitre.org"},{"url":"http://secunia.com/advisories/33034","tags":["Vendor Advisory"],"source":"cve@mitre.org"},{"url":"http://securityreason.com/securityalert/4706","source":"cve@mitre.org"},{"url":"http://securitytracker.com/id?1021363","source":"cve@mitre.org"},{"url":"http://securitytracker.com/id?1021490","source":"cve@mitre.org"},{"url":"http://support.avaya.com/elmodocs2/security/ASA-2009-055.htm","source":"cve@mitre.org"},{"url":"http://www.kb.cert.org/vuls/id/696644","tags":["US Government Resource"],"source":"cve@mitre.org"},{"url":"http://www.microsoft.com/technet/security/advisory/961040.mspx","source":"cve@mitre.org"},{"url":"http://www.sec-consult.com/files/20081209_mssql-2000-sp_replwritetovarbin_memwrite.txt","tags":["Exploit"],"source":"cve@mitre.org"},{"url":"http://www.securityfocus.com/archive/1/499042/100/0/threaded","source":"cve@mitre.org"},{"url":"http://www.securityfocus.com/archive/1/499085/100/0/threaded","source":"cve@mitre.org"},{"url":"http://www.securityfocus.com/archive/1/516397/100/0/threaded","source":"cve@mitre.org"},{"url":"http://www.securityfocus.com/bid/32710","tags":["Exploit"],"source":"cve@mitre.org"},{"url":"http://www.us-cert.gov/cas/techalerts/TA09-041A.html","tags":["US Government Resource"],"source":"cve@mitre.org"},{"url":"http://www.vmware.com/security/advisories/VMSA-2011-0003.html","source":"cve@mitre.org"},{"url":"http://www.vmware.com/support/vsphere4/doc/vsp_vc41_u1_rel_notes.html","source":"cve@mitre.org"},{"url":"http://www.vupen.com/english/advisories/2008/3380","source":"cve@mitre.org"},{"url":"https://docs.microsoft.com/en-us/security-updates/securitybulletins/2009/ms09-004","source":"cve@mitre.org"},{"url":"https://exchange.xforce.ibmcloud.com/vulnerabilities/47182","source":"cve@mitre.org"},{"url":"https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A6217","source":"cve@mitre.org"},{"url":"https://www.exploit-db.com/exploits/7501","source":"cve@mitre.org"},{"url":"http://archives.neohapsis.com/archives/fulldisclosure/2008-12/0304.html","source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"http://osvdb.org/50917","source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"http://secunia.com/advisories/33034","tags":["Vendor Advisory"],"source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"http://securityreason.com/securityalert/4706","source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"http://securitytracker.com/id?1021363","source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"http://securitytracker.com/id?1021490","source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"http://support.avaya.com/elmodocs2/security/ASA-2009-055.htm","source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"http://www.kb.cert.org/vuls/id/696644","tags":["US Government Resource"],"source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"http://www.microsoft.com/technet/security/advisory/961040.mspx","source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"http://www.sec-consult.com/files/20081209_mssql-2000-sp_replwritetovarbin_memwrite.txt","tags":["Exploit"],"source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"http://www.securityfocus.com/archive/1/499042/100/0/threaded","source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"http://www.securityfocus.com/archive/1/499085/100/0/threaded","source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"http://www.securityfocus.com/archive/1/516397/100/0/threaded","source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"http://www.securityfocus.com/bid/32710","tags":["Exploit"],"source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"http://www.us-cert.gov/cas/techalerts/TA09-041A.html","tags":["US Government Resource"],"source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"http://www.vmware.com/security/advisories/VMSA-2011-0003.html","source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"http://www.vmware.com/support/vsphere4/doc/vsp_vc41_u1_rel_notes.html","source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"http://www.vupen.com/english/advisories/2008/3380","source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"https://docs.microsoft.com/en-us/security-updates/securitybulletins/2009/ms09-004","source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"https://exchange.xforce.ibmcloud.com/vulnerabilities/47182","source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A6217","source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"https://www.exploit-db.com/exploits/7501","source":"af854a3a-2127-422b-91ae-364da2661108"}],"sources":{"nvd":"https://nvd.nist.gov/vuln/detail/CVE-2008-5416","epss":"https://www.first.org/epss/","kev":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","exploitdb":"https://www.exploit-db.com/"},"licence":"CC BY 4.0 — link back to the CVE Explorer if you publish the results; upstream data remains subject to its own terms."}