CVE-2020-20120: SQL Injection in topthink/thinkphp

Published Sep 28, 2021
·
Updated

SQL Injection in topthink/thinkphp

Other sources

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.

— MITRE

Affected Software

3 affected components
ThinkPHP ThinkPHP<=3.2.3
composer/topthink/thinkphp<=3.2.3
composer/topthink/thinkphp<=3.2.3

Event History

Sep 28, 2021
CVE Published
via MITRE·10:05 PM
Data Sourced
via MITRE·10:05 PM
Description
Data Sourced
via NVD·11:15 PM
DescriptionSeverityWeaknessAffected Software
Sep 30, 2021
Advisory Published
via GitHub·05:11 PM
Data Sourced
via GitHub·05:11 PM
DescriptionSeverityWeaknessAffected Software
Data Sourced
via Packagist·05:11 PM
DescriptionSeverityAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2020-20120?

CVE-2020-20120 has a severity level of critical.

2

How does CVE-2020-20120 affect ThinkPHP?

CVE-2020-20120 affects ThinkPHP versions up to and including 3.2.3.

3

How is CVE-2020-20120 triggered?

CVE-2020-20120 is triggered when the array is not passed to the "where" and "query" methods.

4

What is the Common Weakness Enumeration (CWE) ID for CVE-2020-20120?

CVE-2020-20120 has a CWE ID of 89.

5

Is there a fix available for CVE-2020-20120?

Yes, a fix is available. Please refer to the provided reference link for more information.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203