Skip to content

ThinkPHP SQLi Vulnerability

Critical severity GitHub Reviewed Published May 14, 2022 to the GitHub Advisory Database • Updated Jul 25, 2023

Package

composer topthink/framework (Composer)

Affected versions

<= 3.2.4

Patched versions

None

Description

ThinkPHP 3.2.4 has SQL Injection via the count parameter because the Library/Think/Db/Driver/Mysql.class.php parseKey function mishandles the key variable. NOTE: a backquote character is not required in the attack URI.

References

Published by the National Vulnerability Database Oct 19, 2018
Published to the GitHub Advisory Database May 14, 2022
Last updated Jul 25, 2023
Reviewed Jul 25, 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.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Weaknesses

CVE ID

CVE-2018-18529

GHSA ID

GHSA-78q9-24gv-g288

Source code

No known source code
Checking history
See something to contribute? Suggest improvements for this vulnerability.