{"id":"GHSA-7xfj-4jpg-58vf","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.","aliases":["CVE-2018-18530"],"modified":"2023-11-01T04:49:13.326166Z","published":"2022-05-14T01:53:42Z","database_specific":{"github_reviewed":true,"github_reviewed_at":"2023-07-25T17:52:15Z","nvd_published_at":"2018-10-19T20:29:00Z","cwe_ids":["CWE-89"],"severity":"CRITICAL"},"references":[{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2018-18530"},{"type":"WEB","url":"https://github.com/top-think/framework/issues/2613"},{"type":"WEB","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":[{"package":{"name":"topthink/framework","ecosystem":"Packagist","purl":"pkg:composer/topthink/framework"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"last_affected":"5.1.25"}]}],"versions":["5.0","5.0-rc1","5.0-rc2","5.0-rc3","5.0-rc4","v5.0.1","v5.0.10","v5.0.11","v5.0.12","v5.0.13","v5.0.14","v5.0.15","v5.0.16","v5.0.17","v5.0.18","v5.0.19","v5.0.2","v5.0.20","v5.0.21","v5.0.22","v5.0.23","v5.0.24","v5.0.25","v5.0.3","v5.0.4","v5.0.5","v5.0.6","v5.0.7","v5.0.8","v5.0.9","v5.1-beta.1","v5.1-rc.1","v5.1-rc.2","v5.1-rc.3","v5.1.0","v5.1.1","v5.1.10","v5.1.11","v5.1.12","v5.1.13","v5.1.14","v5.1.15","v5.1.16","v5.1.17","v5.1.18","v5.1.19","v5.1.2","v5.1.20","v5.1.21","v5.1.22","v5.1.23","v5.1.24","v5.1.25","v5.1.3","v5.1.4","v5.1.5","v5.1.6","v5.1.7","v5.1.8","v5.1.9"],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/05/GHSA-7xfj-4jpg-58vf/GHSA-7xfj-4jpg-58vf.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"}]}