Advisory Database
  • Advisories
  • Dependency Scanning
  1. composer
  2. ›
  3. topthink/framework
  4. ›
  5. CVE-2018-18546

CVE-2018-18546: SQL Injection

October 21, 2018 (updated December 4, 2018)

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

References

  • nvd.nist.gov/vuln/detail/CVE-2018-18546

Code Behaviors & Features

Detect and mitigate CVE-2018-18546 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

Version 3.2.4

Fixed versions

  • 5.0

Solution

Upgrade to version 5.0 or above.

Impact 9.8 CRITICAL

CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')

Source file

packagist/topthink/framework/CVE-2018-18546.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:16:19 +0000.