Skip to content
RCE Advisory Advanced CVE-2025-53773

GitHub Copilot and Visual Studio Remote Code Execution Vulnerability (CVE-2025-53773)

GitHub Copilot and Visual Studio contain a command injection flaw that lets an unauthorised attacker execute code locally, but only if the user triggers the payload in the application. The advisory gives no technical detail about the vulnerable component or the injection point.

Johann Rehberger Follow

Originally disclosed on Microsoft

High 7.8 View original

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 locally.

FAQ

According to the CVSS metric, user interaction is required (UI:R). What interaction would the user have to do? Exploitation of this vulnerability requires that a user trigger the payload in the application.

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 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 Johann Rehberger with https://embracethered.com/. 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-influenced input into a command without neutralising special characters, allowing extra commands to run.

Impact

An attacker could execute code locally on the victim's machine, but only after the user triggers the payload in the application.

What the attacker needed

User triggers the payload in the app; local access to the 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 means a program takes input and passes it to the operating system as a command without cleaning it first, so an attacker can sneak in extra commands. Here the attacker needs the victim to do something in the application to trigger the payload, and the code then runs on the victim's own machine rather than on a server.

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 Johann Rehberger

View all

3 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.