{"id":"GHSA-m7h5-fjjq-559f","summary":"SQL Injection in topthink/thinkphp","details":"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.","aliases":["CVE-2020-20120"],"modified":"2023-11-01T04:52:15.834930Z","published":"2021-09-30T17:11:11Z","database_specific":{"cwe_ids":["CWE-89"],"severity":"CRITICAL","github_reviewed":true,"github_reviewed_at":"2021-09-30T16:59:44Z","nvd_published_at":"2021-09-28T23:15:00Z"},"references":[{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2020-20120"},{"type":"WEB","url":"https://github.com/top-think/thinkphp/issues/553"},{"type":"PACKAGE","url":"https://github.com/top-think/thinkphp"}],"affected":[{"package":{"name":"topthink/thinkphp","ecosystem":"Packagist","purl":"pkg:composer/topthink/thinkphp"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"last_affected":"3.2.3"}]}],"versions":["3.2.2","3.2.3"],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2021/09/GHSA-m7h5-fjjq-559f/GHSA-m7h5-fjjq-559f.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"}]}