---
id: "CVE-2018-20062"
kind: "vulnerability"
aliases: ["CVE-2018-20062"]
title: "ThinkPHP noneCms: ThinkPHP \"noneCms\" Remote Code Execution Vulnerability"
severity: "critical"
cvss: 9.8
epss: 0.9953
exploited: true
status: "open"
category: "runtime"
products: [{"name": "ThinkPHP noneCms", "fixed": [], "affected": "", "ecosystem": "vendor"}, {"name": "noneCms", "fixed": [], "affected": "1.3.0", "ecosystem": "vendor"}]
ecosystems: ["vendor"]
tags: ["exploited", "nonecms", "php", "poc-public", "runtime", "self-hosted", "thinkphp"]
not_affected_if: ["managed-hosting", "not-nonecms"]
published_at: "2018-12-11T18:29:00+00:00"
first_seen_at: "2026-10-23T19:11:53+00:00"
updated_at: "2026-10-23T21:01:09+00:00"
sources: [{"source": "kev", "url": "https://www.cisa.gov/known-exploited-vulnerabilities-catalog?search_api_fulltext=CVE-2018-20062", "first_seen_at": "2026-10-23T19:11:53+00:00"}, {"source": "epss", "url": "https://api.first.org/data/v1/epss?cve=CVE-2018-20062", "first_seen_at": "2026-10-23T19:13:43+00:00"}, {"source": "nvd", "url": "https://nvd.nist.gov/vuln/detail/CVE-2018-20062", "first_seen_at": "2026-10-23T19:35:23+00:00"}, {"source": "analyst", "url": null, "first_seen_at": "2026-10-23T21:01:09+00:00"}]
---

# ThinkPHP noneCms: ThinkPHP "noneCms" Remote Code Execution Vulnerability

noneCms V1.3 bundles a ThinkPHP library whose App.php lets remote attackers run arbitrary PHP code through a crafted filter parameter in the query string. An attacker who can reach the site gets code execution on the web server.

_Summary, check and fix written by a model from the sources; labelled as such._

## Affected

- vendor:ThinkPHP noneCms affected ? fixed ?
- vendor:noneCms affected 1.3.0 fixed ?

## How to check

Look for noneCms V1.3 (cpe 5none:nonecms:1.3.0) and read the version constant in thinkphp/base.php (THINK_VERSION) on the server. Check web logs for requests containing 'think\Request/input', 'invokefunction' or 'filter=' with phpinfo/system. Only test with a phpinfo probe on systems you own.

## Fix

No patched noneCms release is documented. Upstream ThinkPHP fixed this class of bug in 5.0.24 (and 5.1.x later), per a third-party nuclei template and Tenable's 2018-12-09 patch date; not verified on a ThinkPHP primary page. Update the bundled thinkphp/ directory to a current ThinkPHP 5.0.x/5.1.x release, or stop using noneCms. Until then, block requests with s=index/\think\Request/input, invokefunction or filter[] at the WAF, and don't expose the site publicly.

## Timeline

- 2026-10-23T19:11:53+00:00 kev https://www.cisa.gov/known-exploited-vulnerabilities-catalog?search_api_fulltext=CVE-2018-20062
- 2026-10-23T19:13:43+00:00 epss https://api.first.org/data/v1/epss?cve=CVE-2018-20062
- 2026-10-23T19:35:23+00:00 nvd https://nvd.nist.gov/vuln/detail/CVE-2018-20062
- 2026-10-23T21:01:09+00:00 analyst — NVD/CISA KEV: NoneCms 1.3 bundled ThinkPHP RCE, KEV since 2021-11-03, public PoCs, mass exploitation by IoT botnets (Tenable). No noneCms vendor fix found; the issue page could not be read. Nuclei template says ThinkPHP 5.0.24+, not confirmed on a primary page.

## Documents

- [advisory] NVD CVE-2018-20062 https://nvd.nist.gov/vuln/detail/CVE-2018-20062
- [describes] noneCms issue 21 https://github.com/nangge/noneCms/issues/21
- [discussion] Tenable: ThinkPHP RCE used to deploy malware https://www.tenable.com/blog/thinkphp-remote-code-execution-vulnerability-used-to-deploy-variety-of-malware-cve-2018-20062
- [poc] Vulhub ThinkPHP5 RCE https://github.com/vulhub/vulhub/tree/master/thinkphp/5-rce

## From the sources

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.

---

_Free to read at a human pace. An API with keys and an MCP server are in preparation; early access: hello@infrastack.ai_
