{"id":"CVE-2018-15142","published":"2018-08-13T18:00:00Z","modified":"2024-08-05T09:46:25Z","title":"Directory traversal in portal/import_template.php in versions of OpenEMR before 5.0.1.4 allows a remote attacker…","vendor":null,"product":null,"tier":"tail","description":{"text":"Directory traversal in portal/import_template.php in versions of OpenEMR before 5.0.1.4 allows a remote attacker authenticated in the patient portal to execute arbitrary PHP code by writing a file with a PHP extension via the \"docid\" and \"content\" parameters and accessing it in the traversed directory.","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.17989,"percentile":0.97258,"provenance":"source"},"cwes":[],"references":[{"url":"https://www.databreaches.net/openemr-patches-serious-vulnerabilities-uncovered-by-project-insecurity/","tags":["x_refsource_MISC"]},{"url":"https://www.exploit-db.com/exploits/45202/","tags":["exploit","x_refsource_EXPLOIT-DB"]},{"url":"https://github.com/openemr/openemr/pull/1765/files","tags":["x_refsource_CONFIRM"]}],"priority":{"score":24.5,"factors":[{"name":"EPSS percentile","points":19.45},{"name":"Public exploit code","points":5.0}]},"exploitSources":{"exploitdb":{"count":1,"earliest":"2018-08-16"},"first":{"date":"2018-08-16","source":"Exploit-DB","url":"https://www.exploit-db.com/exploits/45202"},"provenance":"source"},"summary":{"text":"A directory traversal flaw in portal/import_template.php of OpenEMR (versions before 5.0.1.4) lets a remote attacker write files outside their intended location through the \"docid\" and \"content\" parameters. An attacker who is authenticated to the patient portal can exploit this by writing a file with a PHP extension and then accessing it in the traversed directory to execute arbitrary PHP code.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T06:48:08Z"},"euvd":{"id":"EUVD-2018-7022","exploited":false,"provenance":"source"},"exploits":[{"id":45202,"url":"https://www.exploit-db.com/exploits/45202","title":"OpenEMR 5.0.1.3 - (Authenticated) Arbitrary File Actions","date":"2018-08-16","verified":true,"provenance":"source"}],"exploitRefs":["https://www.exploit-db.com/exploits/45202/"]}