{"id":"CVE-2020-20120","aliases":["CVE-2020-20120","GHSA-m7h5-fjjq-559f"],"related":[],"kind":"vulnerability","state":"published","title":"SQL Injection in topthink/thinkphp","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"es","text":"ThinkPHP versiones v3.2.3 y por debajo, contienen una vulnerabilidad de inyección SQL que es desencadenada cuando no se pasa el array a los métodos \"where\" y \"query\"","source":"nvd"}],"published":"2021-09-28T22:05:09.000Z","modified":"2026-06-17T03:02:49.693Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},"severities":[{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:L/Au:N/C:P/I:P/A:P","score":7.5,"rating":"HIGH"}],"cwes":["CWE-89"],"affected":[{"ranges":[{"version":"n/a","status":"affected"}],"source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","lastAffected":"3.2.3"}],"ecosystem":"Packagist","package":"topthink/thinkphp","purl":"pkg:composer/topthink/thinkphp","source":"ghsa"},{"ranges":[{"status":"affected","lastAffected":"3.2.3"}],"vendor":"thinkphp","product":"thinkphp","cpe":"cpe:2.3:a:thinkphp:thinkphp:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/top-think/thinkphp/issues/553","tags":["exploit","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2020-20120","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/top-think/thinkphp","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"mitre","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2020-20120","url":"https://www.cve.org/CVERecord?id=CVE-2020-20120","licence":"CVE Terms of Use","modified":"2024-08-04T14:15:28.871Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-m7h5-fjjq-559f","url":"https://github.com/advisories/GHSA-m7h5-fjjq-559f","licence":"CC-BY-4.0","modified":"2023-11-08T04:02:48.133Z"},{"source":"nvd","name":"NVD","id":"CVE-2020-20120","url":"https://nvd.nist.gov/vuln/detail/CVE-2020-20120","licence":"Public domain","modified":"2026-06-17T03:02:49.693Z"}],"updatedAt":"2026-11-25T22:57:58.405Z","epss":{"score":0.01822,"percentile":0.79421,"date":"2026-12-02T12:00:21.000Z"}}