Microsoft SQL Server contains buffer overflow in code used to process "BULK INSERT" queries

2002-07-25T00:00:00
ID VU:682620
Type cert
Reporter CERT
Modified 2003-02-06T20:53:00

Description

Overview

The Microsoft SQL Server contains a buffer overflow vulnerability that may allow remote attackers to execute arbitrary code with system privileges.

Description

The Microsoft SQL Server contains a buffer overflow vulnerability in the code used to process "Bulk Insert" queries. Bulk Insert queries allow the SQL user to supply a file containing records to be imported into the SQL database. If an attacker supplies a file with an excessively long filename, it is possible to overflow the application stack and alter the flow of execution, resulting in the execution of arbitrary code. Note that successful exploitation of this vulnerability requires Bulk Administrator or Administrator group privileges.


Impact

This vulnerability may allow remote attackers to execute arbitrary code with system privileges.


Solution

Apply a patch

Microsoft has published Security Bulletin MS02-034 to address this vulnerability. For more information, please see

http://www.microsoft.com/technet/security/bulletin/MS02-034.asp

This vulnerability also affects any products that include the Microsoft Desktop Engine (MSDE) 2000. For more information, please see

http://www.microsoft.com/technet/security/MSDEapps.asp


Vendor Information

682620

Filter by status: All Affected Not Affected Unknown

Filter by content: __ Vendor has issued information

__ Sort by: Status Alphabetical

Expand all

Affected Unknown __ Unaffected

Javascript is disabled. Click here to view vendors.

__ Microsoft Corporation

Notified: July 11, 2002 Updated: July 12, 2002

Status

__ Vulnerable

Vendor Statement

No statement is currently available from the vendor regarding this vulnerability.

Vendor Information

The vendor has not provided us with any further information regarding this vulnerability.

Addendum

Microsoft has published Security Bulletin MS02-034 to address this vulnerability. For more information, please see

http://www.microsoft.com/technet/security/bulletin/MS02-034.asp

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

CVSS Metrics

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

References

  • <http://www.microsoft.com/technet/security/bulletin/MS02-034.asp>
  • <http://support.microsoft.com/support/misc/kblookup.asp?id=Q316333>
  • <http://www.microsoft.com/technet/prodtechnol/sql/maintain/security/sql2ksec.asp>
  • <http://www.ngssoftware.com/vna/ms-sql.txt>
  • <http://www.nextgenss.com/advisories/ms-sqlbi.txt>
  • <http://online.securityfocus.com/bid/4847/info/>

Credit

The CERT/CC thanks NGSSoftware for their discovery and analysis of this vulnerability.

This document was written by Jeffrey P. Lanza and is based upon information provided by Microsoft and NGSSoftware.

Other Information

CVE IDs: | CVE-2002-0641
---|---
Severity Metric:** | 5.91
Date Public:
| 2002-07-10
Date First Published: | 2002-07-25
Date Last Updated: | 2003-02-06 20:53 UTC
Document Revision: | 25