{"id":"CVE-2020-20120","aliases":["EUVD-2021-2091","GHSA-m7h5-fjjq-559f"],"status":"published","title":"SQL Injection in topthink/thinkphp","description":"ThinkPHP v3.2.3 and below contains a SQL injection vulnerability which is triggered when the array is not passed to the \"where\" and \"query\" methods.","severity":{"version":"3.1","score":9.8,"vector":"CVSS:3.1/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-11","score":0.01822,"percentile":0.79045,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":false},"cwes":["CWE-89"],"published":"2021-09-28T22:05:09Z","modified":"2026-10-24T10:50:37Z","affected":[{"source":"ghsa","ecosystem":"Packagist","package":"topthink/thinkphp","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"last_affected":"3.2.3"}]}]},{"source":"osv","ecosystem":"Packagist","package":"topthink/thinkphp","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"last_affected":"3.2.3"}]}],"versions":["3.2.2","3.2.3"]}],"products":[{"vendor":"thinkphp","product":"thinkphp"}],"references":[{"url":"https://github.com/top-think/thinkphp/issues/553","tags":["x_refsource_MISC","x_transferred","Exploit","Third Party Advisory","evidence","web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2020-20120","tags":["advisory"]},{"url":"https://github.com/advisories/GHSA-m7h5-fjjq-559f"},{"url":"https://github.com/top-think/thinkphp","tags":["package"]}],"sources":{"cve":[{"id":"CVE-2020-20120","description":"ThinkPHP v3.2.3 and below contains a SQL injection vulnerability which is triggered when the array is not passed to the \"where\" and \"query\" methods.","status":"published","published":"2021-09-28T22:05:09Z","modified":"2024-08-04T14:15:28.871Z","updated_at":"2026-11-02T14:35:45.763329Z"}],"euvd":[{"id":"EUVD-2021-2091","description":"ThinkPHP v3.2.3 and below contains a SQL injection vulnerability which is triggered when the array is not passed to the \"where\" and \"query\" methods.","status":"published","published":"2021-09-28T22:05:09Z","modified":"2024-08-04T14:15:28Z","updated_at":"2026-11-03T03:07:24.770982Z"}],"ghsa":[{"id":"GHSA-m7h5-fjjq-559f","title":"SQL Injection in topthink/thinkphp","description":"ThinkPHP v3.2.3 and below contains a SQL injection vulnerability which is triggered when the array is not passed to the \"where\" and \"query\" methods.","status":"published","published":"2021-09-30T17:11:11Z","modified":"2023-02-01T05:06:20Z","cvss":[{"version":"3.1","score":9.8,"vector":"CVSS:3.1/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:36:38.281533Z"}],"nvd":[{"id":"CVE-2020-20120","description":"ThinkPHP v3.2.3 and below contains a SQL injection vulnerability which is triggered when the array is not passed to the \"where\" and \"query\" methods.","status":"published","published":"2021-09-28T23:15:07.007Z","modified":"2026-06-17T03:02:49.693Z","cvss":[{"version":"3.1","score":9.8,"vector":"CVSS:3.1/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:06:45.704484Z"}],"osv":[{"id":"CVE-2020-20120","description":"ThinkPHP v3.2.3 and below contains a SQL injection vulnerability which is triggered when the array is not passed to the \"where\" and \"query\" methods.","status":"published","published":"2021-09-28T23:15:07.007Z","modified":"2026-10-24T10:50:37.971528081Z","cvss":[{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical"}],"updated_at":"2026-11-02T15:44:15.212689Z"},{"id":"GHSA-m7h5-fjjq-559f","title":"SQL Injection in topthink/thinkphp","description":"ThinkPHP v3.2.3 and below contains a SQL injection vulnerability which is triggered when the array is not passed to the \"where\" and \"query\" methods.","status":"published","published":"2021-09-30T17:11:11Z","modified":"2023-11-08T04:02:48.133577Z","cvss":[{"version":"3.1","score":9.8,"vector":"CVSS:3.1/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:51.463834Z"}]}}
