CVE-2022-41128
High · 8.8 CISA KEVCVSS
8.8
EPSS
24.6%
Published
Nov 9, 2022
CISA due date
Dec 9, 2022
Cloudanix analysis
An unpatched Windows computer can be taken over when a user opens a specially crafted malicious link or file.
- Exploitation
- Requires User Interaction
- Attacker needs
- None
- Complexity
- Trivial
- Impact
- Remote Code Execution
- Component
- Application
- Class
- Memory Corruption
- Remediation
- Patch
- Effort
- Low
- Patch risk
- Low
What it actually does
CVE-2022-41128 is a remote code execution vulnerability in Microsoft Windows scripting language components. The flaw is associated with memory corruption during handling of crafted script content, allowing attacker-controlled code to execute in the context of the user who opens or previews malicious content. Because exploitation requires user interaction but no prior authentication, an attacker can trigger the bug through a malicious web page, HTML content, script-bearing document, or other content rendered by vulnerable Windows scripting components. Successful exploitation can provide full user-context code execution, enabling data theft, payload installation, lateral movement preparation, and, where the user has elevated privileges, broader system compromise.
Why it matters to the business
This vulnerability affects a broad range of Windows desktop and server versions, including Windows 7, 8.1, 10, 11, and multiple Windows Server releases. It is listed in CISA KEV, has known in-the-wild exploitation, and had a federal remediation deadline of 2022-12-09, making unpatched systems a high-priority exposure. In practical terms, a user opening a malicious link or file can result in malware execution, credential theft, endpoint compromise, and potential expansion into ransomware or espionage operations, even though this CVE is not specifically marked as used in ransomware campaigns.
How an attack unfolds
An attacker prepares malicious script or HTML content designed to trigger memory corruption in the Windows scripting language engine. They deliver the content through phishing email, malicious attachments, compromised websites, drive-by download pages, instant messaging, or documents that cause embedded script content to be rendered. When a victim opens the file, follows the link, or previews the content using a vulnerable Windows component, the crafted script corrupts memory and redirects execution to attacker-controlled shellcode or a payload loader. The resulting code runs with the privileges of the current user. The attacker typically uses that initial execution to download additional malware, establish persistence, collect browser and Windows credentials, run discovery commands, or stage tools for privilege escalation and lateral movement. Public reporting and KEV status indicate that exploitation has occurred in the wild, so incident responders should treat vulnerable, exposed endpoints that interacted with suspicious script or web content as potentially compromised.
How to fix it
Apply the Microsoft security updates released for CVE-2022-41128 across all affected Windows endpoints and servers. Prioritize internet-facing systems, user workstations, VDI images, systems used for email or web browsing, and servers where administrators may open files or browse the web. Because fixed versions are not provided in the input, use Microsoft Security Update Guide guidance for the exact cumulative update applicable to each Windows release and ensure superseding cumulative updates are installed. Retire or isolate unsupported Windows versions such as Windows 7, Windows 8.1, and Windows Server 2008 unless covered by extended security updates. Where immediate patching is not possible, reduce exposure by restricting script execution, hardening browser and email attachment handling, disabling unnecessary script interpreters where operationally feasible, using attack surface reduction rules, blocking Office macros from the internet, and enforcing least privilege for users. Mitigations should be treated as temporary; patching is the required remediation.
How to confirm the fix worked
Confirm remediation by verifying that each affected Windows system has installed the Microsoft cumulative security update that includes the November 2022 fix for CVE-2022-41128 or a later superseding update. Validate through centralized patch management, Windows Update history, Microsoft Defender Vulnerability Management, configuration management tools, or authenticated vulnerability scanning. Check OS build and patch level against Microsoft Security Update Guide entries for the relevant Windows release. Re-scan representative endpoints and servers after patch deployment to confirm the vulnerability is no longer reported. For unsupported operating systems, verify compensating controls and document exception status, but do not consider the exposure fully remediated unless a vendor-supported security update or migration is completed.
Typical attack path
- Identify organizations or users likely to run vulnerable Windows versions or unpatched scripting components.
- Create malicious HTML, script, document, or web content that triggers the Windows scripting language memory corruption flaw.
- Deliver the content through phishing, a malicious link, compromised website, attachment, or social engineering message.
- Wait for the victim to open, preview, or browse to the crafted content.
- Exploit the memory corruption condition to execute code in the victim user's security context.
- Launch a downloader, script interpreter, or malware payload from the compromised process.
- Establish persistence, steal credentials or data, perform host reconnaissance, and attempt privilege escalation or lateral movement.
How to detect it
Investigate endpoints that were unpatched after November 2022 and had suspicious user-driven content execution. Useful log sources include EDR process telemetry, Windows Security logs, Sysmon, PowerShell logs, browser history and download records, email security gateway logs, proxy and DNS logs, Windows Defender event logs, and file creation telemetry in user profile temporary and download directories. Focus on browser, email client, Office, or script-host processes spawning unexpected child processes such as powershell.exe, cmd.exe, wscript.exe, cscript.exe, mshta.exe, rundll32.exe, regsvr32.exe, certutil.exe, bitsadmin.exe, curl.exe, or wget.exe. Look for suspicious downloads immediately after a user opens an email attachment or visits a newly registered, uncategorized, or compromised site. In Windows event data, correlate process creation events, script block logging, AMSI detections, Defender alerts, and network connections from scripting or browser processes to unusual domains or IP addresses. Because no single public, CVE-specific file hash or domain is inherent to the vulnerability, prioritize behavior-based detections around script-engine exploitation followed by payload staging, credential access, persistence creation, and outbound command-and-control traffic.
- iexplore.exe spawning powershell.exe
- iexplore.exe spawning cmd.exe
- msedge.exe spawning powershell.exe
- chrome.exe spawning powershell.exe
- firefox.exe spawning powershell.exe
- outlook.exe spawning powershell.exe
- winword.exe spawning powershell.exe
- excel.exe spawning powershell.exe
- powerpnt.exe spawning powershell.exe
- wscript.exe spawning powershell.exe
- cscript.exe spawning powershell.exe
- mshta.exe spawning powershell.exe
- rundll32.exe javascript:
- regsvr32.exe /i:http
- regsvr32.exe /i:https
- certutil.exe -urlcache -f
- bitsadmin /transfer
- powershell.exe -enc
- powershell.exe -EncodedCommand
- powershell.exe -nop -w hidden
- powershell.exe -NoProfile -WindowStyle Hidden
- AppData\Local\Temp\*.hta
- AppData\Local\Temp\*.js
- AppData\Local\Temp\*.jse
- AppData\Local\Temp\*.vbs
- AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup\*.lnk
- HKCU\Software\Microsoft\Windows\CurrentVersion\Run
- HKLM\Software\Microsoft\Windows\CurrentVersion\Run
- Event ID 4688
- Sysmon Event ID 1
- Microsoft-Windows-PowerShell/Operational Event ID 4104
What your security team should do
- Treat this as a high-priority historical KEV exposure: identify all Windows systems missing the November 2022 or later cumulative security updates and remediate immediately.
- Prioritize workstations and systems used for email, browsing, document handling, or administrative access because exploitation requires user interaction with malicious content.
- Hunt for signs of exploitation on systems that were unpatched after publication, especially around suspicious web, email, script, or document-opening events.
- Review EDR telemetry for script engine or browser processes spawning command shells, PowerShell, rundll32, regsvr32, mshta, wscript, cscript, or downloader utilities.
- Strengthen phishing defenses, attachment sandboxing, web filtering, and browser isolation for users at higher risk of targeted attacks.
- Apply Microsoft Attack Surface Reduction rules and least-privilege controls to limit post-exploitation impact.
- Remove, upgrade, or strictly isolate unsupported Windows versions that cannot receive standard security updates.
- Use KEV status and the missed 2022-12-09 CISA due date as justification for executive-level remediation tracking if vulnerable systems remain.
The record
Windows Scripting Languages Remote Code Execution Vulnerability
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|
Related vulnerabilities
- CVE-2026-78402 Stack-based buffer overflow and out-of-bounds write vulnerability in Thales Sentinel Keys… CWE-787
- CVE-2026-119777 A flaw was found in GStreamer's gst-plugins-bad H.266/VVC parser. CWE-787
- CVE-2026-104065 Scribus before 1.6.7 contains an out-of-bounds write vulnerability in the importdrw… CWE-787
- CVE-2026-104067 Scribus before 1.6.7 contains an out-of-bounds memory access vulnerability in the… CWE-787
- CVE-2026-104066 Scribus before 1.6.7 contains a heap buffer overflow vulnerability in the Mac PICT image… CWE-787
- CVE-2026-104061 Scribus before 1.6.7 contains a heap out-of-bounds write vulnerability in the… CWE-787
- CVE-2026-104062 Scribus before 1.6.7 contains a heap buffer overflow vulnerability in the PICT image… CWE-787
- CVE-2026-61627 libass is a portable subtitle renderer for the `ASS`/SSA (Advanced Substation… CWE-787