CVE-2008-5416: 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)…
Noroxi assessment
Priority: This week (action score 62/100)
- A ready-made attack module is public (Metasploit); exploiting it takes no special expertise.
- Public proof-of-concept code exists (Exploit-DB, GitHub); there is no record of exploitation in the wild.
- Probability of exploitation in the next 30 days: 87% (FIRST EPSS); higher than 99.7% of all records.
- No special conditions are required; it is repeatable.
- According to the record, no fixed version is available yet.
Don’t wait for the next maintenance window. Until a fix is released, restrict access to the affected component and follow the vendor's advisory.
Generated automatically from the record's data: CVSS (NVD and CNA), CISA KEV and SSVC, FIRST EPSS, exploit sources, fixed versions. How we calculate it
Primary sources: NVD · CVE.org · FIRST EPSS
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
- Dec 10, 2008
- Updated
- Jun 16, 2026
- EPSS
- 87.0% · 99th percentile
- CWE
- CWE-119
Report tools
Action score
62
Don’t wait for the next maintenance window.
- CVSS
- 36 / 40 · 9.0 / 10
- CISA KEV
- 0 / 30 · Not listed
- EPSS
- 26 / 30 · 87.0%
Get told when this record changes
- Not in KEV: no record of exploitation in the wild
- Weaponized exploit exists
- No fixed version yet
If any of these changes, we'll tell you in the daily email digest.
Is your version affected? Check itNoroxi analysis
What does it mean in your environment?
The assessment above is generated automatically from the record's data; it doesn't know your environment. Our team verifies on your systems whether this vulnerability is actually exploitable and which mitigation is enough.
We use this product, ask for helpAffected systems
Is your version affected?
Pick the product and type the version you run. It's compared with this record's version ranges in your browser; the version isn't sent anywhere.
| Vendor | Product | CPE |
|---|---|---|
| microsoft | sql server | cpe:2.3:a:microsoft:sql_server |
Affected versions
NVD version ranges (for catalog products). Add the product to your stack with a version and matching uses these.
- microsoft sql server2000
- microsoft sql server2005
Same product
microsoft: all recordsOther highest-scoring records for the same primary product.
- CVE-2020-0618A remote code execution vulnerability exists in Microsoft SQL Server Reporting Services when it incorrectly handles page requests, aka…KEV95Now
- CVE-2019-1068A remote code execution vulnerability exists in Microsoft SQL Server when it incorrectly handles processing of internal functions, aka…KEV82Now
- CVE-2018-8273A buffer overflow vulnerability exists in the Microsoft SQL Server that could allow remote code execution on an affected system, aka…48Plan
Published before and after this one in the same product
- ← EarlierCVE-2007-4814Sep 11, 2007 · Buffer overflow in the SQLServer ActiveX control in the Distributed Management Objects OLE DLL (sqldmo.dll) 2000.085.2004.00 in Microsoft…44Plan
- ← EarlierCVE-2008-4110Sep 16, 2008 · Buffer overflow in the SQLVDIRLib.SQLVDirControl ActiveX control in Tools\Binn\sqlvdir.dll in Microsoft SQL Server 2000 (aka SQL Server…36Monitor
- Later →CVE-2012-2552Oct 9, 2012 · Cross-site scripting (XSS) vulnerability in the SQL Server Report Manager in Microsoft SQL Server 2000 Reporting Services SP2 and SQL…22Monitor
Remediation
Which version to upgrade to
Fix versions compiled from the vendor, package registries and Microsoft. Verify the vendor's note before upgrading.
No fix version is recorded for this entry. Check the references for vendor advisories.
Exploit status
Weaponized
A ready exploit tool or active in-the-wild use is known for this vulnerability. This should be your top priority.
Evidence
- Metasploit module ×2
- Exploit-DB entry ×3
- Proof-of-concept repository on GitHub ×1
Noroxi does not host or link to exploit code. Metasploit module names and Nuclei template ids are shown (names, not code); Exploit-DB entries and PoC repositories are given as counts only.
| Source | Kind | Date |
|---|---|---|
| Exploit-DB entry | local | 2008-12-17 |
| Exploit-DB entry | remote | 2011-01-24 |
| Exploit-DB entry | remote | 2011-02-08 |
| Metasploit module | exploit/windows/mssql/ms09_004_sp_replwritetovarbinMS09-004 Microsoft SQL Server sp_replwritetovarbin Memory Corruptionexploit | 2008-12-09 |
| Metasploit module | exploit/windows/mssql/ms09_004_sp_replwritetovarbin_sqliMS09-004 Microsoft SQL Server sp_replwritetovarbin Memory Corruption via SQL Injectionexploit | 2008-12-09 |
| Proof-of-concept repository on GitHub | stars:3 | 2017-05-03 |
Research context
For pentesters and researchers: attack profile, score disagreement, timeline, patch commits, credits, variant and chain candidates, bug bounty scope. All derived from existing data; no exploit code.
Timeline
From publication to today: proof of concept, Metasploit module, CISA KEV and fix record. Dates are as reported by the sources.
- Metasploit-1 d
- Published
- First PoC+7 d
- TodayNov 17, 2026+6551 d
Not on record for this CVE: EPSS history · patch commit or PR link · researcher credit · variant or chain candidate · public bounty program.
Technical details
Attack conditions
- No special conditions are required; it is repeatable.
If successful
- Confidentiality
- C · data can be read
- Integrity
- C · data or configuration can be modified
- Availability
- C · the service can be disrupted
- Attack complexity
- Low
- Confidentiality impact
- C
- Integrity impact
- C
- Availability impact
- C
Weakness class (CWE)
CWE-119 · Improper Restriction of Operations within the Bounds of a Memory BufferCVSS vector
AV:N/AC:L/Au:S/C:C/I:C/A:C
nvd-primary
Attack context
MITRE CAPEC attack patterns and ATT&CK techniques for this weakness class (CWE). A starting point for detection rules and threat hunting.
Attack patterns (CAPEC)
- Buffer Overflow via Environment VariablesCAPEC-10likelihood: High · High
- Overflow BuffersCAPEC-100likelihood: High · Very High
- Buffer ManipulationCAPEC-123likelihood: High · Very High
- Client-side Injection-induced Buffer OverflowCAPEC-14likelihood: Medium · High
- Filter Failure through Buffer OverflowCAPEC-24likelihood: High · High
- MIME ConversionCAPEC-42likelihood: High · High
- Overflow Binary Resource FileCAPEC-44likelihood: High · Very High
- Buffer Overflow via Symbolic LinksCAPEC-45likelihood: High · High
ATT&CK techniques
—
Change log (0)
No changes recorded on tracked fields yet. Score, KEV, exploit maturity and fix status changes appear here.
References
Show all references (18 more)Show less
- osvdb.org/50917
- secunia.com/advisories/33034
- securityreason.com/securityalert/4706
- securitytracker.com/id?1021363
- securitytracker.com/id?1021490
- support.avaya.com/elmodocs2/security/ASA-2009-055.htm
- www.kb.cert.org/vuls/id/696644
- www.microsoft.com/technet/security/advisory/961040.mspx
- www.securityfocus.com/archive/1/499042/100/0/threaded
- www.securityfocus.com/archive/1/499085/100/0/threaded
- www.securityfocus.com/archive/1/516397/100/0/threaded
- www.us-cert.gov/cas/techalerts/TA09-041A.html
- www.vmware.com/security/advisories/VMSA-2011-0003.html
- www.vmware.com/support/vsphere4/doc/vsp_vc41_u1_rel_notes.html
- www.vupen.com/english/advisories/2008/3380
- docs.microsoft.com/en-us/security-updates/securitybulletins/2009/ms09-004
- exchange.xforce.ibmcloud.com/vulnerabilities/47182
- oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A6217
Vendor advisories and official records. Exploit/PoC links are deliberately left out.