{"id":"CVE-2018-19127","aliases":["EUVD-2018-10840","GHSA-p498-q357-m3p7"],"status":"published","title":"A code injection vulnerability in /type.php in PHPCMS 2008 allows attackers to write arbitrary...","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 \"\u003c?php function \" substring.","severity":{"version":"3.0","score":9.8,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical","assessor":"primary","from":"nvd"},"epss":{"day":"2026-11-08","score":0.20766,"percentile":0.97556,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":true,"fix_available":false},"cwes":["CWE-94"],"published":"2018-11-09T12:00:00Z","modified":"2026-06-17T01:48:49Z","exploits":[{"source":"nuclei","id":"CVE-2018-19127","title":"PHPCMS 2008 - Remote Code Execution via Template Injection","type":"detection template","url":"https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2018/CVE-2018-19127.yaml"},{"source":"pocgithub","id":"ab1gale/phpcms-2008-CVE-2018-19127","title":"ab1gale/phpcms-2008-CVE-2018-19127","date":"2018-11-09","url":"https://github.com/ab1gale/phpcms-2008-CVE-2018-19127"}],"products":[{"vendor":"phpcms","product":"phpcms"}],"references":[{"url":"https://github.com/ab1gale/phpcms-2008-CVE-2018-19127","tags":["x_refsource_MISC","x_transferred","Third Party Advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2018-19127"},{"url":"https://github.com/advisories/GHSA-p498-q357-m3p7"}],"sources":{"cve":[{"id":"CVE-2018-19127","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 \"\u003c?php function \" substring.","status":"published","published":"2018-11-09T12:00:00Z","modified":"2024-08-05T11:30:03.323Z","updated_at":"2026-11-02T14:35:02.966615Z"}],"euvd":[{"id":"EUVD-2018-10840","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 \"\u003c?php function \" substring.","status":"published","published":"2018-11-09T12:00:00Z","modified":"2024-08-05T11:30:03Z","updated_at":"2026-11-03T02:39:34.247095Z"}],"ghsa":[{"id":"GHSA-p498-q357-m3p7","title":"A code injection vulnerability in /type.php in PHPCMS 2008 allows attackers to write arbitrary...","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 \"\u003c?php function \" substring.","status":"published","published":"2022-05-14T01:37:01Z","modified":"2023-02-02T05:04:12Z","cvss":[{"version":"3.0","score":9.8,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical"}],"cwes":["CWE-94"],"updated_at":"2026-11-02T14:51:48.979759Z"}],"nvd":[{"id":"CVE-2018-19127","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 \"\u003c?php function \" substring.","status":"published","published":"2018-11-09T12:29:00.293Z","modified":"2026-06-17T01:48:49.853Z","cvss":[{"version":"3.0","score":9.8,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical","assessor":"primary"},{"version":"2.0","score":7.5,"vector":"AV:N/AC:L/Au:N/C:P/I:P/A:P","level":"high","assessor":"primary"}],"cwes":["CWE-94"],"updated_at":"2026-11-02T14:04:47.196456Z"}]}}
