CVE-2025-63889 Details
Description
The fetch function in file thinkphp\library\think\Template.php in ThinkPHP 5.0.24 allows attackers to read arbitrary files via crafted file path in a template value.
An arbitrary file read vulnerability has been identified in ThinkPHP version 5.0.24. The issue arises in the fetch function of the Template.php file, where attackers can exploit the file inclusion mechanism by crafting specific file paths in template values. This manipulation allows for the execution of the file_get_contents function, enabling the reading of arbitrary files from the server.
Users are advised to update to a version of ThinkPHP that is not vulnerable. If an immediate update is not possible, implement strict path validation in the view() function or the template rendering entry to block directory traversal characters and restrict template paths to legitimate template directories.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Nov 20, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://gist.github.com/Master-0-0/dd63209602f04267f1a27a75a064df26 | [email protected] | MitigationThird Party Advisory |
| https://www.yuque.com/lcc316/df0kgm/xqkrw5rfz5vqxo9t | [email protected] | Permissions Required |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-125 | Out-of-bounds Read | CISA-ADP |
Affected Products
| Product | Versions |
|---|---|
| thinkphp thinkphp | 5.0.24 |
CPE
Remediation
| |
Change History
6 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Nov 5, 2026 | CVE Translated | [email protected] |
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Nov 25, 2025 | Initial Analysis | [email protected] |
| Nov 20, 2025 | CVE Modified | CISA-ADP |
| Nov 20, 2025 | New CVE Received | [email protected] |