Security mailing lists by PureSourceCode

CVE-2018-18530

CRITICAL 9.8CVSS 3.0

ThinkPHP SQLi Vulnerability

ThinkPHP 5.1.25 has SQL Injection via the count parameter because the library/think/db/Query.php aggregate function mishandles the aggregate variable. NOTE: a backquote character is required in the attack URI.

Published
19 Oct 2018
Last modified
17 Jun 2026
Assigned by
cve@mitre.org
NVD status
Modified
Weakness
CWE-89
Also known as
GHSA-7xfj-4jpg-58vf
Sources
NVDJSONOSV GHSA-7xfj-4jpg-58vfJSON

Scores

SourceScored byVersionScoreVector / decision
NVD nvd@nist.gov (Primary) CVSS 3.0 CRITICAL 9.8 CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
OSV GitHub CVSS 3.0 CRITICAL 9.8 CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
NVD nvd@nist.gov (Primary) CVSS 2.0 HIGH 7.5 AV:N/AC:L/Au:N/C:P/I:P/A:P

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
NVD thinkphp thinkphp
cpe:2.3:a:thinkphp:thinkphp:5.1.25:*:*:*:*:*:*:*
= 5.1.25
OSV Packagist topthink/framework <= 5.1.25

References

History

  • 25 Nov 2026 20:21 UTC · NVD: first stored (published 19 Oct 2018)
  • 25 Nov 2026 20:15 UTC · OSV: first stored (published 14 May 2022)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.