Remote code executionin CVE-2008-5416.
Weaponized: a Metasploit exploit is public.
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."
- No source names a fix yet. Watch this page or the product for updates; we never guess a fixed version.
Not confirmed by any source yet: affected versions not confirmed; fixed version not confirmed; severity not scored yet. We show these as not confirmed instead of guessing.
Affected and fixed versions
From the CVE record, NVD and package advisories. When no source has versions yet, this table says "not confirmed" instead of guessing.
From first report to first attacks
- 9 Dec 2008Metasploit module: MS09-004 Microsoft SQL Server sp_replwritetovarbin Memory Corruption.
- 10 Dec 2008CVE ID reserved by mitre.
- 10 Dec 2008Published in the CVE List.
- 3 May 2017First public proof of concept on GitHub.
- 7 Aug 2024CVE record last updated.
Attack code anyone can find
Exploit maturity: Weaponized (Metasploit).
1 proof of concept repository on GitHub. No fix or workaround is known yet, so we count them but do not link to them.
Listed so defenders can judge how urgent this is and test systems they are authorised to test. Patchminder does not host exploit code; links open the source page. Labels for GitHub repositories come from their public details and are never a promise about the code. Run anything only in an isolated lab.
Report a link
Nothing on this page links to exploit code right now. To report anything else, write to the contact point in the legal notice.
- www.sec-consult.com x_refsource_MISC
- www.vupen.com vdb-entry, x_refsource_VUPEN
- secunia.com third-party-advisory, x_refsource_SECUNIA
- osvdb.org vdb-entry, x_refsource_OSVDB
- securitytracker.com vdb-entry, x_refsource_SECTRACK
- securitytracker.com vdb-entry, x_refsource_SECTRACK
- exchange.xforce.ibmcloud.com vdb-entry, x_refsource_XF
- www.kb.cert.org third-party-advisory, x_refsource_CERT-VN
- www.securityfocus.com mailing-list, x_refsource_BUGTRAQ
- www.securityfocus.com mailing-list, x_refsource_BUGTRAQ
- docs.microsoft.com vendor-advisory, x_refsource_MS
- securityreason.com third-party-advisory, x_refsource_SREASON
- www.vmware.com x_refsource_CONFIRM
- www.microsoft.com x_refsource_CONFIRM
- www.securityfocus.com vdb-entry, x_refsource_BID
- oval.cisecurity.org vdb-entry, signature, x_refsource_OVAL
- www.vmware.com x_refsource_CONFIRM
- www.us-cert.gov third-party-advisory, x_refsource_CERT
- archives.neohapsis.com mailing-list, x_refsource_FULLDISC
- www.securityfocus.com mailing-list, x_refsource_BUGTRAQ
- support.avaya.com x_refsource_CONFIRM
Patchminder. CVE-2008-5416: Remote code execution in CVE-2008-5416. https://patchminder.com/cve/cve-2008-5416/ (accessed 5 December 2026).