Live threats

All CVEs / Thinkphp

CVE-2018-18546Thinkphp

Critical 9.8 No auth needed

Priority
74
CVSS 3.0
9.8
EPSS
1.7%
probability of exploitation in 30 days · percentile 77
Auth required
No
Published
Oct 21, 2018
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-89
Vector
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

What happens

ThinkPHP 3.2.4 has SQL Injection via the order parameter because the Library/Think/Db/Driver.class.php parseOrder function mishandles the key variable.

Original NVD text.

What to do

  1. Apply the vendor's security update for Thinkphp.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
Packagist topthink/framework ≤ 3.2.4 no fixed version —

Per OSV / GitHub Advisories (GHSA-j7g8-3qqg-8cvm). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
thinkphpthinkphp3.2.4

Official sources

References

Links published by the sources. Open them with care.