Skip to main content
Mallory
CriticalVulnerability

CVE-2018-19127: PHP code injection in PHPCMS 2008

Published Nov 9, 2018 · Updated 1 month ago
Trending this weekNot trendingOutside this week’s top 100
Mention activity · 30 daysNo mention activity in the last 30 days.
CVSS9.8Critical · v3
EPSS20.8%98th percentile
CISA KEVNoNot listed
In the wildReported1 exploitation record in Mallory
Vendor
Phpcms
IdentifiersCVE-2018-19127CWE-94 · Improper Control of Generation of…

CVE-2018-19127 is a code injection vulnerability in PHPCMS 2008. An attacker can supply PHP code through the template request parameter, causing arbitrary content to be written to a website template-cache file with an attacker-controlled filename. The generated PHP cache content incorporates a PHP function declaration substring, enabling arbitrary code execution on the affected server.

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.

Successful exploitation allows arbitrary PHP code execution on the affected server and can enable installation of a webshell. The vulnerability also permits modification of website cache content using an attacker-controlled filename. The execution privilege level and broader system impact are not established.

Mitigation

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

Restrict access to the vulnerable /type.php endpoint until a fix is applied, especially from untrusted networks. Disable execution of PHP code in cache directories such as data/cache_template where feasible, for example through web server configuration. Apply filesystem permission hardening so the web application cannot create or modify executable files outside strictly necessary paths. Use WAF or request filtering to block suspicious requests containing PHP code in the template parameter, and monitor for unexpected .tpl.php files or changes under cache directories.

Remediation

Patch, then assume compromise.

Upgrade to a fixed version of PHPCMS if a vendor patch is available, or apply the vendor-supplied fix for CVE-2018-19127. The vulnerable logic in /type.php should be changed so that untrusted input from the template parameter cannot be written into executable PHP files or cache templates. Cache files should be treated as non-executable data, filenames should not be attacker-controllable, and any dynamic template handling should enforce strict allowlisting and neutralization of PHP metacharacters and code fragments.

Public exploits

Exploits

No public exploits tracked yet. Mallory keeps watching.

View more in app →
No public exploit code observed for this vulnerability. Mallory keeps watching.
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
PhpcmsPhpcmsapplication
FAQ

Frequently asked questions

Is CVE-2018-19127 exploited in the wild?
Yes. As of Oct 16, 2026, Mallory has reports of exploitation in the wild.
Is there a public exploit for CVE-2018-19127?
As of Oct 16, 2026, Mallory has found no public exploit for CVE-2018-19127.
Is there a patch for CVE-2018-19127?
Upgrade to a fixed version of PHPCMS if a vendor patch is available, or apply the vendor-supplied fix for CVE-2018-19127. The vulnerable logic in /type.php should be changed so that untrusted input from the template parameter cannot be written into executable PHP files or cache templates.
What products are affected by CVE-2018-19127?
Phpcms.
How severe is CVE-2018-19127?
CVE-2018-19127 has a CVSS v3 score of 9.8 (Critical) and an EPSS score of 20.8% (98th percentile) as of Oct 16, 2026.
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 evidenceEvery report linking this CVE to a named adversary.
Associated malwareMalware families linked to this CVE, with evidence and IOCs.
Detection signaturesYARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.
Vendor-by-vendor mappingCross-references every affected SKU, including bundled OEM variants.
Social activity2Community discussion across Reddit, Mastodon, and other social sources.