CVE-2021-43907 Visual Studio Code WSL Extension Remote Code Execution Vulnerability
An attacker can execute arbitrary code via the Visual Studio Code WSL Extension, posing a risk to developers using this tool.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- None listed
What is CVE-2021-43907?
CVE-2021-43907 is a critical code injection vulnerability in Microsoft Visual Studio Code WSL Extension, published on 15 Dec 2021. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
Visual Studio Code WSL Extension Remote Code Execution Vulnerability
Which versions are affected by CVE-2021-43907?
It affects 1 product.
Products include Microsoft Windows Subsystem for Linux.
How do I fix CVE-2021-43907?
No fix has been published for CVE-2021-43907 yet. Limit exposure of the affected software until one is available.
Upgrade, and never evaluate templates, expressions or code built from user input. More about Code injection.
Is CVE-2021-43907 being exploited?
There is no known exploitation of CVE-2021-43907 in the wild and no public exploit code.
Other vulnerabilities in Microsoft Visual Studio Code WSL Extension
- CVE-2025-62220 Windows Subsystem for Linux GUI Remote Code Execution Vulnerability
- CVE-2026-57968 Windows Subsystem for Linux (WSL2) Kernel Elevation of Privilege Vulnerability
- CVE-2026-85879 Windows Subsystem for Linux Elevation of Privilege Vulnerability
- CVE-2025-53788 Windows Subsystem for Linux (WSL2) Kernel Elevation of Privilege Vulnerability
- CVE-2026-96206 Windows Subsystem for Linux Information Disclosure Vulnerability
Sources
Also known as GHSA-pq7c-f7ch-qfh7.