{"id":"CVE-2018-18530","details":"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.","aliases":["GHSA-7xfj-4jpg-58vf"],"modified":"2026-07-08T17:16:59.791178Z","published":"2018-10-19T20:29:00.490Z","references":[{"type":"EVIDENCE","url":"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"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/top-think/framework","events":[{"introduced":"2e684d5fa38bd2d8ee864982f3114a28992da895"},{"last_affected":"2e684d5fa38bd2d8ee864982f3114a28992da895"}],"database_specific":{"cpe":"cpe:2.3:a:thinkphp:thinkphp:5.1.25:*:*:*:*:*:*:*","extracted_events":[{"introduced":"5.1.25"},{"last_affected":"5.1.25"}],"source":"CPE_STRING"}}],"versions":["5.1.25","v5.1.25"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2018-18530.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"}]}