GitHub Copilot and Visual Studio Code Remote Code Execution Vulnerability (CVE-2025-64660)
An improper access control flaw in GitHub Copilot and Visual Studio Code lets an authenticated attacker place a malicious file in a repository. If a user trusts that file in the editor and asks Copilot for help, code could be executed over the network.
Originally disclosed on Microsoft
Description
Improper access control in GitHub Copilot and Visual Studio Code allows an authorized attacker to execute code over a network.
FAQ
According to the CVSS metric, privileges are required (PR:L) and user interaction is required (UI:R). How could an attacker exploit this remote code execution vulnerability? An authenticated attacker could place a malicious file in the targeted repo. The user would then have to trust the file on Visual Studio Code and ask for assistance from GitHub Copilot.
GitHub Copilot and Visual Studio Code
GitHub Copilot and Visual Studio Code
Microsoft
Microsoft
Customer Action Required
Yes
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 editor and assistant did not properly check what a trusted file was allowed to make the assistant do, so a crafted file could trigger code execution.
Impact
An attacker with an account could achieve code execution over the network, but only if the victim trusts the file and then asks Copilot for help.
What the attacker needed
Attacker has an account; malicious file in the repo; victim trusts the file; victim asks Copilot for help
How it was found
- An authenticated attacker places a malicious file in the targeted repository.
- The user trusts the file in Visual Studio Code.
- The user asks GitHub Copilot for assistance with the file.
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.
Visual Studio Code is a code editor, and GitHub Copilot is an assistant built into it. The flaw means someone with an account could put a harmful file into a project, and if the victim opens and trusts that file and then asks the assistant for help, harmful code could run on the victim's machine.
What is Access control?
A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.