{"id":"CVE-2018-15142","aliases":["EUVD-2018-7022","GHSA-ffhh-fjrg-f4fj"],"status":"published","title":"Directory traversal in portal/import_template.php in versions of OpenEMR before 5.0.1.4 allows a...","description":"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.","severity":{"version":"3.0","score":8.8,"vector":"CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","level":"high","assessor":"primary","from":"nvd"},"epss":{"day":"2026-11-07","score":0.17989,"percentile":0.97206,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":true,"fix_available":false},"cwes":["CWE-22"],"published":"2018-08-13T18:00:00Z","modified":"2026-10-20T10:50:20Z","exploits":[{"source":"exploitdb","id":"EDB-45202","title":"OpenEMR 5.0.1.3 - (Authenticated) Arbitrary File Actions","type":"webapps","platform":"linux","date":"2018-08-16","verified":true,"url":"https://www.exploit-db.com/exploits/45202"}],"products":[{"vendor":"open-emr","product":"openemr"}],"references":[{"url":"https://www.databreaches.net/openemr-patches-serious-vulnerabilities-uncovered-by-project-insecurity/","tags":["x_refsource_MISC","x_transferred","Third Party Advisory","advisory"]},{"url":"https://www.exploit-db.com/exploits/45202/","tags":["exploit","x_refsource_EXPLOIT-DB","x_transferred","Exploit","Third Party Advisory","VDB Entry","evidence"]},{"url":"https://github.com/openemr/openemr/pull/1765/files","tags":["x_refsource_CONFIRM","x_transferred","Patch","Third Party Advisory","fix"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2018-15142"},{"url":"https://github.com/advisories/GHSA-ffhh-fjrg-f4fj"}],"sources":{"cve":[{"id":"CVE-2018-15142","description":"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.","status":"published","published":"2018-08-13T18:00:00Z","modified":"2024-08-05T09:46:25.462Z","updated_at":"2026-11-02T14:35:03.825765Z"}],"euvd":[{"id":"EUVD-2018-7022","description":"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.","status":"published","published":"2018-08-13T18:00:00Z","modified":"2024-08-05T09:46:25Z","updated_at":"2026-11-03T02:39:45.27774Z"}],"ghsa":[{"id":"GHSA-ffhh-fjrg-f4fj","title":"Directory traversal in portal/import_template.php in versions of OpenEMR before 5.0.1.4 allows a...","description":"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.","status":"published","published":"2022-05-14T02:45:26Z","modified":"2023-02-02T05:06:32Z","cvss":[{"version":"3.0","score":8.8,"vector":"CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","level":"high"}],"cwes":["CWE-22"],"updated_at":"2026-11-02T14:52:19.633418Z"}],"nvd":[{"id":"CVE-2018-15142","description":"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.","status":"published","published":"2018-08-13T18:29:00.667Z","modified":"2026-06-17T01:42:07.38Z","cvss":[{"version":"3.0","score":8.8,"vector":"CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","level":"high","assessor":"primary"},{"version":"2.0","score":6.5,"vector":"AV:N/AC:L/Au:S/C:P/I:P/A:P","level":"medium","assessor":"primary"}],"cwes":["CWE-22"],"updated_at":"2026-11-02T14:04:35.310988Z"}],"osv":[{"id":"CVE-2018-15142","description":"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.","status":"published","published":"2018-08-13T18:29:00.667Z","modified":"2026-10-20T10:50:20.462538246Z","cvss":[{"version":"3.0","score":8.8,"vector":"CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","level":"high"}],"updated_at":"2026-11-02T15:44:08.242347Z"}]}}
