SQL Injection in Thinkphp
CVE-2018-16385
ThinkPHP before 5.1.23 allows SQL Injection via the public/index/index/test/index query string.
Vulnerability class: SQL Injection
Published · last modified .
CVSS v3 metric
CVSS v3 base score 9.8 (Critical). Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H.
EPSS exploit prediction
EPSS 0.022, 82.4th percentile (scored ); unchanged over 30 days. About EPSS.
Affected products
Weakness classification (CWE)
Public exploits and proof-of-concept code
1 public repository with exploit or proof-of-concept code for this CVE:
- buzhimingdeaikun/SQL-ThinkPHP-5.0.24-RCE- (last pushed 2026-07-13): SQL注入漏洞复现报告——OWASP靶场实战,通过UNION注入提取数据库29条用户凭证 ThinkPHP 5.0.24 RCE漏洞复现报告——CVE-2018-16385,验证代码执行能力
Also mentioned in 2 other repositories (hktalent/bug-bounty, SexyBeast233/SecBooks). These reference the CVE in a list, notes or a scanner and are not exploit code for it.
References
- github.com/top-think/framework/issues/1375 (Exploit, Third Party Advisory)
- exchange.xforce.ibmcloud.com/vulnerabilities/149288 (Third Party Advisory)
This CVE has public exploit evidence. See the latest CVEs with public exploits.