CVE-2025-63889

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…

High · published November 20, 2025

CVSS v3.1
7.5
EPSS
0%
Percentile
24.2
In the wild
Unconfirmed
What it is

⚡ A clever attacker only needs to tweak a file path to access any files on your server! 🚨 Think of it like a sneaky diner who changes their order right before the meal — suddenly, they get served everything that was meant for the entire restaurant instead! This vulnerability permits unauthorized file reading, meaning an attacker could potentially access sensitive configuration files or user data. This could lead to data leaks or further exploitation of your system, making it a recipe for disaster!

Put simply

Think of it like a sneaky diner who changes their order right before the meal — suddenly, they get served everything that was meant for the entire restaurant instead! The fetch function in ThinkPHP 5.0.24 is susceptible to path traversal attacks, allowing attackers to exploit crafted template values to read arbitrary files on the server.

What to do

This vulnerability permits unauthorized file reading, meaning an attacker could potentially access sensitive configuration files or user data. This could lead to data leaks or further exploitation of your system, making it a recipe for disaster! To secure your application, upgrade to ThinkPHP version 5.0.25 or later immediately. Additionally, ensure to validate and sanitize any user inputs that can influence file paths. Conduct an audit of your templates to identify potential vulnerabilities! You've got this! By following these steps, you're well on your way to securing your application! 🛡️

The record
Technical detail
CVSS v3.1
7.5 · HIGH
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
CVSS v4.0
Not supplied
EPSS
0.00324 · 24.2th percentile
Published
2025-11-20T00:00Z
EPSS history
Timeline
  • 20 NOV 00:00Z
    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…
    cvelistv5