{"answers":{"affected":"It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2018-19127 exists.","fix":"No fix has been published for CVE-2018-19127 yet. Limit exposure of the affected software until one is available.","what":"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."},"fix_prompt":"Check this codebase for CVE-2018-19127 and fix it if it is affected.\n\nWhat it is: 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.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2018-19127 exists.\n\nAffected product: n/a. No package-level version data is available, so check the vendor advisory linked from the reference page.\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2018-19127/ (Markdown: https://insights.sbomify.com/CVE-2018-19127/index.md)","id":"CVE-2018-19127","markdown":"https://insights.sbomify.com/CVE-2018-19127/index.md","name":"CVE-2018-19127","record":{"aliases":["GHSA-p498-q357-m3p7"],"analysis":{"component_type":"web_application","fix_type":"patch","impacts":["code_execution"],"network_reachable":"yes","non_default_config":false,"product_category":"PHPCMS web application","requires_auth":"none","summary":"Attackers can inject arbitrary PHP code into cache files via the template parameter, leading to remote code execution on PHPCMS installations.","user_interaction":"not_required","vuln_class":"code_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"mitre","cpe":[{"product":"phpcms","vendor":"phpcms"}],"cvss":{"score":9.8,"severity":"critical","source":"nvd","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","version":"3.0"},"cwes":[{"id":"CWE-94","name":"Improper Control of Generation of Code"}],"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.","ecosystems":[],"exploits":{"exploitdb":0,"first_seen":"2018-11-09","github_poc":1,"max_poc_stars":41,"metasploit":0,"nuclei":1,"refs":[{"date":"2018-11-09T09:51:26Z","kind":"github_poc","ref":"https://github.com/ab1gale/phpcms-2008-CVE-2018-19127","stars":41,"title":null},{"date":null,"kind":"nuclei","ref":"http/cves/2018/CVE-2018-19127.yaml","stars":null,"title":"PHPCMS 2008 - Remote Code Execution via Template Injection"}],"tier":"weaponised"},"has_fix":null,"headline":"Code injection in n/a","id":"CVE-2018-19127","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":null,"products":[],"type":"code_injection","year":"2018"},"n_packages":0,"n_references":1,"next":{"headline":"Memory corruption in n/a","id":"CVE-2018-19128"},"packages":[],"prev":{"headline":"File upload in n/a","id":"CVE-2018-19126"},"products":["n/a"],"published":"2018-11-09","related":[{"cvss_score":9.8,"headline":"SQL injection in n/a","id":"CVE-2020-22199","kev_date_added":null,"published":"2021-06-16"},{"cvss_score":9.8,"headline":"SQL injection in n/a","id":"CVE-2020-22203","kev_date_added":null,"published":"2021-06-16"},{"cvss_score":8.8,"headline":"Code injection in n/a","id":"CVE-2020-22201","kev_date_added":null,"published":"2021-06-16"},{"cvss_score":7.8,"headline":"Path traversal in n/a","id":"CVE-2008-0513","kev_date_added":null,"published":"2008-01-31"},{"cvss_score":7.5,"headline":"Denial of service in n/a","id":"CVE-2018-14940","kev_date_added":null,"published":"2018-08-05"},{"cvss_score":7.5,"headline":"Code injection in n/a","id":"CVE-2006-3019","kev_date_added":null,"published":"2006-06-15"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"},{"class":"attribution","licence":"MIT","name":"Nuclei templates"},{"class":"open","licence":"CC0","name":"PoC-in-GitHub"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":"PUBLISHED","updated":"2024-08-05","vendors":["n/a"]},"summary":"Attackers can inject arbitrary PHP code into cache files via the template parameter, leading to remote code execution on PHPCMS installations.","url":"https://insights.sbomify.com/CVE-2018-19127/"}