Microsoft Security Bulletin MS15-053 - Important

Vulnerabilities in JScript and VBScript Scripting Engines Could Allow Security Feature Bypass (3057263)

Published: May 12, 2015 | Updated: May 13, 2015

Version: 1.1

Executive Summary

This security update resolves ASLR security feature bypasses in the JScript and VBScript scripting engines in Microsoft Windows. An attacker could use one of these ASLR bypasses in conjunction with another vulnerability, such as a remote code execution vulnerability, to more reliably run arbitrary code on a target system.

This security update is rated Important for affected versions of the JScript and VBScript scripting engines on supported editions of Windows Server 2003, Windows Vista, Windows Server 2008, and Server Core installations of Windows Server 2008 R2. For more information, see the Affected Software section.

The update addresses the ASLR bypasses by helping to ensure that affected versions of JScript and VBScript properly implement the ASLR security feature. For more information about the vulnerabilities, see the Vulnerability Information section.

For more information about this update, see Microsoft Knowledge Base Article 3057263.

Affected Software

The following versions of JScript and VBScript are affected by the vulnerability discussed in this bulletin. Earlier versions or editions that are not listed are either past their support life cycle or are not affected. The following affected software apply to systems with Internet Explorer 7 or earlier installed and to systems without Internet Explorer installed. Customers with systems running Internet Explorer 8 or later should apply Internet Explorer Cumulative Update 3049563 (MS15-043), which also addresses the vulnerability discussed in this bulletin.

Affected Software

**Operating System** **Component** **Maximum Security Impact** **Aggregate Severity Rating** **Updates Replaced**
**Windows Server 2003**
Windows Server 2003 Service Pack 2 [JScript 5.6 and VBScript 5.6](https://www.microsoft.com/downloads/details.aspx?familyid=d9768e49-7b67-4419-a0f9-681fca7ee41a) (3050946) Security Feature Bypass Important 2510587 in [MS11-031](http://go.microsoft.com/fwlink/?linkid=212243) and 3030403 in [MS15-019](http://go.microsoft.com/fwlink/?linkid=526467)
Windows Server 2003 Service Pack 2 [JScript 5.7 and VBScript 5.7](https://www.microsoft.com/downloads/details.aspx?familyid=f3fa91b7-6c75-46e6-99b9-a0a34df2d280) (3050945) Security Feature Bypass Important 2510581 in [MS11-031](http://go.microsoft.com/fwlink/?linkid=212243) and 3030398 in [MS15-019](http://go.microsoft.com/fwlink/?linkid=526467)
Windows Server 2003 x64 Edition Service Pack 2 [JScript 5.6 and VBScript 5.6](https://www.microsoft.com/downloads/details.aspx?familyid=d8802934-2e41-413b-806a-451787995739) (3050946) Security Feature Bypass Important 2510587 in [MS11-031](http://go.microsoft.com/fwlink/?linkid=212243) and 3030403 in [MS15-019](http://go.microsoft.com/fwlink/?linkid=526467)
Windows Server 2003 x64 Edition Service Pack 2 [JScript 5.7 and VBScript 5.7](https://www.microsoft.com/downloads/details.aspx?familyid=ac40917e-2b24-4f19-90d8-51b1cf9efa2d) (3050945) Security Feature Bypass Important 2510581 in [MS11-031](http://go.microsoft.com/fwlink/?linkid=212243) and 3030398 in [MS15-019](http://go.microsoft.com/fwlink/?linkid=526467)
Windows Server 2003 with SP2 for Itanium-based Systems [JScript 5.6 and VBScript 5.6](https://www.microsoft.com/downloads/details.aspx?familyid=0137987e-fada-4038-af9a-8ed865930847) (3050946) Security Feature Bypass Important 2510587 in [MS11-031](http://go.microsoft.com/fwlink/?linkid=212243) and 3030403 in [MS15-019](http://go.microsoft.com/fwlink/?linkid=526467)
Windows Server 2003 with SP2 for Itanium-based Systems [JScript 5.7 and VBScript 5.7](https://www.microsoft.com/downloads/details.aspx?familyid=2c9b3d6b-1603-4ce5-8d62-fedc3e76247a) (3050945) Security Feature Bypass Important 2510581 in [MS11-031](http://go.microsoft.com/fwlink/?linkid=212243) and 3030398 in [MS15-019](http://go.microsoft.com/fwlink/?linkid=526467)
**Windows Vista**
Windows Vista Service Pack 2 [JScript 5.7 and VBScript 5.7](https://www.microsoft.com/downloads/details.aspx?familyid=fa2b05e3-7acc-4174-817b-cdf5144ed77a) (3050945) Security Feature Bypass Important 2510581 in [MS11-031](http://go.microsoft.com/fwlink/?linkid=212243) and 3030398 in [MS15-019](http://go.microsoft.com/fwlink/?linkid=526467)
Windows Vista x64 Edition Service Pack 2 [JScript 5.7 and VBScript 5.7](https://www.microsoft.com/downloads/details.aspx?familyid=5fae5e65-f8d1-4e34-ae80-54df23a9bfb1) (3050945) Security Feature Bypass Important 2510581 in [MS11-031](http://go.microsoft.com/fwlink/?linkid=212243) and 3030398 in [MS15-019](http://go.microsoft.com/fwlink/?linkid=526467)
**Windows Server 2008**
Windows Server 2008 for 32-bit Systems Service Pack 2 [JScript 5.7 and VBScript 5.7](https://www.microsoft.com/downloads/details.aspx?familyid=1efb474c-5163-48ac-8ef4-80de15f93809) (3050945) Security Feature Bypass Important 2510581 in [MS11-031](http://go.microsoft.com/fwlink/?linkid=212243) and 3030398 in [MS15-019](http://go.microsoft.com/fwlink/?linkid=526467)
Windows Server 2008 for x64-based Systems Service Pack 2 [JScript 5.7 and VBScript 5.7](https://www.microsoft.com/downloads/details.aspx?familyid=694f56c7-e601-4b60-a162-88805e7cdd4b) (3050945) Security Feature Bypass Important 2510581 in [MS11-031](http://go.microsoft.com/fwlink/?linkid=212243) and 3030398 in [MS15-019](http://go.microsoft.com/fwlink/?linkid=526467)
Windows Server 2008 for Itanium-based Systems Service Pack 2 [JScript 5.7 and VBScript 5.7](https://www.microsoft.com/downloads/details.aspx?familyid=17364a94-2cdb-4089-a359-57a90eaa45b6) (3050945) Security Feature Bypass Important 2510581 in [MS11-031](http://go.microsoft.com/fwlink/?linkid=212243) and 3030398 in [MS15-019](http://go.microsoft.com/fwlink/?linkid=526467)
**Server Core installation**
Windows Server 2008 for 32-bit Systems Service Pack 2 (Server Core installation) [JScript 5.7 and VBScript 5.7](https://www.microsoft.com/downloads/details.aspx?familyid=1efb474c-5163-48ac-8ef4-80de15f93809) (3050945) Security Feature Bypass Important 2510581 in [MS11-031](http://go.microsoft.com/fwlink/?linkid=212243) and 3030398 in [MS15-019](http://go.microsoft.com/fwlink/?linkid=526467)
Windows Server 2008 for x64-based Systems Service Pack 2 (Server Core installation) [JScript 5.7 and VBScript 5.7](https://www.microsoft.com/downloads/details.aspx?familyid=694f56c7-e601-4b60-a162-88805e7cdd4b) (3050945) Security Feature Bypass Important 2510581 in [MS11-031](http://go.microsoft.com/fwlink/?linkid=212243) and 3030398 in [MS15-019](http://go.microsoft.com/fwlink/?linkid=526467)
Windows Server 2008 R2 for x64-based Systems Service Pack 1 (Server Core installation) [JScript 5.8 and VBScript 5.8](https://www.microsoft.com/downloads/details.aspx?familyid=399831a3-811e-453b-907e-c531a853f388) (3050941) Security Feature Bypass Important 3030630 in [MS15-019](http://go.microsoft.com/fwlink/?linkid=526467)
**Note** An update for VBScript 5.12 and JScript 5.12 is available for Windows Technical Preview and Windows Server Technical Preview and is provided via Internet Explorer Cumulative Update 3049563 ([MS15-043](http://go.microsoft.com/fwlink/?linkid=533730)). Customer who are running Preview editions are encouraged to apply the update, which is available via [Windows Update](http://go.microsoft.com/fwlink/?linkid=21130).

Update FAQ

How do I determine which versions of JScript and VBScript scripting engines are installed on my system?
The JScript and VBScript scripting engines are installed with supported releases of Microsoft Windows. In addition, installing a newer version of Internet Explorer on a system can change the version of the JScript and VBScript scripting engine that are installed.

To determine which versions of the JScript or VBScript scripting engines are installed on your system, perform the following steps:

  1. Open Windows Explorer.
  2. Navigate to the %systemroot%\system32 directory.
  3. For VBscript, right-click vbscript.dll, select Properties, and then click the Details tab.
  4. For JScript, right-click jscript.dll, select Properties, and then click the Details tab.

The version number is listed in the File Version field. If your file version starts with 5.8, for example 5.8.7600.16385, then VBScript 5.8 is installed on your system.

Once I know the version of the JScript or VBScript scripting engine installed on my system, where do I get the update?
The affected software in this bulletin apply to systems without Internet Explorer installed and to systems with Internet Explorer 8 or earlier versions installed. Customers with systems running Internet Explorer 9 or later should apply the Internet Explorer Cumulative Update (MS15-043), which also addresses the vulnerability discussed in this bulletin.

The following table summarizes which bulletin provides the update by version of JScript and VBScript, and Internet Explorer.

Version MS15-053 MS15-043
JScript 5.6 and VBScript 5.6
(Internet Explorer 6)
JScript 5.6 and VBScript 5.6
(3050946)
Not applicable
JScript 5.7 and VBScript 5.7
(Internet Explorer 6 and Internet Explorer 7)
JScript 5.7 and VBScript 5.7
(3050945)
Not applicable
JScript 5.8 and VBScript 5.8
(Internet Explorer 8)
JScript 5.8 and VBScript 5.8
(3050941)
(Windows Server Core installation on Windows Server 2008 R2 only)
Internet Explorer 8
(3049563)
JScript 5.8 and VBScript 5.8
(Internet Explorer 9)
Not applicable Internet Explorer 9
(3049563)
JScript 5.8 and VBScript 5.8
(Internet Explorer 10)
Not applicable Internet Explorer 10
(3049563)
JScript 5.8 and VBScript 5.8
(Internet Explorer 11)
Not applicable Internet Explorer 11
(3049563)

Severity Ratings and Vulnerability Identifiers

The following severity ratings assume the potential maximum impact of the vulnerability. For information regarding the likelihood, within 30 days of this security bulletin's release, of the exploitability of the vulnerability in relation to its severity rating and security impact, please see the Exploitability Index in the May bulletin summary.

**Vulnerability Severity Rating and Maximum Security Impact by Affected Software**
**Affected Software** [**VBScript ASLR Bypass - CVE-2015-1684**](http://www.cve.mitre.org/cgi-bin/cvename.cgi?name=cve-2015-1684) [**VBScript and JScript ASLR Bypass - CVE-2015-1686**](http://www.cve.mitre.org/cgi-bin/cvename.cgi?name=cve-2015-1686) **Aggregate Severity Rating**
**VBScript 5.6 (Internet Explorer 6)**
VBScript 5.6 on Windows Server 2003 Service Pack 2 **Important** Security Feature Bypass Not applicable **Important**
JScript 5.6 and VBScript 5.6 on Windows Server 2003 Service Pack 2 Not applicable **Important** Security Feature Bypass **Important**
VBScript 5.6 on Windows Server 2003 x64 Edition Service Pack 2 **Important** Security Feature Bypass Not applicable **Important**
JScript 5.6 and VBScript 5.6 on Windows Server 2003 Service Pack 2 Not applicable **Important** Security Feature Bypass **Important**
VBScript 5.6 on Windows Server 2003 with SP2 for Itanium-based Systems **Important** Security Feature Bypass Not applicable **Important**
JScript 5.6 and VBScript 5.6 on Windows Server 2003 with SP2 for Itanium-based Systems Not applicable **Important** Security Feature Bypass **Important**
**VBScript 5.7 (Internet Explorer 7)**
VBScript 5.7 on Windows Server 2003 Service Pack 2 **Important** Security Feature Bypass Not applicable **Important**
JScript 5.7 and VBScript 5.7 on Windows Server 2003 Service Pack 2 Not applicable **Important** Security Feature Bypass **Important**
VBScript 5.7 on Windows Server 2003 x64 Edition Service Pack 2 **Important** Security Feature Bypass Not applicable **Important**
JScript 5.7 and VBScript 5.7 on Windows Server 2003 x64 Edition Service Pack 2 Not applicable **Important** Security Feature Bypass **Important**
VBScript 5.7 on Windows Server 2003 with SP2 for Itanium-based Systems **Important** Security Feature Bypass Not applicable **Important**
JScript 5.7 and VBScript 5.7 on Windows Server 2003 with SP2 for Itanium-based Systems Not applicable **Important** Security Feature Bypass **Important**
VBScript 5.7 on Windows Vista Service Pack 2 **Important** Security Feature Bypass Not applicable **Important**
JScript 5.7 and VBScript 5.7 on Windows Vista Service Pack 2 Not applicable **Important** Security Feature Bypass **Important**
VBScript 5.7 on Windows Vista x64 Edition Service Pack 2 **Important** Security Feature Bypass Not applicable **Important**
JScript and VBScript 5.7 on Windows Vista x64 Edition Service Pack 2 Not applicable **Important** Security Feature Bypass **Important**
VBScript 5.7 on Windows Server 2008 for 32-bit Systems Service Pack 2 **Important** Security Feature Bypass Not applicable **Important**
JScript 5.7 and VBScript 5.7 on Windows Server 2008 for 32-bit Systems Service Pack 2 Not applicable **Important** Security Feature Bypass **Important**
VBScript 5.7 on Windows Server 2008 for 32-bit Systems Service Pack 2 (Server Core installation) **Important** Security Feature Bypass Not applicable **Important**
JScript 5.7 and VBScript 5.7 on Windows Server 2008 for 32-bit Systems Service Pack 2 (Server Core installation) Not applicable **Important** Security Feature Bypass **Important**
VBScript 5.7 on Windows Server 2008 for x64-based Systems Service Pack 2 **Important** Security Feature Bypass Not applicable **Important**
JScript 5.7 and VBScript 5.7 on Windows Server 2008 for x64-based Systems Service Pack 2 Not applicable **Important** Security Feature Bypass **Important**
VBScript 5.7 on Windows Server 2008 for x64-based Systems Service Pack 2 (Server Core installation) **Important** Security Feature Bypass Not applicable **Important**
JScript 5.7 and VBScript 5.7 on Windows Server 2008 for x64-based Systems Service Pack 2 (Server Core installation) Not applicable **Important** Security Feature Bypass **Important**
VBScript 5.7 on Windows Server 2008 for Itanium-based Systems Service Pack 2 **Important** Security Feature Bypass Not applicable **Important**
JScript 5.7 and VBScript 5.7 on Windows Server 2008 for Itanium-based Systems Service Pack 2 Not applicable **Important** Security Feature Bypass **Important**
**VBScript 5.8 (Internet Explorer 8)**
VBScript 5.8 on Windows Server 2008 R2 for x64-based Systems Service Pack 1 (Server Core installation) **Important** Security Feature Bypass Not applicable **Important**
JScript 5.8 and VBScript 5.8 on Windows Server 2008 R2 for x64-based Systems Service Pack 1 (Server Core installation) Not applicable **Important** Security Feature Bypass **Important**

Vulnerability Information

VBScript ASLR Bypass - CVE-2015-1684

A security feature bypass exists when the VBScript engine fails to use the Address Space Layout Randomization (ASLR) security feature, allowing an attacker to more reliably predict the memory offsets of specific instructions in a given call stack. The security feature bypass by itself does not allow arbitrary code execution. However, an attacker could use the ASLR bypass in conjunction with another vulnerability, such as a remote code execution vulnerability, to more reliably run arbitrary code on a target system.

In a web-browsing scenario, successful exploitation of an ASLR bypass requires that a user is logged on and running an affected version of Internet Explorer, and browses to a malicious site. Therefore, any systems where a web browser is used frequently, such as workstations or terminal servers, are at the most risk from ASLR bypasses. Servers could be at more risk if administrators allow users to browse and read email on servers. However, best practices strongly discourage allowing this.

The update addresses this ASLR bypass by helping to ensure that affected versions of VBScript properly implement the ASLR security feature. The following table contains links to the standard entry for each vulnerability in the Common Vulnerabilities and Exposures list:

Vulnerability title CVE number Publicly Disclosed Exploited
VBScript ASLR Bypass CVE-2015-1684 No No
### Mitigating Factors Microsoft has not identified any [mitigating factors](https://technet.microsoft.com/library/security/dn848375.aspx) for this vulnerability. ### Workarounds The following [workarounds](https://technet.microsoft.com/library/security/dn848375.aspx) may be helpful in your situation: - **Restrict access to VBScript.dll** - For 32-bit systems, enter the following command at an administrative command prompt:
    ```
    takeown /f %windir%\system32\vbscript.dll  
    cacls %windir%\system32\vbscript.dll /E /P everyone:N
    ```

-   For 64-bit systems, enter the following command at an administrative command prompt:

    ```
    takeown /f %windir%\syswow64\vbscript.dll  
    cacls %windir%\syswow64\vbscript.dll /E /P everyone:N
    ```

**Impact of Workaround.** Websites that use VBScript may not work properly.

**How to undo the workaround.**

-   For 32-bit systems, enter the following command at an administrative command prompt: 

    ```
    cacls %windir%\system32\vbscript.dll /E /R everyone
    ```

-   For 64-bit systems, enter the following command at an administrative command prompt: 

    ```
    cacls %windir%\syswow64\vbscript.dll /E /R everyone
    ```

VBScript and JScript ASLR Bypass - CVE-2015-1686

A security feature bypass exists when the JScript and VBScript engines fail to use the Address Space Layout Randomization (ASLR) security feature, allowing an attacker to more reliably predict the memory offsets of specific instructions in a given call stack. The security feature bypass by itself does not allow arbitrary code execution. However, an attacker could use the ASLR bypass in conjunction with another vulnerability, such as a remote code execution vulnerability, to more reliably run arbitrary code on a target system.

In a web-browsing scenario, successful exploitation of an ASLR bypass requires that a user is logged on and running an affected version of Internet Explorer, and browses to a malicious site. Therefore, any systems where a web browser is used frequently, such as workstations or terminal servers, are at the most risk from ASLR bypasses. Servers could be at more risk if administrators allow users to browse and read email on servers. However, best practices strongly discourage allowing this.

The update addresses this ASLR bypass by helping to ensure that affected versions of JScript and VBScript properly implement the ASLR security feature. The following table contains links to the standard entry for each vulnerability in the Common Vulnerabilities and Exposures list:

Vulnerability title CVE number Publicly Disclosed Exploited
VBScript and JScript ASLR Bypass CVE-2015-1686 No No
### Mitigating Factors Microsoft has not identified any [mitigating factors](https://technet.microsoft.com/library/security/dn848375.aspx) for this vulnerability. ### Workarounds Microsoft has not identified any [workarounds](https://technet.microsoft.com/library/security/dn848375.aspx) for this vulnerability. Security Update Deployment -------------------------- For Security Update Deployment information, see the Microsoft Knowledge Base article referenced [here](#kbarticle) in the Executive Summary. Acknowledgments --------------- Microsoft recognizes the efforts of those in the security community who help us protect customers through coordinated vulnerability disclosure. See [Acknowledgments](https://technet.microsoft.com/library/security/dn903755.aspx) for more information. 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 (May 12, 2015): Bulletin published. - V1.1 (May 13, 2015): Revised bulletin to correct the updates replaced for Windows Server 2008 R2 (Server Core installation). This is an informational change only. There were no changes to the update files. Customers who have already successfully updated their systems do not need to take any action. *Page generated 2015-05-13 15:28Z-07:00.*