Privacy and Legal Notice

CIAC INFORMATION BULLETIN

S-334: Vulnerabilities in Microsoft SQL Server

[Microsoft Security Bulletin (MS08-040)]

July 8, 2008 18:00 GMT
[REVISED 30 Jul 2008]
[REVISED 18 Aug 2008]

PROBLEM: Several vulnerabilties exists in SQL Server that could allow a authenticated attacker to gain elevation of privilege. An attacker who successfully exploited this vulnerability could run code and take complete control of the system.
PLATFORM: SQL Server 7.0 and Microsoft Data Engine (MSDE)
SQL Server 2000 and Micirosoft SQL Server Desktop Engine (MSDE)
SQL Server 2005 (all editions)
Microsoft SQL Server 2000 Desktop Engine (WMSDE) (all editions)
Windows Internal Database (WYukon) (all editions)
DAMAGE: Elevation of privilege.
SOLUTION: Upgrade to the appropriate version.

VULNERABILITY
ASSESSMENT:
The risk is MEDIUM. An attacker who successfully exploited this vulnerability could run code and take complete control of the system.

CVSS 2 BASE SCORE:
   TEMPORAL SCORE:
   VECTOR:
7.5
5.9
(AV:N/AC:L/Au:N/C:P/I:P/A:P/E:POC/RL:OF/RC:C)

LINKS:  
  CIAC BULLETIN: http://www.ciac.org/ciac/bulletins/s-334.shtml
  ORIGINAL BULLETIN: http://www.microsoft.com/technet/security/Bulletin/MS08-040.mspx
  CVE: CVE-2008-0085 CVE-2008-0086 CVE-2008-0106 CVE-2008-0107

REVISION HISTORY:
07/30/2008 - revised S-334 to reflect changes Microsoft has made in MS08-040 where
             they added removal information notes for Microsoft SQL Server 2000 
			 Desktop Engine (WMSDE) and Windows Internal Database (WYukon) to 
			 clarify that removing this security update for WMSDE or WYukon will 
			 also completely remove the instance of WMSDE or WYukon from the system
			 and to add a link to Hewlett-Packard Subscription Service for HPSBST02350 
			 SSRT080102 rev. 1 for Storage Management Appliance I, II, III.
08/18/2008 - revised S-334 to reflect changes Microsoft has made in MS08-040 where
             they added entry to the Frequently Asked Questions (FAQ) Related to this 
			 Security Update.




[***** Start Microsoft Security Bulletin (MS08-040) *****]

Microsoft Security Bulletin MS08-040 – Important

Vulnerabilities in Microsoft SQL Server Could Allow Elevation of Privilege (941203)

Published: July 8, 2008 | Updated: August 12, 2008

Version: 1.6

General Information

Executive Summary

This security update resolves four privately disclosed vulnerabilities. The more serious of the vulnerabilities could allow an attacker to run code and to take complete control of an affected system. An authenticated attacker could then install programs; view, change, or delete data; or create new accounts with full administrative rights.

This security update is rated Important for supported releases of SQL Server 7.0, SQL Server 2000, SQL Server 2005, Microsoft Data Engine (MSDE) 1.0, Microsoft SQL Server 2000 Desktop Engine (MSDE 2000), Microsoft SQL Server 2005 Express Edition, Microsoft SQL Server 2000 Desktop Engine (WMSDE), and Windows Internal Database (WYukon). For more information, see the subsection, Affected and Non-Affected Software, in this section.

The security update addresses the vulnerabilities by modifying the way that SQL Server manages page reuse, allocating more memory for the convert function, validating on-disk files before loading them, and validating insert statements. For more information about the vulnerabilities, see the Frequently Asked Questions (FAQ) subsection for the specific vulnerability entry under the next section, Vulnerability Information.

Recommendation. Microsoft recommends that customers apply the update at the earliest opportunity.

Known Issues. Microsoft Knowledge Base Article 941203 documents the currently known issues that customers may experience when installing this security update. The article also documents recommended solutions for these issues. For more information about installing these updates, see the Frequently Asked Questions (FAQ) Related to This Security Update subsection, in this section.

Affected and Non-Affected Software

The following software have been tested to determine which versions or editions are affected. Other versions or editions are either past their support life cycle or are not affected. To determine the support life cycle for your software version or edition, visit Microsoft Support Lifecycle.

Depending on your software version or edition, you may need to choose between GDR and QFE software update links below in order to manually install your update from the Microsoft Download Center. For more information on determining which update to install on your system, see the Frequently Asked Questions (FAQ) Related to This Security Update subsection, in this section.

Affected Software

SQL Server

GDR Software Updates QFE Software Updates Maximum Security Impact Aggregate Severity Rating Bulletins Replaced by this Update

SQL Server 7.0 Service Pack 4
(KB948113)

SQL Server 7.0 Service Pack 4
(KB948113)

Elevation of Privilege

Important

None

SQL Server 2000 Service Pack 4
(KB948110)

SQL Server 2000 Service Pack 4
(KB948111)

Elevation of Privilege

Important

None

SQL Server 2000 Itanium-based Edition Service Pack 4
(KB948110)

SQL Server 2000 Itanium-based Edition Service Pack 4
(KB948111)

Elevation of Privilege

Important

None

SQL Server 2005 Service Pack 2
(KB948109)

SQL Server 2005 Service Pack 2
(KB948108)

Elevation of Privilege

Important

None

SQL Server 2005 x64 Edition Service Pack 2
(KB948109)

SQL Server 2005 x64 Edition Service Pack 2
(KB948108)

Elevation of Privilege

Important

None

SQL Server 2005 with SP2 for Itanium-based Systems
(KB948109)

SQL Server 2005 with SP2 for Itanium-based Systems
(KB948108)

Elevation of Privilege

Important

None

Microsoft Data Engine (MSDE) 1.0 Service Pack 4
(KB948113)

Microsoft Data Engine (MSDE) 1.0 Service Pack 4
(KB948113)

Elevation of Privilege

Important

None

Microsoft SQL Server 2000 Desktop Engine (MSDE 2000) Service Pack 4
(KB948110)

Microsoft SQL Server 2000 Desktop Engine (MSDE 2000) Service Pack 4
(KB948111)

Elevation of Privilege

Important

None

Microsoft SQL Server 2005 Express Edition Service Pack 2
(KB948109)

Microsoft SQL Server 2005 Express Edition Service Pack 2
(KB948108)

Elevation of Privilege

Important

None

Microsoft SQL Server 2005 Express Edition with Advanced Services Service Pack 2
(KB948109)

Microsoft SQL Server 2005 Express Edition with Advanced Services Service Pack 2
(KB948108)

Elevation of Privilege

Important

None

Windows Components

Operating System Component Maximum Security Impact Aggregate Severity Rating Bulletins Replaced by this Update

Microsoft Windows 2000 Service Pack 4

Microsoft SQL Server 2000 Desktop Engine (WMSDE)
(KB948110)

Elevation of Privilege

Important

None

Windows Server 2003 Service Pack 1 and Windows Server 2003 Service Pack 2

Microsoft SQL Server 2000 Desktop Engine (WMSDE)
(KB948110)

Elevation of Privilege

Important

None

Windows Server 2003 Service Pack 1 and Windows Server 2003 Service Pack 2

Windows Internal Database (WYukon) Service Pack 2
(KB948109)

Elevation of Privilege

Important

None

Windows Server 2003 x64 Edition and Windows Server 2003 x64 Edition Service Pack 2

Microsoft SQL Server 2000 Desktop Engine (WMSDE)
(KB948110)

Elevation of Privilege

Important

None

Windows Server 2003 x64 Edition and Windows Server 2003 x64 Edition Service Pack 2

Windows Internal Database (WYukon) x64 Edition Service Pack 2
(KB948109)

Elevation of Privilege

Important

None

Windows Server 2008 for 32-bit Systems*

Windows Internal Database (WYukon) Service Pack 2
(KB948109)

Elevation of Privilege

Important

None

Windows Server 2008 for x64-based Systems*

Windows Internal Database (WYukon) x64 Edition Service Pack 2
(KB948109)

Elevation of Privilege

Important

None

*Windows Server 2008 server core installation affected. For supported editions of Windows Server 2008, this update applies, with the same severity rating, whether or not Windows Server 2008 was installed using the Server Core installation option. For more information on this installation option, see Server Core. Note that the Server Core installation option does not apply to certain editions of Windows Server 2008; see Compare Server Core Installation Options.

 

Vulnerability Information

Severity Ratings and Vulnerability Identifiers

Vulnerability Severity Rating and Maximum Security Impact by Affected Software
Affected Software Memory Page Reuse Vulnerability – CVE-2008-0085 Convert Buffer Overrun Vulnerability – CVE-2008-0086 SQL Server Memory Corruption Vulnerability – CVE-2008-0107 SQL Server Buffer Overrun Vulnerability – CVE-2008-0106 Aggregate Severity Rating
SQL Server          

SQL Server 7.0 Service Pack 4

Important
Information Disclosure

Not Applicable

Important
Elevation of Privilege

Not Applicable

Important

SQL Server 2000 Service Pack 4

Important
Information Disclosure

Important
Elevation of Privilege

Important
Elevation of Privilege

Not Applicable

Important

SQL Server 2000 Itanium-based Edition Service Pack 4

Important
Information Disclosure

Important
Elevation of Privilege

Important
Elevation of Privilege

Not Applicable

Important

SQL Server 2005 Service Pack 1 and SQL Server 2005 Service Pack 2

Important
Information Disclosure

Not Applicable

Important
Elevation of Privilege

Important
Elevation of Privilege

Important

SQL Server 2005 x64 Edition Service Pack 1 and SQL Server 2005 x64 Edition Service Pack 2

Important
Information Disclosure

Not Applicable

Important
Elevation of Privilege

Important
Elevation of Privilege

Important

SQL Server 2005 with SP1 for Itanium-based Systems and SQL Server 2005 with SP2 for Itanium-based Systems

Important
Information Disclosure

Not Applicable

Important
Elevation of Privilege

Important
Elevation of Privilege

Important

Microsoft Data Engine (MSDE) 1.0 Service Pack 4

Important
Information Disclosure

Not Applicable

Important
Elevation of Privilege

Not Applicable

Important

Microsoft SQL Server 2000 Desktop Engine (MSDE 2000) Service Pack 4

Important
Information Disclosure

Important
Elevation of Privilege

Important
Elevation of Privilege

Not Applicable

Important

Microsoft SQL Server 2005 Express Edition Service Pack 1 and Microsoft SQL Server 2005 Express Edition Service Pack 2

Important
Information Disclosure

Not Applicable

Important
Elevation of Privilege

Important
Elevation of Privilege

Important

Microsoft SQL Server 2005 Express Edition with Advanced Services Service Pack 1 and Microsoft SQL Server 2005 Express Edition with Advanced Services Service Pack 2

Important
Information Disclosure

Not Applicable

Important
Elevation of Privilege

Important
Elevation of Privilege

Important

Windows Components          

Microsoft SQL Server 2000 Desktop Engine (WMSDE)

Important
Information Disclosure

Important
Elevation of Privilege

Important
Elevation of Privilege

Not Applicable

Important

Windows Internal Database (WYukon) Service Pack 2

Important
Information Disclosure

Not Applicable

Important
Elevation of Privilege

Not Applicable

Important

Windows Internal Database (WYukon) x64 Edition Service Pack 2

Important
Information Disclosure

Not Applicable

Important
Elevation of Privilege

Not Applicable

Important

Memory Page Reuse Vulnerability - CVE-2008-0085

An information disclosure vulnerability exists in the way that SQL Server manages memory page reuse. An attacker with database operator access who successfully exploited this vulnerability could access customer data.

To view this vulnerability as a standard entry in the Common Vulnerabilities and Exposures list, see CVE-2008-0085.

Convert Buffer Overrun - CVE-2008-0086

A vulnerability exists in the convert function in SQL Server that could allow an authenticated attacker to gain elevation of privilege. An attacker who successfully exploited this vulnerability could run code and take complete control of the system.

To view this vulnerability as a standard entry in the Common Vulnerabilities and Exposures list, see CVE-2008-0086.

SQL Server Memory Corruption Vulnerability - CVE-2008-0107

A vulnerability exists in SQL Server that could allow an authenticated attacker to gain elevation of privilege. An attacker who successfully exploited this vulnerability could run code and take complete control of the system.

To view this vulnerability as a standard entry in the Common Vulnerabilities and Exposures list, see CVE-2008-0107.

SQL Server Buffer Overrun Vulnerability - CVE-2008-0106

A vulnerability exists in SQL Server that could allow an authenticated attacker to gain elevation of privilege. An attacker who successfully exploited this vulnerability could run code and take complete control of the system.

To view this vulnerability as a standard entry in the Common Vulnerabilities and Exposures list, see CVE-2008-0106.

Update Information

Detection and Deployment Tools and Guidance

Manage the software and security updates you need to deploy to the servers, desktop, and mobile computers in your organization. For more information see the TechNet Update Management Center. The Microsoft TechNet Security Web site provides additional information about security in Microsoft products.

Security updates are available from Microsoft Update, Windows Update, and Office Update. Security updates are also available at the Microsoft Download Center. You can find them most easily by doing a keyword search for "security update."

Finally, security updates can be downloaded from the Microsoft Update Catalog. The Microsoft Update Catalog provides a searchable catalog of content made available through Windows Update and Microsoft Update, including security updates, drivers and service packs. By searching using the security bulletin number (such as, “MS07-036”), you can add all of the applicable updates to your basket (including different languages for an update), and download to the folder of your choosing. For more information about the Microsoft Update Catalog, see the Microsoft Update Catalog FAQ.

Detection and Deployment Guidance

Microsoft has provided detection and deployment guidance for this month’s security updates. This guidance will also help IT professionals understand how they can use various tools to help deploy the security update, such as Windows Update, Microsoft Update, Office Update, the Microsoft Baseline Security Analyzer (MBSA), the Office Detection Tool, Microsoft Systems Management Server (SMS), the Extended Security Update Inventory Tool, and the Enterprise Update Scan Tool (EST). For more information, see Microsoft Knowledge Base Article 910723.

Microsoft Baseline Security Analyzer

Microsoft Baseline Security Analyzer (MBSA) allows administrators to scan local and remote systems for missing security updates as well as common security misconfigurations. For more information about MBSA, visit Microsoft Baseline Security Analyzer.

The following table provides the MBSA detection summary for this security update.

Software MBSA 2.1

SQL Server 7.0 Service Pack 4

No

SQL Server 2000 Service Pack 4

Yes

SQL Server 2000 Itanium-based Edition Service Pack 4

Yes

SQL Server 2005 Service Pack 1 and SQL Server 2005 Service Pack 2

Yes

SQL Server 2005 x64-based Edition Service Pack 1 and SQL Server 2005 x64-based Edition Service Pack 2

Yes

SQL Server 2005 with SP1 for Itanium-based Systems and SQL Server 2005 with SP2 for Itanium-based Systems

Yes

Microsoft Data Engine (MSDE) 1.0 Service Pack 4

No

Microsoft SQL Server 2000 Desktop Engine (MSDE 2000) Service Pack 4

Yes

Microsoft SQL Server 2005 Express Edition Service Pack 1 and Microsoft SQL Server 2005 Express Edition Service Pack 2

Yes

Microsoft SQL Server 2005 Express Edition with Advanced Services Service Pack 1 and Microsoft SQL Server 2005 Express Edition with Advanced Services Service Pack 2

Yes

Windows Server 2003 Service Pack 1 and Windows Server 2003 Service Pack 2

Yes

Windows Server 2003 x64 Edition and Windows Server 2003 x64 Edition Service Pack 2

Yes

Windows Server 2008 and Windows Server 2008 for x64-based Systems

Yes

For more information about MBSA 2.1, see MBSA 2.1 Frequently Asked Questions.

Windows Server Update Services

By using Windows Server Update Services (WSUS), administrators can deploy the latest critical updates and security updates for Windows 2000 operating systems and later, Office XP and later, Exchange Server 2003, and SQL Server 2000 to Windows 2000 and later operating systems. For more information about how to deploy this security update using Windows Server Update Services, visit the Windows Server Update Services Web site.

Systems Management Server

The following table provides the SMS detection and deployment summary for this security update.

Software SMS 2.0 SMS 2003 with SUSFP SMS 2003 with ITMU SCCM 2007

SQL Server 7.0 Service Pack 4

No

No

No

No

SQL Server 2000 Service Pack 4

No

No

Yes

Yes

SQL Server 2000 Itanium-based Edition Service Pack 4

No

No

Yes

Yes

SQL Server 2005 Service Pack 1 and SQL Server 2005 Service Pack 2

No

No

Yes

Yes

SQL Server 2005 x64-based Edition Service Pack 1 and SQL Server 2005 x64-based Edition Service Pack 2

No

No

Yes

Yes

SQL Server 2005 with SP1 for Itanium-based Systems and SQL Server 2005 with SP2 for Itanium-based Systems

No

No

Yes

Yes

Microsoft Data Engine (MSDE) 1.0 Service Pack 4

No

No

No

No

Microsoft SQL Server 2000 Desktop Engine (MSDE 2000) Service Pack 4

No

No

Yes

Yes

Microsoft SQL Server 2005 Express Edition Service Pack 1 and Microsoft SQL Server 2005 Express Edition Service Pack 2

No

No

Yes

Yes

Microsoft SQL Server 2005 Express Edition with Advanced Services Service Pack 1 and Microsoft SQL Server 2005 Express Edition with Advanced Services Service Pack 2

No

No

Yes

Yes

Windows Server 2003 Service Pack 1 and Windows Server 2003 Service Pack 2

No

No

Yes

Yes

Windows Server 2003 x64 Edition and Windows Server 2003 x64 Edition Service Pack 2

No

No

Yes

Yes

Windows Server 2008 and Windows Server 2008 for x64-based Systems

No

No

See Note for Windows Server 2008 below

Yes

For SMS 2.0 and SMS 2003, the SMS SUS Feature Pack (SUSFP), which includes the Security Update Inventory Tool (SUIT), can be used by SMS to detect security updates. See also Downloads for Systems Management Server 2.0.

For SMS 2003, the SMS 2003 Inventory Tool for Microsoft Updates (ITMU) can be used by SMS to detect security updates that are offered by Microsoft Update and that are supported by Windows Server Update Services. For more information about the SMS 2003 ITMU, see SMS 2003 Inventory Tool for Microsoft Updates. SMS 2003 can also use the Microsoft Office Inventory Tool to detect required updates for Microsoft Office applications. For more information about the Office Inventory Tool and other scanning tools, see SMS 2003 Software Update Scanning Tools. See also Downloads for Systems Management Server 2003.

System Center Configuration Manager (SCCM) 2007 uses WSUS 3.0 for detection of updates. For more information about SCCM 2007 Software Update Management, visit System Center Configuration Manager 2007.

Note for Windows Server 2008 Microsoft Systems Management Server 2003 with Service Pack 3 includes support for Windows Server 2008 manageability.

For more information about SMS, visit the SMS Web site.

For more detailed information, see Microsoft Knowledge Base Article 910723: Summary list of monthly detection and deployment guidance articles.

Update Compatibility Evaluator and Application Compatibility Toolkit

Updates often write to the same files and registry settings required for your applications to run. This can trigger incompatibilities and increase the time it takes to deploy security updates. You can streamline testing and validating Windows updates against installed applications with the Update Compatibility Evaluator components included with Application Compatibility Toolkit 5.0.

The Application Compatibility Toolkit (ACT) contains the necessary tools and documentation to evaluate and mitigate application compatibility issues before deploying Microsoft Windows Vista, a Windows Update, a Microsoft Security Update, or a new version of Windows Internet Explorer in your environment.

Security Update Information

Affected Software

For information about the specific security update for your affected software, click the appropriate link:

* SQL Server 7.0 and Microsoft Data Engine (MSDE)
* SQL Server 2000 and Microsoft SQL Server Desktop Engine (MSDE)
* SQL Server 2005 (all editions)
* Microsoft SQL Server 2000 Desktop Engine (WMSDE) (all editions)
* Windows Internal Database (WYukon) (all editions)

Other Information

Acknowledgments

Microsoft thanks the following for working with us to help protect customers:

An anonymous finder for reporting the Memory Page Reuse Vulnerability (CVE-2008-0085).

An anonymous finder for reporting the Convert Buffer Overrun Vulnerability (CVE-2008-0086).

Brett Moore of Insomnia Security working with the iDefense VCP for reporting the SQL Server Memory Corruption Vulnerability (CVE-2008-0107).

An anonymous finder for reporting the SQL Server Buffer Overrun Vulnerability (CVE-2008-0106).

Support

Customers in the U.S. and Canada can receive technical support from Microsoft Product Support Services at 1-866-PCSAFETY. There is no charge for support calls that are associated with security updates.

International customers can receive support from their local Microsoft subsidiaries. There is no charge for support that is associated with security updates. For more information about how to contact Microsoft for support issues, visit the International Support Web site.

Disclaimer

The information provided in the Microsoft Knowledge Base is provided "as is" without warranty of any kind. Microsoft disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. In no event shall Microsoft Corporation or its suppliers be liable for any damages whatsoever including direct, indirect, incidental, consequential, loss of business profits or special damages, even if Microsoft Corporation or its suppliers have been advised of the possibility of such damages. Some states do not allow the exclusion or limitation of liability for consequential or incidental damages so the foregoing limitation may not apply.

Revisions

V1.0 (July 8, 2008): Bulletin published.

V1.1 (July 9, 2008): Removed erroneous references to SQL Server 2005 Service Pack 1 in the MBSA and SMS Detection and Deployment tables. Also clarified permissions requirements for vulnerability mitigating factors.

V1.2 (July 11, 2008): Added entry to the Frequently Asked Questions (FAQ) Related to This Security Update to communicate that the Known issues with this security update section in the associated Microsoft Knowledge Base Article 948110 has been updated.

V1.3 (July 16, 2008): Updated the applicable software under the �Windows Server Update Services� heading in the section, Detection and Deployment Tools and Guidance.

V1.4 (July 18, 2008): Corrected the list of valid product instance names in the Microsoft SQL Server 2000 Desktop Engine (WMSDE) subsection under the Security Update Information section. Also added entry to the Frequently Asked Questions (FAQ) Related to This Security Update to communicate a detection change in the way that Windows Server Update Services (WSUS) offers the update for Microsoft SQL Server 2000 Desktop Engine (WMSDE).

V1.5 (July 23, 2008): Added removal information notes for Microsoft SQL Server 2000 Desktop Engine (WMSDE) and Windows Internal Database (WYukon) to clarify that removing this security update for WMSDE or WYukon will also completely remove the instance of WMSDE or WYukon from the system.

V1.6 (August 12, 2008): Added entry to the Frequently Asked Questions (FAQ) Related to This Security Update to communicate a change in the installation code for the security update for SQL Server 2005 Service Pack 2. This is an installation code change only. There were no changes to the security update binaries.

 


[***** End Microsoft Security Bulletin (MS08-040) *****]

   

CIAC wishes to acknowledge the contributions of Microsoft for the information contained in this bulletin.
CIAC services are available to DOE, DOE Contractors, and the NIH. CIAC can be contacted at:
    Voice:          +1 925-422-8193 (7 x 24)
    FAX:            +1 925-423-8002
    STU-III:        +1 925-423-2604
    E-mail:          ciac@ciac.org
    World Wide Web:  http://www.ciac.org/
    Anonymous FTP:   ftp.ciac.org

This document was prepared as an account of work sponsored by an agency of the United States Government. Neither the United States Government nor the University of California nor any of their employees, makes any warranty, express or implied, or assumes any legal liability or responsibility for the accuracy, completeness, or usefulness of any information, apparatus, product, or process disclosed, or represents that its use would not infringe privately owned rights. Reference herein to any specific commercial products, process, or service by trade name, trademark, manufacturer, or otherwise, does not necessarily constitute or imply its endorsement, recommendation or favoring by the United States Government or the University of California. The views and opinions of authors expressed herein do not necessarily state or reflect those of the United States Government or the University of California, and shall not be used for advertising or product endorsement purposes.
UCRL-MI-119788
[Privacy and Legal Notice]