CVE-2025-50706
ThinkPHP Path Traversal Vulnerability
An issue in thinkphp v.5.1 allows a remote attacker to execute arbitrary code via the routecheck function
Attack profile
How easy it is to exploit
- Attack vector
- Network
- Complexity
- Low
- Privileges needed
- None
- User interaction
- None
What an attacker can affect
- Confidentiality
- High
- Integrity
- High
- Availability
- High
Exploit likelihood
What each source reports
CVE List Score used
9.8
An issue in thinkphp v.5.1 allows a remote attacker to execute arbitrary code via the routecheck function
- Record
CVE-2025-50706- CVSS 3.1
- 9.8 Critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H - Weakness
- CWE-94
- Updated
- 2026-11-02
EUVDEUVD-2025-23628
9.8
An issue in thinkphp v.5.1 allows a remote attacker to execute arbitrary code via the routecheck function
- Record
EUVD-2025-23628- CVSS 3.1
- 9.8 Critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
GitHub AdvisoriesGHSA-mrwc-mvr8-9xq5
9.3
ThinkPHP Path Traversal Vulnerability
An issue in ThinkPHP Framework v.5.1 allows a remote attacker to execute arbitrary code via the routecheck function.
- Record
GHSA-mrwc-mvr8-9xq5- CVSS 4.0
- 9.3 Critical
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N - Weakness
- CWE-22
- Updated
- 2026-11-02
NVD
9.8
An issue in thinkphp v.5.1 allows a remote attacker to execute arbitrary code via the routecheck function
- Record
CVE-2025-50706- CVSS 3.1
- 9.8 Critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H - Weakness
- CWE-94
- Updated
- 2026-11-02
OSV
9.8
An issue in thinkphp v.5.1 allows a remote attacker to execute arbitrary code via the routecheck function
- Record
CVE-2025-50706- CVSS 3.1
- 9.8 Critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
OSVGHSA-mrwc-mvr8-9xq5
9.3
ThinkPHP Path Traversal Vulnerability
An issue in ThinkPHP Framework v.5.1 allows a remote attacker to execute arbitrary code via the routecheck function.
- Record
GHSA-mrwc-mvr8-9xq5- CVSS 4.0
- 9.3 Critical
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N - Weakness
- CWE-22
- Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
topthink/frameworkPackagist |
through 5.1.41 | None known |
topthink/frameworkPackagist |
through 5.1.41, plus listed versions 5.05.0-rc15.0-rc25.0-rc35.0-rc4 Show 45 moreShow lessv5.0.1v5.0.10v5.0.11v5.0.12v5.0.13v5.0.14v5.0.15v5.0.16v5.0.17v5.0.18v5.0.19v5.0.2v5.0.20v5.0.21v5.0.22v5.0.23v5.0.24v5.0.25v5.0.3v5.0.4v5.0.5v5.0.6v5.0.7v5.0.8v5.0.9v5.1-beta.1v5.1-rc.1v5.1-rc.2v5.1-rc.3v5.1.0v5.1.1v5.1.10v5.1.11v5.1.12v5.1.13v5.1.14v5.1.15v5.1.16v5.1.17v5.1.18v5.1.19v5.1.2v5.1.20v5.1.21v5.1.22 |
None known |
History
| Recorded | Changed | Sources |
|---|---|---|
| first indexed | CVE List, EUVD, GitHub Advisories, NVD, OSV |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2025-50706 is a critical vulnerability (CVSS 9.8) in Thinkphp, published August 5, 2025. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 1.19%, the 68th percentile. No source names a fixed version.
References
xinyisleep.github.io/2024-04-24/Thinkphp5.1%E6%96%87%E4%BB%B6%E5%8C%85%E5%90%AB-CNVD-2024-29981
xinyisleep.github.io/CVE-2025-50706.md
nvd.nist.gov/vuln/detail/CVE-2025-50706
github.com/advisories/GHSA-mrwc-mvr8-9xq5
github.com/CVEProject/cvelistV5/tree/main/cves/2025/50xxx/CVE-2025-50706.json
github.com/top-think/framework
Left out here: 28 versions. The JSON record has them.