Command Injection in Visual Studio - CVE-2026-21257

 

Command Injection in Visual Studio - CVE-2026-21257

Published: February 10, 2026


Vulnerability identifier: #VU122631
CSH Severity: Medium
CVSS v4: 8.5 [CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N]
CVE-ID: CVE-2026-21257
CWE-ID: CWE-77
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote attacker to execute arbitrary commands on the system.

The vulnerability exists due to insufficient input validation in GitHub Copilot and Visual Studio. A remote user can pass specially crafted data to the application and execute arbitrary commands.


Affected software

Visual Studio

How to mitigate CVE-2026-21257

Install updates from vendor's website.


External References

Related Security Bulletins