{"id":"CVE-2018-18530","aliases":["GHSA-7xfj-4jpg-58vf"],"url":"https://o3.security/vulnerability/CVE-2018-18530","summary":"ThinkPHP SQLi Vulnerability","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.","published":"2018-10-19T20:29:00.490Z","modified":"2026-07-08T17:16:59.791178Z","cvss":{"score":9.8,"severity":"CRITICAL","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"},"epss":null,"cisaKev":null,"exploitsKnown":1,"affectedPackages":[{"ecosystem":"Packagist","name":"topthink/framework","fixedVersion":null}],"fix":null,"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"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-07-08T17:16:59.791178Z"}}