{"id":"CVE-2018-20062","published":"2018-12-11T18:29:00Z","modified":"2026-06-17T01:52:14Z","title":"ThinkPHP \"noneCms\" Remote Code Execution Vulnerability","vendor":"ThinkPHP","product":"noneCms","tier":"core","eol":null,"description":{"text":"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.","provenance":"source","from":"NVD"},"summary":{"text":"The noneCms V1.3 content management system, which bundles ThinkPHP's thinkphp/library/think/App.php, contains an improper input validation flaw in how the filter parameter is handled. A remote, unauthenticated attacker with network access can execute arbitrary PHP code on the server by sending a crafted request, with no user interaction or special configuration required.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-10-23T07:03:30Z"},"cvss":{"score":9.8,"severity":"CRITICAL","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","provenance":"source","from":"NVD"},"epss":{"score":0.9953,"percentile":0.99946,"date":"2026-10-28","provenance":"source"},"kev":{"dateAdded":"2021-11-03","dueDate":"2022-05-03","ransomware":false,"requiredAction":"Apply updates per vendor instructions.","notes":"https://nvd.nist.gov/vuln/detail/CVE-2018-20062","provenance":"source"},"vulncheckKev":{"dateAdded":"2019-06-12","exploitedFirstSeen":"2019-06-12","ransomware":false,"evidence":[{"url":"https://unit42.paloaltonetworks.com/hide-n-seek-botnet-updates-arsenal-with-exploits-against-nexus-repository-manager-thinkphp/","date":"2019-06-12"},{"url":"https://unit42.paloaltonetworks.com/lucifer-new-cryptojacking-and-ddos-hybrid-malware/","date":"2020-06-24"},{"url":"https://research.checkpoint.com/2020/rudeminer-blacksquid-and-lucifer-walk-into-a-bar/","date":"2020-09-15"},{"url":"https://securityintelligence.com/posts/top-10-cybersecurity-vulnerabilities-2020/","date":"2021-03-10"},{"url":"https://unit42.paloaltonetworks.com/network-attack-trends-winter-2020/","date":"2021-04-12"},{"url":"https://www.cisa.gov/sites/default/files/feeds/known_exploited_vulnerabilities.json","date":"2021-11-03"},{"url":"https://cujo.com/blog/iot-botnet-report-2021-malware-and-vulnerabilities-targeted/","date":"2021-12-17"},{"url":"https://www.fortinet.com/blog/threat-research/enemybot-a-look-into-keksecs-latest-ddos-botnet","date":"2022-04-12"},{"url":"https://www.welivesecurity.com/wp-content/uploads/2022/10/eset_threat_report_t22022.pdf","date":"2022-10-05"},{"url":"https://www.cs.ucr.edu/~adava003/MalNet_IMC2022.pdf","date":"2022-10-27"}],"evidenceTotal":72,"provenance":"source"},"exploited":true,"otx":{"pulseCount":50,"pulses":[{"name":"Actively_Exploited_Kev | Oct 29, 2026","url":"https://otx.alienvault.com/pulse/6ae20c1db17e7057ae7d9ad1","created":"2026-10-28"},{"name":"Actively_Exploited_Kev | Oct 28, 2026","url":"https://otx.alienvault.com/pulse/6ae0ba7e0e2a97ff7b218819","created":"2026-10-27"},{"name":"Actively_Exploited_Kev | Oct 27, 2026","url":"https://otx.alienvault.com/pulse/6adf68b85c3e852f3c111d18","created":"2026-10-26"},{"name":"Actively_Exploited_Kev | Oct 24, 2026","url":"https://otx.alienvault.com/pulse/6adb740e397c3ad4799aa4cd","created":"2026-10-23"},{"name":"Actively_Exploited_Kev | Oct 23, 2026","url":"https://otx.alienvault.com/pulse/6ada236fcfba2dfa730ea482","created":"2026-10-22"},{"name":"Actively_Exploited_Kev | Oct 22, 2026","url":"https://otx.alienvault.com/pulse/6ad8d33a077cbb5cab524d80","created":"2026-10-21"},{"name":"Actively_Exploited_Kev | Oct 21, 2026","url":"https://otx.alienvault.com/pulse/6ad78130c4d1ac2be83a8b6d","created":"2026-10-20"},{"name":"Actively_Exploited_Kev | Oct 20, 2026","url":"https://otx.alienvault.com/pulse/6ad62f63c24a405a3423cc13","created":"2026-10-19"},{"name":"Actively_Exploited_Kev | Oct 19, 2026","url":"https://otx.alienvault.com/pulse/6ad4dda174e5797d0bd238b7","created":"2026-10-18"},{"name":"Actively_Exploited_Kev | Oct 18, 2026","url":"https://otx.alienvault.com/pulse/6ad38c22e1848f8189d1c121","created":"2026-10-17"}],"provenance":"machine"},"cwes":[{"id":"CWE-20","name":"Improper Input Validation"}],"references":[{"url":"http://packetstormsecurity.com/files/157218/ThinkPHP-5.0.23-Remote-Code-Execution.html","tags":["Exploit","Third Party Advisory","VDB Entry"]},{"url":"https://github.com/nangge/noneCms/issues/21","tags":["Exploit","Third Party Advisory"]},{"url":"http://packetstormsecurity.com/files/157218/ThinkPHP-5.0.23-Remote-Code-Execution.html","tags":["Exploit","Third Party Advisory","VDB Entry"]},{"url":"https://github.com/nangge/noneCms/issues/21","tags":["Exploit","Third Party Advisory"]},{"url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2018-20062","tags":["US Government Resource"]}],"techniques":[{"id":"T1190","name":"Exploit Public-Facing Application","tactics":["initial-access"],"provenance":"source","basis":"ctid-cve","bases":["ctid-cve","ai-mapping"],"basisDetail":"CTID attack_to_cve (Phase 1); claude-haiku-5-5: remote unauthenticated HTTP request exploits web app","mappingType":"uncategorized","evidence":[{"from":"description","quote":"allows remote attackers to execute arbitrary PHP code via crafted use of the filter parameter","start":72,"end":165}],"confidence":"medium","confidenceNote":"AI-mapped from the description (quote-validated, not expert-reviewed)"},{"id":"T1203","name":"Exploitation for Client Execution","tactics":["execution"],"provenance":"source","basis":"ctid-cve","bases":["ctid-cve"],"basisDetail":"CTID attack_to_cve (Phase 1)","mappingType":"uncategorized","evidence":[],"confidence":"low","confidenceNote":"server-side bug exploitable without user interaction; client-execution technique does not fit"},{"id":"T1059","name":"Command and Scripting Interpreter","tactics":["execution"],"provenance":"ai","basis":"ai-mapping","bases":["ai-mapping"],"basisDetail":"claude-haiku-5-5: arbitrary PHP code execution on server","mappingType":"primary_impact","evidence":[{"from":"description","quote":"allows remote attackers to execute arbitrary PHP code","start":72,"end":125}],"model":"claude-haiku-5-5","confidence":"medium","confidenceNote":"AI-mapped from the description (quote-validated, not expert-reviewed)"}],"reports":[{"id":"SRC-47d1c126a36d01f3bea4","title":"SpeakUp: A New Undetected Backdoor Linux Trojan","publisher":"research.checkpoint.com","url":"https://research.checkpoint.com/2019/speakup-a-new-undetected-backdoor-linux-trojan/","date":"2019-02-04","mentions":[{"quote":"- Exploiting CVE-2018-20062 for uploading a PHP shell","start":1581,"end":1634},{"quote":"Using a GET request, a remote command execution vulnerability in ThinkPHP (CVE-2018-20062) is sent to the targeted server, as shown below:","start":1635,"end":1773},{"quote":"- NoneCMS ThinkPHP Remote Code Execution (CVE-2018-20062)","start":9910,"end":9967}]}],"affected":[],"advisories":[],"euvd":{"id":"EUVD-2018-12637","url":"https://euvd.enisa.europa.eu/vulnerability/EUVD-2018-12637","exploited":true,"exploitedSince":"2021-11-03","provenance":"source"},"exploits":[{"id":48333,"url":"https://www.exploit-db.com/exploits/48333","title":"ThinkPHP - Multiple PHP Injection RCEs (Metasploit)","type":"remote","platform":"linux","date":"2020-04-16","verified":true,"provenance":"source"}],"exploitSources":{"exploitdb":{"count":1,"earliest":"2020-04-16"},"pocGithub":{"count":4,"skipped":1,"earliest":"2019-03-17","earliestUrl":"https://github.com/NS-Sp4ce/thinkphp5.XRce","repos":[{"name":"NS-Sp4ce/thinkphp5.XRce","url":"https://github.com/NS-Sp4ce/thinkphp5.XRce","stars":6,"created":"2019-03-17"},{"name":"yilin1203/CVE-2018-20062","url":"https://github.com/yilin1203/CVE-2018-20062","stars":2,"created":"2022-11-07"},{"name":"shenhui35/RedArrow","url":"https://github.com/shenhui35/RedArrow","stars":2,"created":"2025-09-16"},{"name":"0xRar/ThinkPHP5_RCE","url":"https://github.com/0xRar/ThinkPHP5_RCE","stars":0,"created":"2022-10-18"}]},"metasploit":[{"name":"ThinkPHP Multiple PHP Injection RCEs","module":"exploit/unix/webapp/thinkphp_rce","type":"exploit","disclosureDate":"2018-12-10","url":"https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/unix/webapp/thinkphp_rce.rb"}],"nuclei":[{"id":"CVE-2018-20062","name":"ThinkPHP 5.0.23 - Remote Code Execution","severity":"critical","path":"http/cves/2018/CVE-2018-20062.yaml","url":"https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2018/CVE-2018-20062.yaml"}],"first":{"date":"2018-12-10","source":"Metasploit","url":"https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/unix/webapp/thinkphp_rce.rb"},"provenance":"source"},"exploitRefs":["http://packetstormsecurity.com/files/157218/ThinkPHP-5.0.23-Remote-Code-Execution.html","https://github.com/nangge/noneCms/issues/21"],"flow":[{"stage":"primary","techniques":["T1059"],"provenance":"ai"},{"stage":"related","techniques":["T1190"],"provenance":"source"},{"stage":"related","techniques":["T1203"],"provenance":"source","lowConfidence":true}],"timeline":[{"date":"2018-12-10","kind":"exploit-public","label":"First public exploit: Metasploit; later: PoC-in-GitHub 2019-03-17, Exploit-DB 2020-04-16","url":"https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/unix/webapp/thinkphp_rce.rb","provenance":"source"},{"date":"2018-12-11","kind":"published","label":"Published (NVD)","url":"https://nvd.nist.gov/vuln/detail/CVE-2018-20062","provenance":"source"},{"date":"2019-02-04","kind":"report","label":"Named in research.checkpoint.com: SpeakUp: A New Undetected Backdoor Linux Trojan","url":"https://research.checkpoint.com/2019/speakup-a-new-undetected-backdoor-linux-trojan/","provenance":"machine"},{"date":"2019-06-12","kind":"exploited-reported","label":"Exploitation first reported (VulnCheck KEV evidence)","url":"https://unit42.paloaltonetworks.com/hide-n-seek-botnet-updates-arsenal-with-exploits-against-nexus-repository-manager-thinkphp/","provenance":"source"},{"date":"2021-11-03","kind":"kev","label":"Added to CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","provenance":"source"},{"date":"2021-11-03","kind":"euvd-exploited","label":"ENISA EUVD: exploited","url":"https://euvd.enisa.europa.eu/vulnerability/EUVD-2018-12637","provenance":"source"}],"speed":{"daysToPublicExploit":null,"firstExploitFrom":"Metasploit","daysToKev":1058},"priority":{"score":73.7,"factors":[{"name":"In a KEV catalog","points":35.0,"detail":"listed in CISA KEV and VulnCheck KEV"},{"name":"Recent KEV listing","points":0.0,"detail":"added 2696 days ago"},{"name":"Known ransomware use","points":0.0,"detail":"not known"},{"name":"EPSS percentile","points":19.99,"detail":"percentile 0.9995"},{"name":"Named in threat reports","points":3.87,"detail":"1 report"},{"name":"Public exploit code","points":5.0,"detail":"2 NVD references tagged Exploit; 1 Exploit-DB entry; 4 PoC-in-GitHub repos; 1 Metasploit module; 1 nuclei template"},{"name":"Mentioned in OTX pulses","points":3.0,"detail":"50 pulses"},{"name":"CVSS severity","points":6.86,"detail":"base score 9.8"},{"name":"End-of-life product","points":0.0,"detail":"supported or unknown"}]}}