CVE-2018-18530Thinkphp
Critical 9.8 No auth needed
Follow: this CVE · Thinkphp · Thinkphp We alert you by email or Slack (account required).
- Priority
- 74
- CVSS 3.0
- 9.8
- EPSS
- 1.2% probability of exploitation in 30 days · percentile 68
- Auth required
- No
- Published
- Oct 19, 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 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.
What to do
- Apply the vendor's security update for Thinkphp.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| Packagist | topthink/framework |
≤ 5.1.25 |
no fixed version | — |
Per OSV / GitHub Advisories (GHSA-7xfj-4jpg-58vf). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| thinkphp | thinkphp | 5.1.25 |
Official sources
References
Links published by the sources. Open them with care.
- www.kingkk.com Exploit Third Party Advisory