Flaw Threatens SQL Server

Flaw Threatens SQL Server

Written By
Dennis Fisher
Dennis Fisher
Apr 18, 2002
1 minute read
eWeek content and product recommendations are editorially independent. We may make money when you click on links to our partners. Learn More

Microsoft Corp. has issued a patch for a buffer overrun vulnerability in some versions of its SQL Server database software that could enable an attacker to execute code on a vulnerable machine.

The flaw, which affects SQL Server 7.0 and 2000, occurs when extended stored procedures validate input to the database. The procedures are external routines that in SQL are used for some helper functions.

Several of these procedures dont perform the input validation process correctly, leaving the server open to a buffer overrun, according Microsofts advisory on the problem, released late Wednesday. A successful exploit of this flaw could either cause SQL to fail or allow the attacker to run arbitrary code on the machine.

There are two possible exploit scenarios, Microsoft said. The first would require the attacker to load and execute a database query on a vulnerable server that calls one of the affected functions. In the second scenario, if the databases front end were configured to process arbitrary queries, an attacker could provide inputs that would cause the query to call an affected function.

However, any code the attacker executes on a vulnerable machine would only run in the security context of the SQL Server software, which by default runs as a domain user.

eWeek Logo

eWeek has the latest technology news and analysis, buying guides, and product reviews for IT professionals and technology buyers. The site's focus is on innovative solutions and covering in-depth technical content. eWeek stays on the cutting edge of technology news and IT trends through interviews and expert analysis. Gain insight from top innovators and thought leaders in the fields of IT, business, enterprise software, startups, and more.

Property of TechnologyAdvice. © 2026 TechnologyAdvice. All Rights Reserved

Advertiser Disclosure: Some of the products that appear on this site are from companies from which TechnologyAdvice receives compensation. This compensation may impact how and where products appear on this site including, for example, the order in which they appear. TechnologyAdvice does not include all companies or all types of products available in the marketplace.