Vulnerability Note VU#619707

Microsoft SQL Server contains buffer overflows in openrowset and opendatasource macros

Original Release date: 28 Mar 2002 | Last revised: 29 Jul 2002


Microsoft SQL Server contains several buffer overflows in "functions that are associated with connecting to remote data sources through 'ad hoc names.'"


Microsoft SQL Server versions 7.0 and 2000 contain buffer overflows in the openrowset and opendatasource macros. By calling these macros with an overly long provider name parameter, an intruder can interrupt the ordinary operation of the server or potentially execute arbitrary code with the privileges of the SQL server. For more information, see

In order to exploit this vulnerability, an intruder would need to be able to call one of the vulnerable macros directly, or be able to supply an inappropriate argument to a script that uses one of the vulnerable macros.


An intruder can execute arbitrary code with the privileges of the SQL service account. If the privileges of the service account are elevated via VU#796313, this vulnerability may result in compromise of the server host.


Apply a patch as described in or

Systems Affected (Learn More)

VendorStatusDate NotifiedDate Updated
Microsoft CorporationAffected27 Jul 200229 Jul 2002
If you are a vendor and your product is affected, let us know.

CVSS Metrics (Learn More)

Group Score Vector
Base N/A N/A
Temporal N/A N/A
Environmental N/A N/A



Our thanks to Microsoft Corporation for the information provided in their bulletin, and to Cesar Cerrudo, who reported this information on Bugtraq and NTBugTraq.

This document was written by Shawn V. Hernan.

Other Information

  • CVE IDs: CAN-2002-0056
  • Date Public: 19 Feb 2002
  • Date First Published: 28 Mar 2002
  • Date Last Updated: 29 Jul 2002
  • Severity Metric: 9.57
  • Document Revision: 26


If you have feedback, comments, or additional information about this vulnerability, please send us email.