{"id":"CVE-2018-18530","title":"ThinkPHP 5.1.25 has SQL Injection via the count parameter because the library/think/db/Query.php aggregate function mishandles the aggregate","published":"2018-10-19T16:29:00.490Z","updated":"2026-06-16T21:47:27.703Z","severity":"critical","cvssScore":9.8,"epss":0.01202,"epssPct":0.68654,"kev":false,"maturity":"none","actionScore":39,"primaryVendor":"thinkphp","primaryProduct":"thinkphp","cweId":"CWE-89","fixAvailable":false,"tags":["pre-auth","sqli","remote","no-ui"],"epssDelta7":0,"summary":"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.","cvssVector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","cvssVersion":"3.0","cvssSource":"nvd-primary","cweName":"Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')","kevAdded":null,"kevDue":null,"kevRansomware":null,"source":"nvd","cna":"mitre","ssvc":null,"sources":{"cna":"2024-09-17T00:35:42.077Z","osv":"2026-11-13T03:18:18.039Z","epss":"2026-11-12","cna_seen":"2026-09-29T10:51:51.218Z"},"cvssCna":null,"hasPatchRef":false,"credits":[],"counts":{"exploitdb":0,"metasploit":0,"nuclei":0,"githubPoc":0},"products":[{"vendor":"thinkphp","product":"thinkphp","cpe":"cpe:2.3:a:thinkphp:thinkphp"}],"references":[],"exploits":[],"analysis":null,"affectedVersions":[{"vendor":"thinkphp","product":"thinkphp","version":"5.1.25","vsi":null,"vse":null,"vei":null,"vee":null}],"source_attribution":"NVD (NIST), CVE Program, CISA KEV, FIRST EPSS, OSV. Aggregated by Noroxi."}