CVE-2026-21256

GitHub Copilot and Visual Studio Remote Code Execution Vulnerability

State
Published
Severity
8.8 High
Published
Feb 10, 2026
Updated
Aug 19, 2026
Reserved
Dec 11, 2025

Read the record on cve.org

Description

Improper neutralization of special elements used in a command ('command injection') in GitHub Copilot and Visual Studio allows an unauthorized attacker to execute code over a network.

Scores

CVSSScoreVectorSource
3.18.8 HighCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H/E:U/RL:O/RC:Cmicrosoft

Weaknesses

  • CWE-77 Improper Neutralization of Special Elements used in a Command ('Command Injection')
  • CWE-94 Improper Control of Generation of Code ('Code Injection')

Affected Products

ProductVersions
Microsoft Visual Studio 2022 version 17.14Microsoft
  • 17.14.0 to before 17.14.26Affected
Microsoft Visual Studio 2026 version 18.3Microsoft
  • 18.3.0 to before 18.3.0Affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.