SecurityContext

CVE-2018-18529: ThinkPHP - SQL Injection

  • Cve: CVE-2018-18529
  • Name: ThinkPHP - SQL Injection
  • Description: ThinkPHP 3.2.4 has SQL Injection via the count parameter because the Library/Think/Db/Driver/Mysql.class.php parseKey function mishandles the key variable. NOTE: a backquote character is not required in the attack URI.
  • Impact: Attackers can execute arbitrary SQL commands, potentially leading to data leakage, modification, or deletion.
  • Remediation: Update to the latest version of ThinkPHP or apply security patches addressing this 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.01202
  • Epss percentile: 0.69013
  • Assignee: [email protected]
  • Published at: 2018-10-19T20:29:00Z
  • Age in days: 2958
  • Modified at: 2026-06-17T01:47:27Z
  • Public exploits total: 1
  • References total: 1
  • Products total: 1
  • Oss: yes
  • Projects total: 1
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2018-18529
  • 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

IdName
CWE-89Improper Neutralization of Special Elements used in an SQL Command

Public exploits

UrlSourceAdded date
https://www.kingkk.com/2018/10/Thinkphp-%E8%81%9A%E5%90%88%E6%9F%A5%E8%AF%A2%E6%BC%8F%E6%B4%9E/#ThinkPHP3-lt-3-2-4nvd2018-10-19

References

UrlSourceTags
https://www.kingkk.com/2018/10/Thinkphp-%E8%81%9A%E5%90%88%E6%9F%A5%E8%AF%A2%E6%BC%8F%E6%B4%9E/#ThinkPHP3-lt-3-2-4nvdExploit, Third Party Advisory

Products

ProductAffectedPlatform boundSourcesUrl
thinkphp:thinkphp= 3.2.4nonvd/v1/products/thinkphp/thinkphp

Projects

RepositoryLink kindsIndexedUrl
top-think/frameworkproductyes/v1/repositories/top-think/framework

Index

  • Repositories: 10
  • Repositories high signal: 6
  • Checked, none or zero: packages

Exploitation

  • Public exploit: yes
  • Public exploit count: 1
  • Public exploit first date: 2018-10-19
  • Remote: yes
  • Exposed hosts: 41716
  • 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