Live threats

All CVEs / Thinkphp

CVE-2020-20120Thinkphp

Critical 9.8 No auth needed

Priority
74
CVSS 3.1
9.8
EPSS
1.8%
probability of exploitation in 30 days · percentile 79
Auth required
No
Published
Sep 28, 2021
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-89
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Thinkphp.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
Packagist topthink/thinkphp ≤ 3.2.3 no fixed version —

Per OSV / GitHub Advisories (GHSA-m7h5-fjjq-559f). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
thinkphpthinkphp≤ 3.2.3

Official sources

References

Links published by the sources. Open them with care.