CVE-2025-50707
Published: 05 August 2025
Summary
CVE-2025-50707 is a critical-severity Code Injection (CWE-94) vulnerability in Thinkphp Thinkphp. Its CVSS base score is 9.8 (Critical).
Operationally, exploitation aligns with the MITRE ATT&CK technique Exploit Public-Facing Application (T1190); ranked in the top 17.6% of CVEs by exploit likelihood; it is not currently listed in the CISA KEV catalog; a public proof-of-concept is referenced.
The strongest mitigations our analysis identified are NIST 800-53 SI-10 (Information Input Validation) and SI-2 (Flaw Remediation).
Threat & Defense at a Glance
Threat & Defense Details
Mitigating Controls (NIST 800-53 r5)AI
Directly requires timely remediation of the arbitrary code execution flaw in ThinkPHP 3.2.5's index.php component through identification, reporting, and correction of vulnerabilities.
Enforces validation of information inputs to the index.php component, preventing code injection exploits classified under CWE-94.
Implements boundary protection such as web application firewalls to monitor and control network traffic targeting the vulnerable index.php, blocking exploitation attempts.
MITRE ATT&CK Enterprise TechniquesAI
Why these techniques?
Direct RCE in public-facing ThinkPHP web component (CWE-94) enables remote exploitation of the application without auth.
NVD Description
An issue in thinkphp3 v.3.2.5 allows a remote attacker to execute arbitrary code via the index.php component
Deeper analysisAI
CVE-2025-50707 is a critical vulnerability affecting ThinkPHP 3 version 3.2.5, where an issue in the index.php component enables arbitrary code execution. Published on 2025-08-05, it has a CVSS v3.1 base score of 9.8 (AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H) and is classified under CWE-94 (Improper Control of Generation of Code).
A remote attacker can exploit this vulnerability over the network with low complexity, requiring no privileges, authentication, or user interaction. Successful exploitation allows the attacker to execute arbitrary code on the target system, resulting in high impacts to confidentiality, integrity, and availability.
Advisories and additional details are available in the referenced sources, including https://xinyisleep.github.io/2024-07-15/Thinkphp3.%E6%96%87%E4%BB%B6%E5%8C%85%E5%90%AB-CNVD-2024-39045 and https://xinyisleep.github.io/CVE-2025-50707.md.
Details
- CWE(s)