CVE-2018-18546
CRITICAL 9.8CVSS 3.0ThinkPHP SQLi Vulnerability
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.
- Published
- 21 Oct 2018
- Last modified
- 17 Jun 2026
- Assigned by
- cve@mitre.org
- NVD status
- Modified
- Weakness
- CWE-89
- Also known as
- GHSA-j7g8-3qqg-8cvm
- Sources
- NVDJSONOSV GHSA-j7g8-3qqg-8cvmJSON
Scores
| Source | Scored by | Version | Score | Vector / 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
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | thinkphp | thinkphpcpe:2.3:a:thinkphp:thinkphp:3.2.4:*:*:*:*:*:*:* |
= 3.2.4 | |
| OSV | Packagist | topthink/framework | <= 3.2.4 |
References
- https://98587329.github.io/2018/10/09/thinkphp%E6%B3%A8%E5%85%A5%E5%88%86%E6%9E%90/ · Exploit, Third Party Advisory, WEB
- https://github.com/top-think/thinkphp/commit/9748cb80d2f24c89218f358ca2f5ab88ee33396f · Patch, Vendor Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2018-18546 · ADVISORY
- https://github.com/top-think/framework/issues/2613 · WEB
History
- 25 Nov 2026 20:21 UTC · NVD: first stored (published 21 Oct 2018)
- 25 Nov 2026 20:15 UTC · OSV: first stored (published 14 May 2022)