Security Vulnerability Report
中文
CVE-2025-64671 CVSS 8.4 HIGH

CVE-2025-64671

Published: 2025-12-09 18:16:06
Last Modified: 2025-12-12 13:57:33

Description

Improper neutralization of special elements used in a command ('command injection') in Copilot allows an unauthorized attacker to execute code locally.

CVSS Details

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

Configurations (Affected Products)

cpe:2.3:a:microsoft:github_copilot:*:*:*:*:*:jetbrains:*:* - VULNERABLE
Microsoft Copilot (all versions prior to security update)

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
# CVE-2025-64671 PoC - Microsoft Copilot Command Injection # This PoC demonstrates the command injection vulnerability in Microsoft Copilot # Note: This is for educational and authorized testing purposes only import subprocess import sys def test_copilot_command_injection(): """ Simulates testing for CVE-2025-64671 command injection vulnerability The vulnerability allows injection of OS commands through Copilot input """ # Malicious input that attempts command injection # Attackers can inject commands using command separators malicious_inputs = [ "; whoami", # Command chaining with semicolon " && calc.exe", # Execute calculator via AND " | dir", # Pipe command to list directory "$(whoami)", # Command substitution "`whoami`", # Backtick command substitution "\nid", # Newline injection ] print("[*] CVE-2025-64671 Command Injection Test") print("[*] Target: Microsoft Copilot") print("[*] Testing for improper input sanitization") print("-" * 50) for i, payload in enumerate(malicious_inputs, 1): print(f"\n[Test {i}] Testing payload: {repr(payload)}") # In real scenario, this would be sent to Copilot # For safety, we only print what would happen print(f"[+] Payload would be sent to Copilot: {payload}") # Simulate potential command execution # DO NOT EXECUTE IN PRODUCTION print("[-] Simulating command injection...") print(f"[~] If vulnerable, the following command would execute") print(f"[~] Command: copilot-command {payload}") print("\n[*] Mitigation: Apply Microsoft security updates") print("[*] Reference: https://msrc.microsoft.com/update-guide/vulnerability/CVE-2025-64671") if __name__ == "__main__": test_copilot_command_injection()

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-64671", "sourceIdentifier": "[email protected]", "published": "2025-12-09T18:16:06.417", "lastModified": "2025-12-12T13:57:32.803", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "Improper neutralization of special elements used in a command ('command injection') in Copilot allows an unauthorized attacker to execute code locally."}], "metrics": {"cvssMetricV31": [{"source": "[email protected]", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H", "baseScore": 8.4, "baseSeverity": "HIGH", "attackVector": "LOCAL", "attackComplexity": "LOW", "privilegesRequired": "NONE", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "HIGH", "integrityImpact": "HIGH", "availabilityImpact": "HIGH"}, "exploitabilityScore": 2.5, "impactScore": 5.9}, {"source": "[email protected]", "type": "Primary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H", "baseScore": 7.8, "baseSeverity": "HIGH", "attackVector": "LOCAL", "attackComplexity": "LOW", "privilegesRequired": "LOW", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "HIGH", "integrityImpact": "HIGH", "availabilityImpact": "HIGH"}, "exploitabilityScore": 1.8, "impactScore": 5.9}]}, "weaknesses": [{"source": "[email protected]", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-77"}]}], "configurations": [{"nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:a:microsoft:github_copilot:*:*:*:*:*:jetbrains:*:*", "versionEndExcluding": "1.5.60-243", "matchCriteriaId": "1128B69C-7FF6-4180-A827-6A316FB637AF"}]}]}], "references": [{"url": "https://msrc.microsoft.com/update-guide/vulnerability/CVE-2025-64671", "source": "[email protected]", "tags": ["Vendor Advisory"]}]}}