Skip to content
RCE Advisory Advanced CVE-2026-21516

GitHub Copilot for Jetbrains Remote Code Execution Vulnerability (CVE-2026-21516)

GitHub Copilot for JetBrains contained a command injection flaw where special elements used in a command were not neutralised. An unauthorised attacker could execute code over a network, though the attack itself is carried out locally.

7resp4ss Follow

Originally disclosed on Microsoft

High 8.8 View original

Description

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

FAQ

According to the CVSS metric, the attack vector is local (AV:L). Why does the CVE title indicate that this is a remote code execution? The word Remote in the title refers to the location of the attacker. This type of exploit is sometimes referred to as Arbitrary Code Execution (ACE). The attack itself is carried out locally. This means an attacker or victim needs to execute code from the local machine to exploit the vulnerability.

Github Copilot

Github Copilot

Microsoft

Microsoft

Customer Action Required

Yes

The original report as published on the Microsoft Security Response Center, by 7resp4ss and Guang Gong with 360 VRI. 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 plugin passed untrusted input into a shell command without neutralising special characters, allowing command injection.

Impact

An attacker could execute arbitrary code, but only after already being able to run code locally on the victim's machine.

What the attacker needed

Local code execution on the victim machine

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 out of input without cleaning it, so an attacker can slip in extra commands. Here the affected product is the GitHub Copilot plugin for JetBrains IDEs, and the result is that code of the attacker's choosing can run. The advisory notes the attacker must already be able to run something on the local machine, so it is not a purely remote attack despite the title.

What is RCE?

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

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.