{"id":"GHSA-j7g8-3qqg-8cvm","summary":"ThinkPHP SQLi Vulnerability","details":"ThinkPHP 3.2.4 has SQL Injection via the order parameter because the `Library/Think/Db/Driver.class.php` parseOrder function mishandles the key variable.","aliases":["CVE-2018-18546"],"modified":"2023-11-08T04:00:05.791246Z","published":"2022-05-14T01:53:16Z","database_specific":{"github_reviewed":true,"github_reviewed_at":"2023-07-25T17:57:12Z","nvd_published_at":"2018-10-21T01:29:00Z","cwe_ids":["CWE-89"],"severity":"CRITICAL"},"references":[{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2018-18546"},{"type":"WEB","url":"https://github.com/top-think/framework/issues/2613"},{"type":"WEB","url":"https://github.com/top-think/thinkphp/commit/9748cb80d2f24c89218f358ca2f5ab88ee33396f"},{"type":"WEB","url":"https://98587329.github.io/2018/10/09/thinkphp%E6%B3%A8%E5%85%A5%E5%88%86%E6%9E%90"}],"affected":[{"package":{"name":"topthink/framework","ecosystem":"Packagist","purl":"pkg:composer/topthink/framework"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"last_affected":"3.2.4"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/05/GHSA-j7g8-3qqg-8cvm/GHSA-j7g8-3qqg-8cvm.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"}]}