Skip to content
RCE Advisory Advanced CVE-2026-21257

GitHub Copilot and Visual Studio Elevation of Privilege Vulnerability (CVE-2026-21257)

A command injection flaw exists in GitHub Copilot and Visual Studio that lets an authorised attacker elevate privileges over a network. Successful exploitation gives the attacker the rights of the user running the affected application.

Tarek Nakkouch Follow

Originally disclosed on Microsoft

High 8.0 View original

Description

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

FAQ

What privileges could be gained by an attacker who successfully exploited the vulnerability? The attacker would gain the rights of the user that is running the affected application.

GitHub Copilot and Visual Studio

GitHub Copilot and Visual Studio

Microsoft

Microsoft

Customer Action Required

Yes

The original report as published on the Microsoft Security Response Center, by Tarek Nakkouch. Images and videos are our own copies; raw HTML is shown as text. View it on Microsoft Security Response Center.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely the application passes user-controlled input into a command without properly neutralising special characters, allowing command injection.

Impact

An authorised attacker could gain the rights of the user running the affected application, potentially leading to privilege escalation.

What the attacker needed

Authorised attacker; network access

The fix

Microsoft marks customer action as required, implying a patch or update should be applied, but the text does not describe the fix itself.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

Command injection happens when a program builds a system command from untrusted input without cleaning it, so an attacker can slip in extra commands. Here, someone who already has some access could use that to run code with the permissions of the person using the affected application, which is a step up in power.

What is RCE?

Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.

More by Tarek Nakkouch

View all

5 more disclosed reports, best first.

More from Microsoft

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Remote code execution

The lesson behind this report.

Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.