Skip to main content
CVE Vulnerability Database
Vulnerability Database/CVE-2023-36017

CVE-2023-36017: Windows 10 Buffer Overflow Vulnerability

CVE-2023-36017 is a buffer overflow vulnerability in Windows Scripting Engine affecting Windows 10 1507 that causes memory corruption. This article covers technical details, affected versions, impact, and mitigation.

Updated:

CVE-2023-36017 Overview

CVE-2023-36017 is a memory corruption vulnerability in the Windows Scripting Engine that allows remote code execution. The flaw affects supported versions of Windows 10, Windows 11, and Windows Server (2008 R2 through 2022). An attacker who successfully exploits this vulnerability can execute arbitrary code in the context of the current user. Exploitation requires user interaction, typically by enticing a target to visit a malicious website or open crafted content that loads through the scripting engine. The vulnerability is classified under [CWE-843] (type confusion) and [CWE-787] (out-of-bounds write).

Critical Impact

Successful exploitation enables remote code execution on unpatched Windows systems with the privileges of the logged-in user, enabling full compromise of standard user workstations.

Affected Products

  • Microsoft Windows 10 (versions 1507, 1607, 1809, 21H2, 22H2)
  • Microsoft Windows 11 (versions 21H2, 22H2, 23H2)
  • Microsoft Windows Server 2008 R2, 2012, 2012 R2, 2016, 2019, and 2022

Discovery Timeline

  • 2023-11-14 - CVE-2023-36017 published to NVD as part of Microsoft's November 2023 Patch Tuesday
  • 2024-11-21 - Last updated in NVD database

Technical Details for CVE-2023-36017

Vulnerability Analysis

The vulnerability resides in the Windows Scripting Engine, the component that parses and executes script content such as JScript and VBScript. The flaw involves both type confusion ([CWE-843]) and out-of-bounds write ([CWE-787]) conditions during script object handling. When the scripting engine processes a specially crafted script, it misinterprets an object's type, leading to operations on memory that violate the assumed object layout. This mismatch results in writing data outside the intended buffer boundaries. The corrupted memory state can be steered by an attacker to redirect execution flow and gain code execution within the host process.

Root Cause

The root cause is improper type validation within the Windows Scripting Engine's object handling logic. Script objects are accessed using assumptions about their underlying structure that the engine fails to verify at runtime. An attacker who controls the script payload can construct objects that satisfy one code path while being interpreted differently in another, producing an out-of-bounds write into adjacent memory.

Attack Vector

Exploitation occurs over the network and requires user interaction. A typical attack chain involves hosting a malicious web page or delivering a document that loads embedded script content. When the victim opens the content using a browser or application that hosts the Windows Scripting Engine, the crafted script triggers the memory corruption. The EPSS data indicates a probability score of 2.717% with an 86th percentile ranking, reflecting elevated relative likelihood of exploitation activity compared to the broader CVE population. The vulnerability is described in the Microsoft CVE-2023-36017 Advisory.

No verified proof-of-concept code is publicly available. The exploitation mechanism centers on triggering type confusion through script object manipulation, leading to an out-of-bounds write that corrupts adjacent heap memory.

Detection Methods for CVE-2023-36017

Indicators of Compromise

  • Unexpected child processes spawned by wscript.exe, cscript.exe, or browser processes hosting the scripting engine
  • Browser or Office processes loading unusual script content from untrusted domains followed by suspicious process creation
  • Crashes or unexpected restarts of processes that host jscript.dll or vbscript.dll

Detection Strategies

  • Monitor for script engine processes executing encoded or obfuscated payloads delivered via web traffic or email attachments
  • Alert on memory access violations in processes that load the Windows Scripting Engine modules
  • Correlate browser navigation events with subsequent process creation chains originating from script hosts

Monitoring Recommendations

  • Enable command-line logging and PowerShell script block logging across all Windows endpoints
  • Forward Sysmon process creation, image load, and process access events to a centralized analytics platform
  • Track installation status of the November 2023 Microsoft security updates across the fleet to identify unpatched hosts

How to Mitigate CVE-2023-36017

Immediate Actions Required

  • Apply Microsoft's November 2023 security update for all affected Windows client and server editions without delay
  • Prioritize patching internet-facing workstations and systems used for web browsing or email handling
  • Restrict execution of wscript.exe and cscript.exe for standard users where business workflows do not require them

Patch Information

Microsoft released a security update addressing CVE-2023-36017 on November 14, 2023. Patch details and update package links for each affected Windows version are documented in the Microsoft CVE-2023-36017 Advisory. Administrators should validate deployment through Windows Update, WSUS, or Microsoft Endpoint Configuration Manager.

Workarounds

  • Disable legacy script engines such as JScript where supported using Microsoft's documented configuration controls
  • Enforce Attack Surface Reduction rules that block child process creation from Office applications
  • Apply application control policies (Windows Defender Application Control or AppLocker) to restrict script host execution
bash
# Configuration example
# Verify the November 2023 cumulative update is installed (run in elevated PowerShell)
Get-HotFix | Where-Object { $_.InstalledOn -ge '2023-11-14' } | Sort-Object InstalledOn -Descending

# Restrict standard user execution of Windows Script Host via registry
New-Item -Path 'HKLM:\SOFTWARE\Microsoft\Windows Script Host\Settings' -Force
Set-ItemProperty -Path 'HKLM:\SOFTWARE\Microsoft\Windows Script Host\Settings' -Name 'Enabled' -Value 0 -Type DWord

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.