Advisory Database
  • Advisories
  • Dependency Scanning
  1. composer
  2. ›
  3. topthink/thinkphp
  4. ›
  5. CVE-2020-20120

CVE-2020-20120: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')

September 30, 2021 (updated October 7, 2021)

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.

References

  • github.com/advisories/GHSA-m7h5-fjjq-559f
  • github.com/top-think/thinkphp/issues/553
  • nvd.nist.gov/vuln/detail/CVE-2020-20120

Code Behaviors & Features

Detect and mitigate CVE-2020-20120 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions up to 3.2.3

Solution

Unfortunately, there is no solution available yet.

Impact 9.8 CRITICAL

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')

Source file

packagist/topthink/thinkphp/CVE-2020-20120.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:15:44 +0000.