Vulnerability  oval:org.mitre.oval:def:6217
SQL Server sp_replwritetovarbin Limited Memory Overwrite Vulnerability  

Heap-based buffer overflow in Microsoft SQL Server 2000 SP4, 8.00.2050, 8.00.2039, and earlier; SQL Server 2000 Desktop Engine (MSDE 2000) SP4; SQL Server 2005 SP2 and 9.00.1399.06; SQL Server 2000 Desktop Engine (WMSDE) on Windows Server 2003 SP1 and SP2; and Windows Internal Database (WYukon) SP2 allows remote authenticated users to cause a denial of service (access violation exception) or execute arbitrary code by calling the sp_replwritetovarbin extended stored procedure with a set of invalid parameters that trigger memory overwrite, aka "SQL Server sp_replwritetovarbin Limited Memory Overwrite Vulnerability."
Create Date: 2009-02-10 Last Update Date: 2013-10-07

Affected Platforms/Products

Affected Products (CPE + CVE references)
Platforms: windows (from OVAL definitions) Products: windows
  • Microsoft Windows Server 2008
  • Microsoft Windows Server 2003
  • Microsoft Windows 2000
  • Windows Internal Database (WYukon)
  • Microsoft SQL Server 2000 Desktop Engine (WMSDE)
  • Microsoft SQL Server 2005
  • Microsoft SQL Server 2000

References

Criteria

The system is vulnerable
IF : Any one of the following are true
IF : Any one of the following are true SQL Server 2005 SP2 - QFE
IF : All of the following are true
Prerequisites (Extended Definitions)
Microsoft SQL Server 2005 is installed oval:org.mitre.oval:def:6082
IF : HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SQL Server\90\DTS\Setup\\SP equals 2
Windows : Registry Test :  HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SQL Server\90\DTS\Setup\\SP equals 2 
At least one of the objects listed below must exist on the system (Existence check)
Windows : Registry Object 
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SQL Server\90\DTS\Setup : SP
value (equals) 2 (datatype=int)
windows : registry_state 
IF : the version of msdtssrvr.exe is less than 9.0.3310.0
Windows : File Test :  the version of msdtssrvr.exe is less than 9.0.3310.0 
At least one of the objects listed below must exist on the system (Existence check)
Windows : File 
[[value of ${{windows:registry_object:HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SQL Server\90\DTS\Setup : SQLPath}}]]\Binn\msdtssrvr.exe
version less than 9.0.3310.0 (datatype=version)
windows : file_state 
IF : SQL Server 2005 QFE - the version of msdtssrvr.exe is greater than 9.0.3300.0
Windows : File Test :  SQL Server 2005 QFE - the version of msdtssrvr.exe is greater than 9.0.3300.0 
At least one of the objects listed below must exist on the system (Existence check)
Windows : File 
[[value of ${{windows:registry_object:HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SQL Server\90\DTS\Setup : SQLPath}}]]\Binn\msdtssrvr.exe
version greater than 9.0.3300.0 (datatype=version)
windows : file_state 
IF : All of the following are true
Prerequisites (Extended Definitions)
Microsoft SQL Server 2005 SP2 is installed oval:org.mitre.oval:def:8397
IF : the version of sqlservr.exe is greater than or equal to 2005.90.3150.0
Windows : File Test :  the version of sqlservr.exe is greater than or equal to 2005.90.3150.0 
At least one of the objects listed below must exist on the system (Existence check)
Windows : File 
[[value of ${{windows:registry_object:HKEY_LOCAL_MACHINE\^SOFTWARE\\Microsoft\\Microsoft SQL Server\\.*\\Setup$ : SQLPath}}]]\Binn\sqlservr.exe
version greater than or equal 2005.90.3150.0 (datatype=version)
windows : file_state 
IF : the version of sqlservr.exe is less than 2005.90.3310.0
Windows : File Test :  the version of sqlservr.exe is less than 2005.90.3310.0 
At least one of the objects listed below must exist on the system (Existence check)
Windows : File 
[[value of ${{windows:registry_object:HKEY_LOCAL_MACHINE\^SOFTWARE\\Microsoft\\Microsoft SQL Server\\.*\\Setup$ : SQLPath}}]]\Binn\sqlservr.exe
version less than 2005.90.3310.0 (datatype=version)
windows : file_state 
IF : Any one of the following are true SQL Server 2005 SP2 - GDR
IF : All of the following are true
Prerequisites (Extended Definitions)
Microsoft SQL Server 2005 is installed oval:org.mitre.oval:def:6082
IF : the version of msdtssrvr.exe is less than 9.0.3077.0
Windows : File Test :  the version of msdtssrvr.exe is less than 9.0.3077.0 
At least one of the objects listed below must exist on the system (Existence check)
Windows : File 
[[value of ${{windows:registry_object:HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SQL Server\90\DTS\Setup : SQLPath}}]]\Binn\msdtssrvr.exe
version less than 9.0.3077.0 (datatype=version)
windows : file_state 
IF : SQL Server 2005 GDR - the version of msdtssrvr.exe is greater than 9.0.3000.0
Windows : File Test :  SQL Server 2005 GDR - the version of msdtssrvr.exe is greater than 9.0.3000.0 
At least one of the objects listed below must exist on the system (Existence check)
Windows : File 
[[value of ${{windows:registry_object:HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SQL Server\90\DTS\Setup : SQLPath}}]]\Binn\msdtssrvr.exe
version greater than 9.0.3000.0 (datatype=version)
windows : file_state 
IF : HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SQL Server\90\DTS\Setup\\SP equals 2
Windows : Registry Test :  HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SQL Server\90\DTS\Setup\\SP equals 2 
At least one of the objects listed below must exist on the system (Existence check)
Windows : Registry Object 
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SQL Server\90\DTS\Setup : SP
value (equals) 2 (datatype=int)
windows : registry_state 
IF : All of the following are true
Prerequisites (Extended Definitions)
Microsoft SQL Server 2005 SP2 is installed oval:org.mitre.oval:def:8397
IF : the version of sqlservr.exe is greater than or equal to 2005.90.3042.0
Windows : File Test :  the version of sqlservr.exe is greater than or equal to 2005.90.3042.0 
At least one of the objects listed below must exist on the system (Existence check)
Windows : File 
[[value of ${{windows:registry_object:HKEY_LOCAL_MACHINE\^SOFTWARE\\Microsoft\\Microsoft SQL Server\\.*\\Setup$ : SQLPath}}]]\Binn\sqlservr.exe
version greater than or equal 2005.90.3042.0 (datatype=version)
windows : file_state 
IF : the version of sqlservr.exe is less than 2005.90.3077.0
Windows : File Test :  the version of sqlservr.exe is less than 2005.90.3077.0 
At least one of the objects listed below must exist on the system (Existence check)
Windows : File 
[[value of ${{windows:registry_object:HKEY_LOCAL_MACHINE\^SOFTWARE\\Microsoft\\Microsoft SQL Server\\.*\\Setup$ : SQLPath}}]]\Binn\sqlservr.exe
version less than 2005.90.3077.0 (datatype=version)
windows : file_state 
IF : All of the following are true SQL Server 2000 SP4 32-bit editions - QFE
IF : the version of sqlservr.exe is less than 2000.80.2282.0
Windows : File Test :  the version of sqlservr.exe is less than 2000.80.2282.0 
At least one of the objects listed below must exist on the system (Existence check)
Windows : File 
[[value of ${{windows:registry_object:HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\sqlservr.exe : Path}}]]\sqlservr.exe
version less than 2000.80.2282.0 (datatype=version)
windows : file_state 
IF : SQL Server 2000 QFE - the version of sqlservr.exe is greater than 2000.80.2000.0
Windows : File Test :  SQL Server 2000 QFE - the version of sqlservr.exe is greater than 2000.80.2000.0 
At least one of the objects listed below must exist on the system (Existence check)
Windows : File 
[[value of ${{windows:registry_object:HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\sqlservr.exe : Path}}]]\sqlservr.exe
version greater than 2000.80.2000.0 (datatype=version)
windows : file_state 
IF : SQL Server 2000 is installed
Windows : Registry Test :  SQL Server 2000 is installed 
At least one of the objects listed below must exist on the system (Existence check)
Windows : Registry Object 
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MSSQLServer\MSSQLServer\CurrentVersion : CurrentVersion
value (equals) 8.00.194
windows : registry_state 
IF : All of the following are true SQL Server 2000 SP4 32-bit editions - GDR
IF : SQL Server 2000 GDR - the version of sqlservr.exe is greater than 2000.80.2000.0
Windows : File Test :  SQL Server 2000 GDR - the version of sqlservr.exe is greater than 2000.80.2000.0 
At least one of the objects listed below must exist on the system (Existence check)
Windows : File 
[[value of ${{windows:registry_object:HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\sqlservr.exe : Path}}]]\sqlservr.exe
version greater than 2000.80.2000.0 (datatype=version)
windows : file_state 
IF : the version of sqlservr.exe is less than 2000.80.2055.0
Windows : File Test :  the version of sqlservr.exe is less than 2000.80.2055.0 
At least one of the objects listed below must exist on the system (Existence check)
Windows : File 
[[value of ${{windows:registry_object:HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\sqlservr.exe : Path}}]]\sqlservr.exe
version less than 2000.80.2055.0 (datatype=version)
windows : file_state 
IF : SQL Server 2000 is installed
Windows : Registry Test :  SQL Server 2000 is installed 
At least one of the objects listed below must exist on the system (Existence check)
Windows : Registry Object 
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MSSQLServer\MSSQLServer\CurrentVersion : CurrentVersion
value (equals) 8.00.194
windows : registry_state 

Quick Help

References To Objects
[[ .. ${{...}}]] are refences to values of other objects.
Other Help Topics
Data Types
What is an Object?
What is a State?
What is a Test?
Other Help Topics
Regular Expression Patterns
Some object or state definitions are defined as regular expression patterns, you should interpret the regexp pattern while evaluating them.

OVAL Definitions By Referenced Objects

How does it work?   User agreement and privacy statement   About & Contact
CVE is a registred trademark of the MITRE Corporation and the authoritive source of CVE content is MITRE's CVE web site. CWE is a registred trademark of the MITRE Corporation and the authoritive source of CWE content is MITRE's CWE web site. OVAL is a registered trademark of The MITRE Corporation and the authoritive source of OVAL content is MITRE's OVAL web site.
Warning: This site and all data are provided as is. It is not guaranteed that all information is accurate and complete. Use any information provided on this site at your own risk. By using this site you accept that you know that these data are provided as is and not guaranteed to be accurate, correct or complete. All trademarks appearing on this site are the property of their respective owners in the US or other countries. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss. PLEASE SEE nvd.nist.gov and oval.mitre.org for more details about OVAL language and definitions.
The information within this database may change without notice. Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. In no event shall the author/distributor/web site owner/maintainer be held liable for any damages whatsoever arising out of or in connection with the use or spread of this information.
Use of OVAL and all related data is subject to terms of use defined by Mitre at http://oval.mitre.org/oval/about/termsofuse.html