Vulnerability record · CVE-2008-0086 · published 8 July 2008
CVE-2008-0086: Microsoft SQL Server 2000 convert function buffer overflow
Microsoft · Data Engine
A buffer overflow exists in the convert function of Microsoft SQL Server 2000 SP4, MSDE 2000 SP4, and WMSDE. A remote authenticated user can trigger it with a crafted SQL expression, which can lead to arbitrary code execution in the database engine's context. The flaw is serious because it allows a low-privilege database account to compromise the server process.
Description
Buffer overflow in the convert function in Microsoft SQL Server 2000 SP4, 2000 Desktop Engine (MSDE 2000) SP4, and 2000 Desktop Engine (WMSDE) allows remote authenticated users to execute arbitrary code via a crafted SQL expression.
AV:N/AC:L/Au:S/C:C/I:C/A:C
Automated analysis
high priorityThe CVSS 2.0 score is 9.0 with complete confidentiality, integrity, and availability impact, and EPSS indicates a high probability of exploitation, though authentication is required and no KEV listing or public exploit reference is present.
What it is
A buffer overflow exists in the convert function of Microsoft SQL Server 2000 SP4, MSDE 2000 SP4, and WMSDE. A remote authenticated user can trigger it with a crafted SQL expression, which can lead to arbitrary code execution in the database engine's context. The flaw is serious because it allows a low-privilege database account to compromise the server process.
Impact
An attacker with valid database credentials can execute arbitrary code on the SQL Server host, potentially gaining full control of the database service and the underlying system. This can lead to data theft, tampering, or use of the server as a foothold for further attacks.
Attack surface
The vulnerability is reached over the network through the SQL Server interface by sending a crafted SQL expression to the convert function. Authentication is required (the CVSS vector shows Au:S), and no user interaction is needed beyond submitting the query.
Exploitation
The record does not list this CVE in CISA KEV and provides no reference tags indicating public exploit code or active exploitation. EPSS gives a 30-day probability of 0.61927 (99.135th percentile), suggesting a high likelihood of exploitation activity in the wild.
What to do
- Apply the Microsoft security update MS08-040 immediately on all affected SQL Server 2000 SP4, MSDE 2000 SP4, and WMSDE installations.
- If patching cannot be done at once, restrict network access to SQL Server ports to trusted hosts and disable unnecessary remote connections.
- Enforce least privilege for database logins and remove or disable unused accounts to reduce the number of authenticated users who can reach the vulnerable function.
- Upgrade from SQL Server 2000 and its desktop engine variants to a supported version, since these products are long out of support.
Detection
- Monitor SQL Server error logs and Windows application logs for crashes or access violations in the database engine process.
- Audit database queries for unusual or malformed use of the convert function, especially from low-privilege accounts.
- Watch for unexpected child processes or outbound network connections originating from the SQL Server service account.
- Use file integrity monitoring on SQL Server binaries and configuration files to detect unauthorized changes after a suspected compromise.
This assessment is produced automatically and is not human-reviewed. Verify against the vendor advisory before acting on it.
Affected products
4 vulnerable configurations from NVD's CPE data, grouped by vendor and product.
References
Track CVE-2008-0086 inside VULONE
Watch it alongside the ransomware crews, C2 infrastructure and forum chatter that reference it, query it through the API and pull it into your SIEM over TAXII.
Related vulnerabilities
Same products first, then exploited flaws of the same weakness class.
Source: NIST National Vulnerability Database (record CVE-2008-0086), CISA KEV, FIRST EPSS (scores of 2026-09-27). This page is refreshed as NVD updates the record.