Every CVESearch/Get API key

CVE-2020-20120

SQL Injection in topthink/thinkphp

9.8 Critical

CVE-2020-20120 is a critical vulnerability (CVSS 9.8) in Thinkphp, published September 28, 2021. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 1.82%, the 79th percentile. No source names a fixed version.

What does this mean?
Severity
9.8 CriticalCVSS 3.1, NVD
Exploit chance
1.82%EPSS, 79th percentile
Exploitation
None knownNot on CISA’s or ENISA’s lists
Fixed in
No fix listedNo source names one

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.

Attack profile

How easy it is to exploit

Attack vector
Network
Complexity
Low
Privileges needed
None
User interaction
None

What an attacker can affect

Confidentiality
High
Integrity
High
Availability
High

Exploit likelihood

1.82%Up 1.4 points since Sep 29, 2021
90%50%10%1%

Affected products

Affected packages

Affected packages
PackageAffectedFixed
topthink/thinkphp
Packagist
through 3.2.3None known
topthink/thinkphp
Packagist
through 3.2.3, plus listed versions
3.2.2
None known

What each source reports

NVD Score used9.8

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.

Record
CVE-2020-20120
CVSS 3.1
9.8 CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
CVSS 2.0
7.5 HighAV:N/AC:L/Au:N/C:P/I:P/A:P
Weakness
CWE-89
Updated
2026-11-02
CVE ListNo score

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.

Record
CVE-2020-20120
Updated
2026-11-02
EUVDEUVD-2021-2091No score

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.

Record
EUVD-2021-2091
Updated
2026-11-03
GitHub AdvisoriesGHSA-m7h5-fjjq-559f9.8

SQL Injection in topthink/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.

Record
GHSA-m7h5-fjjq-559f
CVSS 3.1
9.8 CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Weakness
CWE-89
Updated
2026-11-02
OSV9.8

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.

Record
CVE-2020-20120
CVSS 3.1
9.8 CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Updated
2026-11-02
OSVGHSA-m7h5-fjjq-559f9.8

SQL Injection in topthink/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.

Record
GHSA-m7h5-fjjq-559f
CVSS 3.1
9.8 CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Weakness
CWE-89
Updated
2026-11-02

History

History
RecordedChangedSources
facts
aliasesEUVD
first indexedCVE List, GitHub Advisories, NVD, OSV

Dates are when Every CVE recorded each change. Upstream dates may differ.

References

MoveEnter Open