CVE-2008-5416
Heap-based buffer overflow in Microsoft SQL Server 2000 SP4, 8.00.2050, 8.00.2039, and earlier;...
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."
Exploit likelihood
What each source reports
NVD Score used
9.0
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."
- Record
CVE-2008-5416- CVSS 2.0
- 9.0 High
AV:N/AC:L/Au:S/C:C/I:C/A:C - Weakness
- CWE-119
- Updated
- 2026-11-02
CVE List No score
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."
- Record
CVE-2008-5416- Updated
- 2026-11-02
EUVDEUVD-2008-5393 No score
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."
- Record
EUVD-2008-5393- Updated
- 2026-11-03
GitHub AdvisoriesGHSA-qhrx-q7mr-q5x7 No score
Heap-based buffer overflow in Microsoft SQL Server 2000 SP4, 8.00.2050, 8.00.2039, and earlier;...
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."
- Record
GHSA-qhrx-q7mr-q5x7- Weakness
- CWE-119
- Updated
- 2026-11-02
Affected products
Public exploits
Links only. Every CVE stores no exploit code.
| Source | Link | Date |
|---|---|---|
| Exploit-DB | Microsoft SQL Server - sp_replwritetovarbin Memory Corruption (MS09-004) (Metasploit) | 2011-01-24 |
| Exploit-DB | Microsoft SQL Server - sp_replwritetovarbin Memory Corruption (MS09-004) (via SQL Injection) (Metasploit) | 2011-02-08 |
| Exploit-DB | Microsoft SQL Server - 'sp_replwritetovarbin()' Heap Overflow | 2008-12-17 |
| Metasploit | MS09-004 Microsoft SQL Server sp_replwritetovarbin Memory Corruption | 2008-12-09 |
| Metasploit | MS09-004 Microsoft SQL Server sp_replwritetovarbin Memory Corruption via SQL Injection | 2008-12-09 |
| PoC in GitHub | SECFORCE/CVE-2008-5416 | 2017-05-03 |
History
| Recorded | Changed | Sources |
|---|---|---|
| aliases | EUVD | |
| first indexed | CVE List, Exploit-DB, GitHub Advisories, Metasploit, NVD, PoC in GitHub |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2008-5416 is a high vulnerability (CVSS 9.0) in Microsoft Sql Server, published December 10, 2008. Public exploit code exists. EPSS puts the chance of exploitation in the next 30 days at 87.0%, the 99th percentile. No source names a fixed version.
References
sec-consult.com/files/20081209_mssql-2000-sp_replwritetovarbin_memwrite.txt
vupen.com/english/advisories/2008/3380
secunia.com/advisories/33034
osvdb.org/50917
securitytracker.com/id?1021363
exploit-db.com/exploits/7501
Show 18 moreShow less
securitytracker.com/id?1021490
exchange.xforce.ibmcloud.com/vulnerabilities/47182
kb.cert.org/vuls/id/696644
securityfocus.com/archive/1/499042/100/0/threaded
securityfocus.com/archive/1/499085/100/0/threaded
docs.microsoft.com/en-us/security-updates/securitybulletins/2009/ms09-004
securityreason.com/securityalert/4706
vmware.com/support/vsphere4/doc/vsp_vc41_u1_rel_notes.html
microsoft.com/technet/security/advisory/961040.mspx
securityfocus.com/bid/32710
oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A6217
vmware.com/security/advisories/VMSA-2011-0003.html
us-cert.gov/cas/techalerts/TA09-041A.html
archives.neohapsis.com/archives/fulldisclosure/2008-12/0304.html
securityfocus.com/archive/1/516397/100/0/threaded
support.avaya.com/elmodocs2/security/ASA-2009-055.htm
nvd.nist.gov/vuln/detail/CVE-2008-5416
github.com/advisories/GHSA-qhrx-q7mr-q5x7