CVE-2018-19127 Code injection in n/a

Critical 9.8 Published Updated

Attackers can inject arbitrary PHP code into cache files via the template parameter, leading to remote code execution on PHPCMS installations.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
None listed

What is CVE-2018-19127?

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

Official description

A code injection vulnerability in /type.php in PHPCMS 2008 allows attackers to write arbitrary content to a website cache file with a controllable filename, leading to arbitrary code execution. The PHP code is sent via the template parameter, and is written to a data/cache_template/*.tpl.php file along with a "<?php function " substring.

Weakness: CWE-94

Which versions are affected by CVE-2018-19127?

It affects 1 product.

Products include Phpcms Phpcms.

How do I fix CVE-2018-19127?

No fix has been published for CVE-2018-19127 yet. Limit exposure of the affected software until one is available.

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

Is CVE-2018-19127 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2018-19127 exists.

Public exploit code: 1 Nuclei template and 1 proofs of concept on GitHub.

Sources

Also known as GHSA-p498-q357-m3p7.

Is CVE-2018-19127 in your software?

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

Check your SBOMs for free