{"id":"CVE-2018-17566","aliases":["EUVD-2022-2925","GHSA-75fm-52mm-q5rm"],"status":"published","title":"ThinkPHP SQL injection vulnerability","description":"In ThinkPHP 5.1.24, the inner function delete can be used for SQL injection when its WHERE condition's value can be controlled by a user's request.","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.01537,"percentile":0.75045,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":false},"cwes":["CWE-89"],"published":"2018-09-26T21:00:00Z","modified":"2026-10-24T10:49:33Z","affected":[{"source":"ghsa","ecosystem":"Packagist","package":"topthink/framework","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"5.1.24"},{"last_affected":"5.1.24"}]}],"versions":["5.1.24"]},{"source":"osv","ecosystem":"Packagist","package":"topthink/framework","versions":["5.1.24"]}],"products":[{"vendor":"thinkphp","product":"thinkphp"}],"references":[{"url":"https://github.com/top-think/think/issues/858","tags":["x_refsource_MISC","x_transferred","Exploit","Third Party Advisory","evidence","web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2018-17566","tags":["advisory"]},{"url":"https://github.com/advisories/GHSA-75fm-52mm-q5rm"},{"url":"https://github.com/top-think/framework","tags":["package"]}],"sources":{"cve":[{"id":"CVE-2018-17566","description":"In ThinkPHP 5.1.24, the inner function delete can be used for SQL injection when its WHERE condition's value can be controlled by a user's request.","status":"published","published":"2018-09-26T21:00:00Z","modified":"2024-08-05T10:54:10.206Z","updated_at":"2026-11-02T14:35:07.672841Z"}],"euvd":[{"id":"EUVD-2022-2925","description":"In ThinkPHP 5.1.24, the inner function delete can be used for SQL injection when its WHERE condition's value can be controlled by a user's request.","status":"published","published":"2018-09-26T21:00:00Z","modified":"2024-08-05T10:54:10Z","updated_at":"2026-11-03T02:39:37.709725Z"}],"ghsa":[{"id":"GHSA-75fm-52mm-q5rm","title":"ThinkPHP SQL injection vulnerability","description":"In ThinkPHP 5.1.24, the inner function delete can be used for SQL injection when its WHERE condition's value can be controlled by a user's request.","status":"published","published":"2022-05-14T01:57:50Z","modified":"2024-04-24T23:02:35Z","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:46.667202Z"}],"nvd":[{"id":"CVE-2018-17566","description":"In ThinkPHP 5.1.24, the inner function delete can be used for SQL injection when its WHERE condition's value can be controlled by a user's request.","status":"published","published":"2018-09-26T21:29:02.257Z","modified":"2026-06-17T01:46:01.947Z","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:42.52179Z"}],"osv":[{"id":"CVE-2018-17566","description":"In ThinkPHP 5.1.24, the inner function delete can be used for SQL injection when its WHERE condition's value can be controlled by a user's request.","status":"published","published":"2018-09-26T21:29:02.257Z","modified":"2026-10-24T10:49:33.451213048Z","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-75fm-52mm-q5rm","title":"ThinkPHP SQL injection vulnerability","description":"In ThinkPHP 5.1.24, the inner function delete can be used for SQL injection when its WHERE condition's value can be controlled by a user's request.","status":"published","published":"2022-05-14T01:57:50Z","modified":"2024-04-24T23:28:21.674348Z","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:40.657155Z"}]}}
