Skip to main content

Uninstall WSL

Purpose

This solution provides an option to uninstall WSL manually or using automation.

Associated Content

ContentTypeFunction
CVE-2025-24084 - WSL2 UninstallScriptThis script uninstalls the Windows Subsystem Linux (WSL2) as it has a vulnerability. Refer to the article below for more details:
https://msrc.microsoft.com/update-guide/vulnerability/CVE-2025-24084CVE ArticleCVE‑2025‑24084 is a high‑severity (CVSS 3.1 score 8.4) untrusted pointer dereference vulnerability in the Windows Subsystem for Linux (WSL2) kernel that allows a local attacker to execute arbitrary code with elevated privileges.
WSL DetectionRemote MonitorThis remote monitor detects the Windows agent where the WSL command works.
△ Custom - Execute Script - Uninstall WSLAlert TemplateThis alert template is applied to the remote monitor WSL Detection to uninstall the WSL installed detected agents using Script - CVE-2025-24084 - WSL2 Uninstall

Implementation