Skip to content
AI / LLM Write-up Advanced

GitHub Copilot: Remote Code Execution via Prompt Injection (CVE-2025-53773)

GitHub Copilot in VS Code could be made to enable its auto-approve mode by writing to the project settings file, after which injected instructions could run commands on the developer's machine. An attacker able to influence content Copilot processes could therefore achieve remote code execution.

embracethered.com

Published on embracethered.com

This post is about an important, but also scary, prompt injection discovery that leads to full system compromise of the developer’s machine in GitHub Copilot and VS Code.

The author, on embracethered.com

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

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

How it worked

Root cause

Likely the agent was allowed to write to its own security-relevant configuration, so injected instructions could turn off approval prompts and then execute commands.

Impact

An attacker could achieve full compromise of the developer's machine, though the text gives no reproduction detail or limits.

What the attacker needed

Copilot agent can write project files; Injected content reaches the agent

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 write-up has not been written yet. The Original tab links to the source.

An AI coding assistant can read files and run commands on your computer. If it can also change its own safety settings, text it reads from somewhere untrusted can tell it to switch off those safeguards and then run harmful commands. This report shows that pattern in GitHub Copilot inside VS Code.

What is AI / LLM?

Prompt injection, data exfiltration and tool abuse in features built on language models, and the ordinary bugs around them.

Similar reports

View all

Same bug class and techniques, clearest first.

AI and LLM vulnerabilities

The lesson behind this report.

Prompt injection, data exfiltration and tool abuse in features built on language models, and the ordinary bugs around them.