Critical severity · published Sep 28, 2021
CVE-2020-20120
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
9.8
CVSS
1.8%
EPSS
No
On KEV
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.
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Attack vector
Network
Complexity
Low
Privileges
None
User interaction
None
Confidentiality
High
Integrity
High
Availability
High
Scope
Unchanged
Exploitation
Is it being used?
Exploit prediction (EPSS)1.8% · higher than 79% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
TH
Thinkphp · Thinkphp
through 3.2.3 · source: NVD
References
NVD
https://nvd.nist.gov/vuln/detail/CVE-2020-20120
CVE.org
https://www.cve.org/CVERecord?id=CVE-2020-20120
Exploit
https://github.com/top-think/thinkphp/issues/553
More from Thinkphp
8.8
CVE-2019-9082
ThinkPHP Remote Code Execution Vulnerability
9.8
CVE-2018-25270
ThinkPHP 5.0.23 Remote Code Execution via invokefunction
9.8
CVE-2025-63888
The read function in file thinkphp\library\think\template\driver\File.php in ThinkPHP 5.0.24 contains a remote code execution vulnerability
9.8
CVE-2025-50706
An issue in thinkphp v.5.1 allows a remote attacker to execute arbitrary code via the routecheck function
9.8
CVE-2025-50707
An issue in thinkphp3 v.3.2.5 allows a remote attacker to execute arbitrary code via the index.php component
