{"id":"GHSA-j7g8-3qqg-8cvm","aliases":["CVE-2018-18546"],"title":"ThinkPHP SQLi Vulnerability","titleSource":"OSV","descriptionSource":"OSV","declaredSeverity":"CRITICAL","description":"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.","severity":"critical","score":9.8,"published":"2022-05-14T01:53:16.000Z","modified":"2023-11-08T04:00:05.791Z","withdrawn":false,"knownExploited":false,"affected":[{"ecosystem":"Packagist","name":"topthink/framework","sources":[{"name":"OSV · GHSA-j7g8-3qqg-8cvm","url":"https://osv.dev/vulnerability/GHSA-j7g8-3qqg-8cvm"}],"ranges":[{"events":[{"introduced":"0"},{"last_affected":"3.2.4"}],"type":"ECOSYSTEM"}],"versions":[],"fixed":[]}],"sourceAffected":[],"references":["https://nvd.nist.gov/vuln/detail/CVE-2018-18546","https://github.com/top-think/framework/issues/2613","https://github.com/top-think/thinkphp/commit/9748cb80d2f24c89218f358ca2f5ab88ee33396f","https://98587329.github.io/2018/10/09/thinkphp%E6%B3%A8%E5%85%A5%E5%88%86%E6%9E%90"],"sources":[{"name":"OSV","id":"GHSA-j7g8-3qqg-8cvm","modified":"2023-11-08T04:00:05.791246Z","url":"https://osv.dev/vulnerability/GHSA-j7g8-3qqg-8cvm"}],"assessments":[{"source":"OSV","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8}],"products":[],"remediation":[],"kev":{"status":"not-listed","checkedAt":"2026-10-28T19:25:35.956Z"},"coverage":[{"source":"NVD","status":"not-checked"},{"source":"GHSA","status":"not-checked"},{"source":"EUVD","status":"not-checked"},{"source":"EPSS","status":"not-checked"}],"evidence":[]}