CVE-2018-17566: ThinkPHP - SQL Injection
- Cve: CVE-2018-17566
- Name: ThinkPHP - SQL Injection
- Description: In ThinkPHP 5.1.24, the inner function delete can be used for SQL injection when its WHERE condition's value can be controlled by a user's request.
- Impact: Attackers can execute arbitrary SQL queries, potentially leading to data leakage, modification, or deletion.
- Remediation: Update to the latest version of ThinkPHP or apply security patches that fix the SQL injection vulnerability.
- Vulnerability type: sql_injection
- Vulnerability impact: information_disclosure, data_tampering
- Requirement type: none
- Labels source: projectdiscovery
- Severity: critical
- Cvss score: 9.8
- Cvss vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- Epss score: 0.01537
- Epss percentile: 0.75524
- Assignee: [email protected]
- Published at: 2018-09-26T21:29:02Z
- Age in days: 2981
- Modified at: 2026-06-17T01:46:01Z
- Public exploits total: 1
- References total: 1
- Products total: 1
- Oss: yes
- Projects total: 2
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2018-17566
- Nvd status: modified
- Checked, none or zero: patch available, known exploited entries, nuclei templates, public exploits capped, rejected by nvd
- Not known: requirements, hackerone
Cwe
| Id | Name |
|---|---|
| CWE-89 | Improper Neutralization of Special Elements used in an SQL Command |
Public exploits
| Url | Source | Added date |
|---|---|---|
| https://github.com/top-think/think/issues/858 | nvd | 2018-09-26 |
References
| Url | Source | Tags |
|---|---|---|
| https://github.com/top-think/think/issues/858 | nvd | Exploit, Third Party Advisory |
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| thinkphp:thinkphp | = 5.1.24 | no | nvd | /v1/products/thinkphp/thinkphp |
Projects
| Repository | Link kinds | Indexed | Url |
|---|---|---|---|
| top-think/think | issues | yes | /v1/repositories/top-think/think |
| top-think/framework | package | yes | /v1/repositories/top-think/framework |
Index
- Checked, none or zero: repositories, repositories high signal, packages
Exploitation
- Public exploit: yes
- Public exploit count: 1
- Public exploit first date: 2018-09-26
- Remote: yes
- Exposed hosts: 41965
- Checked, none or zero: known exploited, known exploited by, exploitation seen, initial access, authentication required
- Not known: known exploited since, vulncheck known exploited since, nuclei template, initial access since, hackerone reports