CVE-2018-17566
CRITICAL 9.8CVSS 3.0ThinkPHP SQL injection vulnerability
In ThinkPHP 5.1.24, the inner function delete can be used for SQL injection when its WHERE condition's value can be controlled by a user's request.
- Published
- 26 Sep 2018
- Last modified
- 17 Jun 2026
- Assigned by
- cve@mitre.org
- NVD status
- Modified
- Weakness
- CWE-89
- Also known as
- GHSA-75fm-52mm-q5rm
- Sources
- NVDJSONOSV GHSA-75fm-52mm-q5rmJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.0 | CRITICAL 9.8 | CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| OSV | GitHub | CVSS 3.0 | CRITICAL 9.8 | CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | HIGH 7.5 | AV:N/AC:L/Au:N/C:P/I:P/A:P |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | thinkphp | thinkphpcpe:2.3:a:thinkphp:thinkphp:5.1.24:*:*:*:*:*:*:* |
= 5.1.24 | |
| OSV | Packagist | topthink/framework | = 5.1.24 |
References
- https://github.com/top-think/think/issues/858 · Exploit, Third Party Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2018-17566 · ADVISORY
- https://github.com/top-think/framework · PACKAGE
History
- 25 Nov 2026 20:21 UTC · NVD: first stored (published 26 Sep 2018)
- 25 Nov 2026 20:15 UTC · OSV: first stored (published 14 May 2022)