patchminder
Weaponized · Metasploit CVE-2008-5416

Remote code executionin CVE-2008-5416.

Published 10 Dec 2008 · Updated 7 Aug 2024 · Every fact sourced

JSONCite
Is it exploited?
Not confirmed

Weaponized: a Metasploit exploit is public.

Attack code is public
Severity
Not scored
No source has scored it yet
Attack likelihood
Very high
EPSSA daily score from FIRST: the chance a hole is attacked in the next 30 days. 87.0% chance in 30 days · 4 Dec 2026
Fix
Not confirmed
See the vendor advisory
In plain words

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."

What to do now
  • 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.

Versions

Affected and fixed versions

Product or package
Affected
Fixed in
Source
n/a
Not confirmed
Not confirmed
CVE record

From the CVE record, NVD and package advisories. When no source has versions yet, this table says "not confirmed" instead of guessing.

Timeline

From first report to first attacks

  1. 9 Dec 2008
    Metasploit module: MS09-004 Microsoft SQL Server sp_replwritetovarbin Memory Corruption.
  2. 10 Dec 2008
    CVE ID reserved by mitre.
  3. 10 Dec 2008
    Published in the CVE List.
  4. 3 May 2017
    First public proof of concept on GitHub.
  5. 7 Aug 2024
    CVE record last updated.
Exploit code

Attack code anyone can find

Exploit maturity: Weaponized (Metasploit).

Metasploit module
2 modules
Nuclei scan template
None known
Exploit-DB
3 entries
GitHub proof of concepts
1 repository
MetasploitMS09-004 Microsoft SQL Server sp_replwritetovarbin Memory Corruptionrank goodLinked once a fix or workaround is known.
MetasploitMS09-004 Microsoft SQL Server sp_replwritetovarbin Memory Corruption via SQL Injectionrank excellentLinked once a fix or workaround is known.
Exploit-DBEDB-ID 7501local exploit for windows, published 17 Dec 2008, verified by Exploit-DBLinked once a fix or workaround is known.
Exploit-DBEDB-ID 16392remote exploit for windows, published 24 Jan 2011, verified by Exploit-DBLinked once a fix or workaround is known.
Exploit-DBEDB-ID 16396remote exploit for windows, published 8 Feb 2011, verified by Exploit-DBLinked once a fix or workaround is known.
Referencewww.exploit-db.comnamed as exploit in the CVE recordLinked once a fix or workaround is known.

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.

References
Cite this page

Patchminder. CVE-2008-5416: Remote code execution in CVE-2008-5416. https://patchminder.com/cve/cve-2008-5416/ (accessed 5 December 2026).