CVE-2018-18530
CRITICALThinkPHP 5.1.25 - SQL Injection via Count Parameter
Title source: llmDescription
ThinkPHP 5.1.25 has SQL Injection via the count parameter because the library/think/db/Query.php aggregate function mishandles the aggregate variable. NOTE: a backquote character is required in the attack URI.
References (1)
Core 1
Core References
Exploit, Third Party Advisory x_refsource_misc
https://www.kingkk.com/2018/10/Thinkphp-%E8%81%9A%E5%90%88%E6%9F%A5%E8%AF%A2%E6%BC%8F%E6%B4%9E/#ThinkPHP5-lt-5-1-25
Scores
CVSS v3
9.8
EPSS
0.0120
EPSS Percentile
64.8%
Attack Vector
NETWORK
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Details
CWE
CWE-89
Status
published
Products (2)
thinkphp/thinkphp
5.1.25
topthink/framework
0Packagist
Published
Oct 19, 2018
Tracked Since
Feb 18, 2026