CVE-2025-63888

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

Critical · published November 20, 2025

CVSS v3.1
9.8
EPSS
1%
Percentile
48.4
In the wild
Unconfirmed
What it is

🔥 A seemingly innocent read function in ThinkPHP 5.0.24 can be your worst nightmare — it’s a remote code execution vulnerability just waiting to happen! Think of it like a restaurant where a guest can not only read the menu but also change the entries and add their own specials without anyone noticing. This flaw allows attackers to slip their own code into the server's operations, bypassing all the usual checks. The implications are absolutely devastating! An attacker could potentially gain full control over the server, allowing them to read sensitive data, alter files, and even execute arbitrary commands. Imagine a rogue chef taking over the kitchen to serve whatever dishes they want, all while the restaurant staff remains oblivious!

Put simply

Think of it like a restaurant where a guest can not only read the menu but also change the entries and add their own specials without anyone noticing. This flaw allows attackers to slip their own code into the server's operations, bypassing all the usual checks. This vulnerability exists in the read function within the File.php driver of ThinkPHP, enabling attackers to run arbitrary code remotely by manipulating file paths and contents. Essentially, it bypasses normal security measures, letting malicious code slip through the cracks.

What to do

The implications are absolutely devastating! An attacker could potentially gain full control over the server, allowing them to read sensitive data, alter files, and even execute arbitrary commands. Imagine a rogue chef taking over the kitchen to serve whatever dishes they want, all while the restaurant staff remains oblivious! To safeguard your application, upgrade to ThinkPHP version 5.0.25 immediately. Additionally, review your server settings to ensure no unauthorized file access is permitted. Regular audits on your codebase can also help catch such vulnerabilities early! You've got this! By taking these proactive steps, you can maintain your server's security and keep those pesky attackers at bay! 🛡️

The record
Technical detail
CVSS v3.1
9.8 · CRITICAL
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
CVSS v4.0
Not supplied
EPSS
0.00607 · 48.4th percentile
Published
2025-11-20T00:00Z
EPSS history
Timeline
  • 20 NOV 00:00Z
    The read function in file thinkphp\library\think\template\driver\File.php in ThinkPHP 5.0.24 contains a remote code execution vulnerability
    cvelistv5