9.8crit

CVE-2018-18546

ThinkPHP SQLi Vulnerability

Also known as GHSA-j7g8-3qqg-8cvm

Published 8 y ago · modified 4 mo ago · JSON

CVSS
9.8
v3.0 · NVD
CISA KEV
No
not known exploited
EPSS
1.7%
percentile 77%
Public exploits
0
none known

Summary

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.

Exploit prediction (EPSS)

1.66% probability of exploitation in the next 30 days, higher than 77% of all scored CVEs.

CVSS scores

Assigned byVersionScoreVector
NVD3.09.8CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
NVD2.07.5AV:N/AC:L/Au:N/C:P/I:P/A:P
GitHub3.09.8CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Affected packages

EcosystemPackageAffectedFixed in
packagisttopthink/framework
<=3.2.4
no fix listed

Classification

Weakness
  • CWE-89 Improper Neutralization of Special Elements used in an SQL Command

References

  • github.com /top-think/thinkphp/commit/9748cb80d2f24c89218f358ca2f5ab88ee33396f · x_refsource_MISC, x_transferred
  • 98587329.github.io /2018/10/09/thinkphp%E6%B3%A8%E5%85%A5%E5%88%86%E6%9E%90/ · x_refsource_MISC, x_transferred
  • nvd.nist.gov /vuln/detail/CVE-2018-18546 · advisory
  • github.com /top-think/framework/issues/2613 · web
  • 98587329.github.io /2018/10/09/thinkphp%E6%B3%A8%E5%85%A5%E5%88%86%E6%9E%90 · web

Sources

vulnwire keeps one entry per vulnerability: the CVE id wins, then GHSA; records that alias each other are merged. Machine-readable: JSON.