CVE-2008-5416 in the critical feed json
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)…
published 2008-12-10 17 y ago modified 2026-06-16 4 mo ago also EUVD-2008-5393
- cvss
- 9.0
- version 2.0, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 87.0%
- EPSS 87.0% chance of exploitation in 30 days, percentile 99.7%
- public exploits
- 5
- Metasploit, Exploit-DB
Summary
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."
Timeline
- First public exploit (Metasploit exploit/windows/mssql/ms09_004_sp_replwritetovarbin)
- Published
Exploit prediction
87.04% chance of exploitation in the next 30 days, higher than 99.7% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- Metasploit exploit/windows/mssql/ms09_004_sp_replwritetovarbin MS09-004 Microsoft SQL Server sp_replwritetovarbin Memory Corruption metasploit exploit, good rank, 2008-12-09
- Metasploit exploit/windows/mssql/ms09_004_sp_replwritetovarbin_sqli MS09-004 Microsoft SQL Server sp_replwritetovarbin Memory Corruption via SQL Injection metasploit exploit, excellent rank, 2008-12-09
- EDB-16396 Microsoft SQL Server - sp_replwritetovarbin Memory Corruption (MS09-004) (via SQL Injection) (Metasploit) remote, 2011-02-08
- EDB-16392 Microsoft SQL Server - sp_replwritetovarbin Memory Corruption (MS09-004) (Metasploit) remote, 2011-01-24
- EDB-7501 Microsoft SQL Server - 'sp_replwritetovarbin()' Heap Overflow local, 2008-12-17
- sec-consult.com http://www.sec-consult.com/files/20081209_mssql-2000-sp_replwritetovarbin_memwrite.txt referenced PoC, tagged "exploit" by a source, unverified
- securityfocus.com http://www.securityfocus.com/bid/32710 referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| NVD | 2.0 | 9.0 | AV:N/AC:L/Au:S/C:C/I:C/A:C |
Classification
- Weakness
-
- CWE-119 Improper Restriction of Operations within the Bounds of a Memory Buffer
- Technology feeds
References
-
exploit-db.com
/exploits/7501
exploit
-
sec-consult.com
/files/20081209_mssql-2000-sp_replwritetovarbin_memwrite.txt
exploit
-
securityfocus.com
/bid/32710
vdb-entry, exploit
-
docs.microsoft.com
/en-us/security-updates/securitybulletins/2009/ms09-004
vendor-advisory
-
secunia.com
/advisories/33034
third-party-advisory, vendor-advisory
-
vupen.com
/english/advisories/2008/3380
vdb-entry
-
osvdb.org
/50917
vdb-entry
-
securitytracker.com
/id?1021363
vdb-entry
-
securitytracker.com
/id?1021490
vdb-entry
-
exchange.xforce.ibmcloud.com
/vulnerabilities/47182
vdb-entry
-
kb.cert.org
/vuls/id/696644
third-party-advisory, us-government-resource
-
securityfocus.com
/archive/1/499042/100/0/threaded
mailing-list
-
securityfocus.com
/archive/1/499085/100/0/threaded
mailing-list
-
securityreason.com
/securityalert/4706
third-party-advisory
- vmware.com /support/vsphere4/doc/vsp_vc41_u1_rel_notes.html
- microsoft.com /technet/security/advisory/961040.mspx
-
oval.cisecurity.org
/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A6217
vdb-entry, signature
- vmware.com /security/advisories/VMSA-2011-0003.html
-
us-cert.gov
/cas/techalerts/TA09-041A.html
third-party-advisory, us-government-resource
-
archives.neohapsis.com
/archives/fulldisclosure/2008-12/0304.html
mailing-list
-
securityfocus.com
/archive/1/516397/100/0/threaded
mailing-list
- support.avaya.com /elmodocs2/security/ASA-2009-055.htm
Sources
- CVE List CVE-2008-5416
- NVD CVE-2008-5416
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.