CVE-2018-20062 ThinkPHP "noneCms" Remote Code Execution

Exploited in the wild Critical 9.8 Published Updated

Remote attackers can execute arbitrary PHP code in NoneCms via the filter parameter in the ThinkPHP framework.

Exploited in the wild
Since 3 Nov 2021
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
None listed

What is CVE-2018-20062?

CVE-2018-20062 is a critical code injection vulnerability in n/a, published on 11 Dec 2018. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official 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.

Which versions are affected by CVE-2018-20062?

It affects 1 product.

Products include 5none Nonecms.

How do I fix CVE-2018-20062?

No fix has been published for CVE-2018-20062 yet. Limit exposure of the affected software until one is available. US federal agencies must fix it by 3 May 2022.

Upgrade, and never evaluate templates, expressions or code built from user input. More about Code injection.

Is CVE-2018-20062 being exploited?

Yes. Attackers have exploited CVE-2018-20062 in the wild since at least 3 Nov 2021.

Public exploit code: 1 Metasploit module, 1 Exploit-DB entry, 1 Nuclei template and 5 proofs of concept on GitHub.

Sources

Also known as GHSA-gf7c-4w4p-7cm5.

Is CVE-2018-20062 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free