← Vulnerability feed

Vulnerability record · CVE-2020-20120 · published 28 September 2021

CVE-2020-20120: Thinkphp sql injection vulnerability

Thinkphp · Thinkphp

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 3.1 Critical EPSS 1.8% · top 22.3% CWE-89 · SQL injection
9.8CVSS 3.1 base score, v2 7.5
1.8%EPSS exploitation probability, 30 days
NoNot in CISA KEV
1Affected product versions listed by NVD
2References, 2 tagged exploit
17 Jun 2026Last modified by NVD

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:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Affected products

1 vulnerable configurations from NVD's CPE data, grouped by vendor and product.

References

LinkTags
https://github.com/top-think/thinkphp/issues/553 ExploitThird Party Advisory
https://github.com/top-think/thinkphp/issues/553 ExploitThird Party Advisory

Track CVE-2020-20120 inside VULONE

Watch it alongside the ransomware crews, C2 infrastructure and forum chatter that reference it, query it through the API and pull it into your SIEM over TAXII.

Start free Open in platform

Related vulnerabilities

Same products first, then exploited flaws of the same weakness class.

8.8CVE-2019-9082ThinkPHP invokefunction parameter allows remote command executionThinkPHP before 3.2.4, and products built on it such as Open Source BMS v1.1.1, fails to properly restrict the invokefunction route, letting a crafte…KEVEPSS 97%analysed9.8CVE-2025-63888Thinkphp php remote file inclusion vulnerabilityThe read function in file thinkphp\library\think\template\driver\File.php in ThinkPHP 5.0.24 contains a remote code execution vulnerability.EPSS 0.57%9.8CVE-2025-50707Thinkphp code injection vulnerabilityAn issue in thinkphp3 v.3.2.5 allows a remote attacker to execute arbitrary code via the index.php componentEPSS 1.0%9.8CVE-2025-50706Thinkphp code injection vulnerabilityAn issue in thinkphp v.5.1 allows a remote attacker to execute arbitrary code via the routecheck functionEPSS 1.0%9.8CVE-2024-48112Thinkphp deserialization of untrusted data vulnerabilityA deserialization vulnerability in the component \controller\Index.php of Thinkphp v6.1.3 to v8.0.4 allows attackers to execute arbitrary code.EPSS 0.89%9.8CVE-2024-44902Thinkphp deserialization of untrusted data vulnerabilityA deserialization vulnerability in Thinkphp v6.1.3 to v8.0.4 allows attackers to execute arbitrary code.EPSS 4.2%9.8CVE-2022-45982Thinkphp deserialization of untrusted data vulnerabilitythinkphp 6.0.0~6.0.13 and 6.1.0~6.1.1 contains a deserialization vulnerability. This vulnerability allows attackers to execute arbitrary code via a c…EPSS 1.2%9.8CVE-2022-47945Thinkphp path traversal vulnerabilityThinkPHP Framework before 6.0.14 allows local file inclusion via the lang parameter when the language pack feature is enabled (lang_switch_on=true). …EPSS 28%

Source: NIST National Vulnerability Database (record CVE-2020-20120), CISA KEV, FIRST EPSS (scores of 2026-09-28). This page is refreshed as NVD updates the record.