{"id":"CVE-2018-16385","aliases":["EUVD-2022-5342","GHSA-vcm7-88jx-3r39"],"status":"published","title":"ThinkPHP SQL Injection vulnerability","description":"ThinkPHP before 5.1.23 allows SQL Injection via the public/index/index/test/index query string.","severity":{"version":"3.0","score":9.8,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical","assessor":"primary","from":"nvd"},"epss":{"day":"2026-11-09","score":0.02151,"percentile":0.82269,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":true,"fix_available":true},"cwes":["CWE-89"],"published":"2018-09-03T02:00:00Z","modified":"2026-10-24T10:50:31Z","exploits":[{"source":"pocgithub","id":"buzhimingdeaikun/SQL-ThinkPHP-5.0.24-RCE-","title":"buzhimingdeaikun/SQL-ThinkPHP-5.0.24-RCE-","date":"2026-07-13","url":"https://github.com/buzhimingdeaikun/SQL-ThinkPHP-5.0.24-RCE-"}],"fixes":[{"ecosystem":"Packagist","package":"topthink/framework","fixed_in":["5.1.23"],"sources":["ghsa","osv"]}],"affected":[{"source":"ghsa","ecosystem":"Packagist","package":"topthink/framework","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"5.1.23"}]}]},{"source":"osv","ecosystem":"Packagist","package":"topthink/framework","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"5.1.23"}]}],"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.3","v5.1.4","v5.1.5","v5.1.6","v5.1.7","v5.1.8","v5.1.9"]}],"products":[{"vendor":"thinkphp","product":"thinkphp"}],"references":[{"url":"https://github.com/top-think/framework/issues/1375","tags":["x_refsource_MISC","x_transferred","Exploit","Third Party Advisory","evidence","web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2018-16385","tags":["advisory"]},{"url":"https://exchange.xforce.ibmcloud.com/vulnerabilities/149288","tags":["Third Party Advisory","advisory","web"]},{"url":"https://github.com/advisories/GHSA-vcm7-88jx-3r39"},{"url":"https://github.com/top-think/framework","tags":["package"]}],"sources":{"cve":[{"id":"CVE-2018-16385","description":"ThinkPHP before 5.1.23 allows SQL Injection via the public/index/index/test/index query string.","status":"published","published":"2018-09-03T02:00:00Z","modified":"2024-08-05T10:24:31.919Z","updated_at":"2026-11-02T14:35:11.426178Z"}],"euvd":[{"id":"EUVD-2022-5342","description":"ThinkPHP before 5.1.23 allows SQL Injection via the public/index/index/test/index query string.","status":"published","published":"2018-09-03T02:00:00Z","modified":"2024-08-05T10:24:31Z","updated_at":"2026-11-03T02:39:41.750379Z"}],"ghsa":[{"id":"GHSA-vcm7-88jx-3r39","title":"ThinkPHP SQL Injection vulnerability","description":"ThinkPHP before 5.1.23 allows SQL Injection via the `public/index/index/test/index` query string.","status":"published","published":"2022-05-14T02:03:04Z","modified":"2024-05-04T05:02:26Z","cvss":[{"version":"3.0","score":9.8,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical"}],"cwes":["CWE-89"],"updated_at":"2026-11-02T14:37:48.08826Z"}],"nvd":[{"id":"CVE-2018-16385","description":"ThinkPHP before 5.1.23 allows SQL Injection via the public/index/index/test/index query string.","status":"published","published":"2018-09-03T02:29:00.487Z","modified":"2026-06-17T01:44:11.85Z","cvss":[{"version":"3.0","score":9.8,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical","assessor":"primary"},{"version":"2.0","score":7.5,"vector":"AV:N/AC:L/Au:N/C:P/I:P/A:P","level":"high","assessor":"primary"}],"cwes":["CWE-89"],"updated_at":"2026-11-02T14:04:38.672108Z"}],"osv":[{"id":"CVE-2018-16385","description":"ThinkPHP before 5.1.23 allows SQL Injection via the public/index/index/test/index query string.","status":"published","published":"2018-09-03T02:29:00.487Z","modified":"2026-10-24T10:50:31.886811934Z","cvss":[{"version":"3.0","score":9.8,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical"}],"updated_at":"2026-11-02T15:44:08.533609Z"},{"id":"GHSA-vcm7-88jx-3r39","title":"ThinkPHP SQL Injection vulnerability","description":"ThinkPHP before 5.1.23 allows SQL Injection via the `public/index/index/test/index` query string.","status":"published","published":"2022-05-14T02:03:04Z","modified":"2024-04-24T23:28:21.605745Z","cvss":[{"version":"3.0","score":9.8,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical"}],"cwes":["CWE-89"],"updated_at":"2026-11-02T15:46:56.981655Z"}]}}
