## https://sploitus.com/exploit?id=9BE18673-75A8-54F2-8CB4-0E084BBAC49F
# ๐ฅ CVE-2025-53773 โ Remote Code Execution in GitHub Copilot ๐ฅ
๐
Released: Aug 12 2025
๐ข Vendor: Microsoft / GitHub
โ ๏ธ Severity: **High** (CVSS 7.8)
๐ Weakness: CWE-77 โ Command Injection
๐ฏ Impact: Prompt injection โ Config abuse โ Instant RCE
---
### ๐งฉ Attack Chain
๐ Sneaky Prompt Injection
Attacker hides malicious instructions inside a repo file, comment, or README.
๐ค Copilot โreadsโ the prompt as a command for itself.
โ๏ธ YOLO Mode Activated
๐ Copilot edits its own `config.json` to enable a *YOLO mode* flag.
๐ซ Disables **all** safety approvals.
๐ฃ **Instant Code Execution**
๐ฅ Copilot suggests dangerous code (e.g., `rm -rf /`, `os.system(...)`).
๐ป Runs **immediately**, no questions asked.
๐ฏ **Full Compromise**
๐ Executes with your VS privileges (often full dev access, sometimes admin).
๐ Possible access to your files, tokens, and networks.
---
### ๐จ Why Itโs Dangerous
* **๐ Invisible:** Looks like normal AI suggestions.
* **๐ No Privileges Needed:** Works on a fresh user account.
* **๐ฆ Supply Chain Risk:** Any repo with the crafted prompt can hit *all* devs who open it.
---
### ๐ก Mitigation Steps
* **Update** GitHub Copilot extension & Visual Studio (patch out now).
* **๐ Check config file:**
* **Windows:** `%AppData%\GitHub Copilot\config.json`
* **Linux/macOS:** `~/.config/github-copilot/config.json`
* Look for `"yolo_mode": true` or unknown settings.
* **โป Reset Copilot settings** & re-enable approval prompts.
* **๐ Audit recent AI-generated code** for suspicious shell/system calls.
---
### ๐ต๏ธ Detection Ideas
* ๐ Watch for unexpected writes to Copilotโs `config.json`.
* ๐ฅ Alert if Visual Studio spawns shells (`cmd.exe`, `powershell.exe`, `/bin/sh`).
* ๐งฎ Scan Copilot suggestions for obfuscated or encoded commands.
---