Skip to content

SQL Injection in topthink/thinkphp

Critical severity GitHub Reviewed Published Sep 30, 2021 to the GitHub Advisory Database • Updated Feb 1, 2023

Package

composer topthink/thinkphp (Composer)

Affected versions

<= 3.2.3

Patched versions

None

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.

References

Published by the National Vulnerability Database Sep 28, 2021
Reviewed Sep 30, 2021
Published to the GitHub Advisory Database Sep 30, 2021
Last updated Feb 1, 2023

Severity

Critical
9.8
/ 10

CVSS base metrics

Attack vector
Network
Attack complexity
Low
Privileges required
None
User interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Weaknesses

CVE ID

CVE-2020-20120

GHSA ID

GHSA-m7h5-fjjq-559f

Source code

Checking history
See something to contribute? Suggest improvements for this vulnerability.