Packagist (PHP)Worst: Critical19 advisories
topthink/framework: known vulnerabilities
topthink/framework has 19 reviewed security advisories in the GitHub Advisory Database — 15 critical, 3 high, 1 moderate. The most recent was published 2025-08-05. Each one below lists the affected version range, the release that fixes it, its CVE and severity. SkyShield matches these against the topthink/framework versions running across your servers, containers and images, and ranks what to patch first.
How to fix topthink/framework
Upgrade topthink/framework to a release at or above the fixed version shown for each advisory below. For Packagist (PHP):
composer require topthink/framework:^6.0.17 (composer audit)
SkyShield checks the installed version on every machine and container, so you can see which hosts are still on an affected release after you roll the fix out.
Advisories (19)
ThinkPHP Path Traversal Vulnerability
Critical CWE-22
— Affected: up to and including 5.1.41. No fixed release is listed. Published 2025-08-05. GHSA-mrwc-mvr8-9xq5 · CVE-2025-50706
ThinkPHP deserialization vulnerability
Critical 9.8 CWE-502
— Affected: 6.1.3 through 8.0.4. No fixed release is listed. Published 2024-09-09. GHSA-f4wh-359g-4pq7 · CVE-2024-44902
ThinkPHP Cross-Site Scripting Vulnerability
Moderate 6.1 CWE-79
— Affected: before 6.0.17. Fixed in 6.0.17. Published 2024-05-04. GHSA-969f-v7jv-pgj3 · CVE-2024-34467
ThinkPHP Framework vulnerable to remote code execution
Critical 9.8 CWE-22
— Affected: before 6.0.14. Fixed in 6.0.14. Published 2022-12-23. GHSA-p4qr-vq2g-22wp · CVE-2022-47945
Thinkphp has a code logic error
High 8.8 CWE-434
— Affected: 5.1 through 5.1.41. No fixed release is listed. Published 2022-12-06. GHSA-59fh-rjq3-xq7j · CVE-2022-44289
ThinkPHP deserialization vulnerability
Critical 9.8 CWE-502
— Affected: up to and including 6.0.13. No fixed release is listed. Published 2022-09-15. GHSA-qjjj-7g7h-54v3 · CVE-2022-38352
Deserialization of Untrusted Data in topthink/framework
Critical 9.8 CWE-502
— Affected: up to and including 6.0.12. No fixed release is listed. Published 2022-06-29. GHSA-g377-x8rg-c9mf · CVE-2022-33107
Deserialization of Untrusted Data in topthink/framework
Critical 9.8 CWE-502
— Affected: before 6.0.12. Fixed in 6.0.12. Published 2022-05-06. GHSA-3fpv-54ff-wqfj · CVE-2021-23592
Exposure of Resource to Wrong Sphere in ThinkPHP Framework
High 7.5 CWE-284 CWE-668
— Affected: up to and including 5.0.24. No fixed release is listed. Published 2022-03-21. GHSA-69wp-xwm7-69wm · CVE-2022-25481
ThinkPHP Remote Code Execution (RCE) vulnerability
High 8.8
— Affected: up to and including 3.2.3. No fixed release is listed. Published 2022-02-10. GHSA-75jp-87w2-c6x2 · CVE-2021-44892
ThinkPHP5 SQL Injection vulnerability
Critical 9.8 CWE-89
— Affected: 5.0 through 5.1.22. No fixed release is listed. Published 2021-12-15. GHSA-q868-c4vw-qjx3 · CVE-2021-44350
Deserialization of Untrusted Data in topthink/framework
Critical 9.8 CWE-502
— Affected: before 6.0.9. Fixed in 6.0.9. Published 2021-12-06. GHSA-33gc-6cw9-w3g4 · CVE-2021-36564
Deserialization of Untrusted Data in topthink/framework
Critical 9.8 CWE-502
— Affected: up to and including 6.0.8. No fixed release is listed. Published 2021-12-06. GHSA-qrvj-274h-hfcg · CVE-2021-36567
ThinkPHP SQLi Vulnerability
Critical 9.8 CWE-89
— Affected: up to and including 3.2.4. No fixed release is listed. Published 2018-10-21. GHSA-j7g8-3qqg-8cvm · CVE-2018-18546
ThinkPHP SQLi Vulnerability
Critical 9.8 CWE-89
— Affected: up to and including 3.2.4. No fixed release is listed. Published 2018-10-19. GHSA-78q9-24gv-g288 · CVE-2018-18529
ThinkPHP SQLi Vulnerability
Critical 9.8 CWE-89
— Affected: up to and including 5.1.25. No fixed release is listed. Published 2018-10-19. GHSA-7xfj-4jpg-58vf · CVE-2018-18530
ThinkPHP SQL injection vulnerability
Critical 9.8 CWE-89
— Affected versions listed in the advisory. No fixed release is listed. Published 2018-09-26. GHSA-75fm-52mm-q5rm · CVE-2018-17566
ThinkPHP SQL Injection vulnerability
Critical 9.8 CWE-89
— Affected: before 5.1.23. Fixed in 5.1.23. Published 2018-09-03. GHSA-vcm7-88jx-3r39 · CVE-2018-16385
thinkphp SQL Injection via the index.php s parameter
Critical 9.8 CWE-89
— Affected versions listed in the advisory. No fixed release is listed. Published 2018-04-19. GHSA-xvhr-7q4q-qjgp · CVE-2018-10225
Find topthink/framework across your fleet
Install one agent per server and connect your cloud. SkyShield matches your packages and images against GHSA,
CISA KEV and EPSS and shows the fix per machine. Free for one server, then from $49 per server a month.
Start free.