Skip to main content
Mallory
CriticalExploited in the wildCISA KEVPublic exploitVulnerability

CVE-2018-20062: Remote Code Execution in NoneCMS and ThinkPHP

Published Dec 11, 2018 · Updated 8 days ago
Trending this weekNot trendingOutside this week’s top 100
Mention activity · 30 days3 mentions · peak 1 in a dayToday
CVSS9.8Critical · v3.1
EPSS99.5%100th percentile
CISA KEVYesAdded Nov 3, 2021
In the wildActivePer CISA KEV
Vendor
5none
IdentifiersCVE-2018-20062CWE-94

CVE-2018-20062 is a remote code execution vulnerability affecting NoneCMS 1.3 through its embedded ThinkPHP framework, with vulnerable ThinkPHP 5.x applications also affected. Crafted HTTP requests manipulate request routing and the filter parameter to invoke attacker-selected PHP functions through the framework's request-input processing. Successful exploitation allows arbitrary PHP execution in the web application's security context. The vulnerability has been exploited to deploy web shells, cryptocurrency miners, and botnet malware.

Do you run this?See affected versions in your environment and whether adversaries are exploiting this vulnerability against assets like yours.
Check your exposure
Analyst brief

Impact, mitigation & remediation

What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.

Impact

What an attacker gets, and what they’ve been doing with it.

Unauthenticated remote attackers can compromise the affected application and access or modify data available to its runtime account. Arbitrary PHP execution can enable operating-system command execution where permitted by the PHP configuration and account privileges. Observed exploitation includes Dama web shell deployment and use by Kinsing, Mirai variants, Hide 'N Seek, and Enemybot. System-wide compromise and lateral movement depend on the application's privileges and access to other resources.

Mitigation

If you can’t patch tonight, do this now.

Until an upgrade is possible, restrict access to affected applications using network access controls or an authenticated reverse proxy, and apply WAF rules targeting ThinkPHP routing and filter-parameter exploitation. Run the application with least privilege and restrict unnecessary outbound connections to reduce post-exploitation capabilities. These controls do not replace remediation.

Remediation

Patch, then assume compromise.

Upgrade affected ThinkPHP installations to a current, supported release that addresses the vulnerability. For NoneCMS and other applications bundling ThinkPHP, update or replace the application and its embedded framework rather than leaving a vulnerable bundled copy in place. An exact minimum fixed version is not established by the available information. Previously exposed systems should also be investigated for web shells and other compromise artifacts, since upgrading does not remove an existing infection.

Public exploits

Exploits

3 exploits validated by Mallory's analysis. Hidden: 2 rejected by Mallory's analysis as not a working exploit.

View more in app →
thinkphp_rce.rbThis repository contains a single Metasploit module (modules/exploits/unix/webapp/thinkphp_rce.rb) that exploits remote code execution vulnerabilities in the ThinkPHP web framework (versions <= 5.0.23). The module automatically detects the ThinkPHP version and selects the appropriate exploitation method. It supports both command execution and staged payloads (such as Meterpreter reverse shells) on Unix/Linux targets. The exploit works by sending crafted HTTP requests to specific endpoints (e.g., /index.php?s=/Index/\think\app/invokefunction for <5.0.23 and /index.php?s=captcha for 5.0.23) to trigger PHP injection vulnerabilities. The module is weaponized, allowing for easy payload customization and integration into the Metasploit framework. It targets CVE-2018-20062 and CVE-2019-9082, and is suitable for penetration testing against vulnerable ThinkPHP deployments.Disclosed Dec 10, 2018 · Framework: metasploit · ruby · networkWeaponizedCVE-2018-20062This repository contains a Python exploit script (CVE-2018-20062.py) targeting the ThinkPHP 5.0.23 remote code execution vulnerability (CVE-2018-20062). The script provides two main capabilities: (1) checking if a target is vulnerable by sending a POST request to the /index.php?s=captcha endpoint with a payload that triggers phpinfo(), and (2) exploiting the vulnerability to execute arbitrary system commands on the target server by sending a similar POST request with the 'system' filter and the desired command. The script supports scanning a single URL or multiple targets from a file. The README provides a brief description and usage context. The exploit is operational, providing real command execution if the target is vulnerable, and is not part of a larger framework. The main fingerprintable endpoint is /index.php?s=captcha, which is used for both detection and exploitation.yilin1203 · Disclosed Nov 7, 2022 · python · networkOperationalRedArrowThis repository contains RedArrow3.2, a GUI-based exploit tool targeting the remote code execution (RCE) vulnerability in ThinkPHP 5.0.23. The main code files are 'RedArrow3.2/RedArrow3.2.py' (the GUI application) and 'RedArrow3.2/GodzillaLikeShell.py' (the module for persistent, encrypted shell access). The tool allows users to execute arbitrary system commands on a vulnerable ThinkPHP 5.0.23 server via a specified URL (which must include the '?s=captcha' parameter to trigger the vulnerability). It supports both single-command execution and an interactive, AES-encrypted shell (Godzilla-like shell), which can be used for persistent access if the attacker can upload or inject the provided PHP payload. The GUI is implemented in Python with Tkinter, and the tool includes features such as command history, result export, and animated interface elements. The exploit is operational and provides real command execution and shell access, but is not part of a larger exploitation framework. The only hardcoded endpoint is an example URL in the README. The requirements.txt lists dependencies for cryptography and HTTP requests.shenhui35 · Disclosed Sep 16, 2025 · python · networkOperational
Exposure surface

Affected products & vendors

Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.

VendorProductType
5noneNonecmsapplication
FAQ

Frequently asked questions

Is CVE-2018-20062 exploited in the wild?
Yes. As of Nov 20, 2026, Mallory has reports of exploitation in the wild, and CISA added it to KEV on Nov 3, 2021.
Is there a public exploit for CVE-2018-20062?
Yes. Mallory tracks 3 public exploits or proofs of concept for CVE-2018-20062, the earliest disclosed Dec 10, 2018.
Is there a patch for CVE-2018-20062?
Upgrade affected ThinkPHP installations to a current, supported release that addresses the vulnerability. For NoneCMS and other applications bundling ThinkPHP, update or replace the application and its embedded framework rather than leaving a vulnerable bundled copy in place.
What products are affected by CVE-2018-20062?
5none Nonecms.
How severe is CVE-2018-20062?
CVE-2018-20062 has a CVSS v3.1 score of 9.8 (Critical) and an EPSS score of 99.5% (100th percentile) as of Nov 20, 2026.
Activity feed

Recent activity

17 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.

View more in app →
+6 more in the timeline. Sign up to see them
Do you run this?See affected versions in your environment and whether adversaries are exploiting this vulnerability against assets like yours.
Check your exposure
Mallory platform

The version that knows your environment.

This page is what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which adversaries are exploiting it right now, and which detections to deploy tonight.
Exposure mappingQuery your assets running an affected version, and investigate the blast radius.
Threat actor evidence1Every report linking this CVE to a named adversary.
Associated malware11Malware families linked to this CVE, with evidence and IOCs.
Detection signatures4YARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.
Vendor-by-vendor mappingCross-references every affected SKU, including bundled OEM variants.
Social activity7Community discussion across Reddit, Mastodon, and other social sources.