{"id":"CVE-2018-15139","published":"2018-08-13T18:00:00Z","modified":"2024-08-05T09:46:25Z","title":"Unrestricted file upload in interface/super/manage_site_files.php in versions of OpenEMR before 5.0.1.4 allows a…","vendor":null,"product":null,"tier":"tail","description":{"text":"Unrestricted file upload in interface/super/manage_site_files.php in versions of OpenEMR before 5.0.1.4 allows a remote authenticated attacker to execute arbitrary PHP code by uploading a file with a PHP extension via the images upload form and accessing it in the images directory.","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.19043,"percentile":0.97376,"provenance":"source"},"cwes":[],"references":[{"url":"https://www.databreaches.net/openemr-patches-serious-vulnerabilities-uncovered-by-project-insecurity/","tags":["x_refsource_MISC"]},{"url":"https://github.com/openemr/openemr/pull/1757/commits/c2808a0493243f618bbbb3459af23c7da3dc5485","tags":["x_refsource_CONFIRM"]},{"url":"http://packetstormsecurity.com/files/163110/OpenEMR-5.0.1.3-Shell-Upload.html","tags":["x_refsource_MISC"]},{"url":"http://packetstormsecurity.com/files/163482/OpenEMR-5.0.1.3-Shell-Upload.html","tags":["x_refsource_MISC"]},{"url":"https://github.com/Hacker5preme/Exploits/tree/main/CVE-2018-15139-Exploit","tags":["x_refsource_MISC"]}],"priority":{"score":24.5,"factors":[{"name":"EPSS percentile","points":19.48},{"name":"Public exploit code","points":5.0}]},"exploitSources":{"exploitdb":{"count":2,"earliest":"2021-06-14"},"pocGithub":{"count":1,"skipped":0,"earliest":"2021-07-05","earliestUrl":"https://github.com/sec-it/exploit-CVE-2018-15139","repos":[{"name":"sec-it/exploit-CVE-2018-15139","url":"https://github.com/sec-it/exploit-CVE-2018-15139","stars":2,"created":"2021-07-05"}]},"first":{"date":"2021-06-14","source":"Exploit-DB","url":"https://www.exploit-db.com/exploits/49998"},"provenance":"source"},"summary":{"text":"The flaw is an unrestricted file upload in the interface/super/manage_site_files.php component of OpenEMR, affecting versions before 5.0.1.4. An remote attacker who is authenticated can upload a file with a PHP extension through the images upload form and then access it in the images directory to execute arbitrary PHP code.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T06:46:38Z"},"euvd":{"id":"EUVD-2018-7019","exploited":false,"provenance":"source"},"exploits":[{"id":49998,"url":"https://www.exploit-db.com/exploits/49998","title":"OpenEMR 5.0.1.3 - 'manage_site_files' Remote Code Execution (Authenticated)","date":"2021-06-14","verified":false,"provenance":"source"},{"id":50122,"url":"https://www.exploit-db.com/exploits/50122","title":"OpenEMR 5.0.1.3 - 'manage_site_files' Remote Code Execution (Authenticated) (2)","date":"2021-07-13","verified":false,"provenance":"source"}],"exploitRefs":["http://packetstormsecurity.com/files/163110/OpenEMR-5.0.1.3-Shell-Upload.html","http://packetstormsecurity.com/files/163482/OpenEMR-5.0.1.3-Shell-Upload.html","https://github.com/Hacker5preme/Exploits/tree/main/CVE-2018-15139-Exploit"],"lineage":{"familyId":"fam-openemr-openemr-cve-2018-10571","parents":[{"from":"CVE-2018-10571","to":"CVE-2018-15139","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["interface/billing/sl_eob_search.php","interface/de_identification_forms/find_code_popup.php","interface/de_identification_forms/find_immunization_popup.php","interface/fax/fax_dispatch.php"],"commits":["https://github.com/openemr/openemr/commit/699e3c2ef68545357cac714505df1419b8bf2051","https://github.com/openemr/openemr/commit/c2808a0493243f618bbbb3459af23c7da3dc5485"],"basis":"shared function","functions":["check_search_str","npopup"]}]},{"from":"CVE-2018-10572","to":"CVE-2018-15139","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["interface/billing/sl_eob_search.php","interface/de_identification_forms/find_code_popup.php","interface/de_identification_forms/find_immunization_popup.php","interface/fax/fax_dispatch.php"],"commits":["https://github.com/openemr/openemr/commit/699e3c2ef68545357cac714505df1419b8bf2051","https://github.com/openemr/openemr/commit/c2808a0493243f618bbbb3459af23c7da3dc5485"],"basis":"shared function","functions":["check_search_str","npopup"]}]},{"from":"CVE-2018-10573","to":"CVE-2018-15139","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["interface/billing/sl_eob_search.php","interface/de_identification_forms/find_code_popup.php","interface/de_identification_forms/find_immunization_popup.php","interface/fax/fax_dispatch.php"],"commits":["https://github.com/openemr/openemr/commit/699e3c2ef68545357cac714505df1419b8bf2051","https://github.com/openemr/openemr/commit/c2808a0493243f618bbbb3459af23c7da3dc5485"],"basis":"shared function","functions":["check_search_str","npopup"]}]}],"children":[{"from":"CVE-2018-15139","to":"CVE-2022-2729","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["interface/super/manage_site_files.php"],"commits":["https://github.com/openemr/openemr/commit/c2808a0493243f618bbbb3459af23c7da3dc5485","https://github.com/openemr/openemr/commit/74d21039aec641b2c406e3baf238ae4602a968b6"],"basis":"rarely changed file"}]},{"from":"CVE-2018-15139","to":"CVE-2023-2942","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["portal/add_edit_event_user.php","portal/find_appt_popup_user.php"],"commits":["https://github.com/openemr/openemr/commit/c2808a0493243f618bbbb3459af23c7da3dc5485","https://github.com/openemr/openemr/commit/c1c0805696ca68577c37bf30e29f90e5f3e0f1a9"],"basis":"shared function","functions":["doOneDay"]}]},{"from":"CVE-2018-15139","to":"CVE-2023-2943","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["portal/add_edit_event_user.php","portal/find_appt_popup_user.php"],"commits":["https://github.com/openemr/openemr/commit/c2808a0493243f618bbbb3459af23c7da3dc5485","https://github.com/openemr/openemr/commit/c1c0805696ca68577c37bf30e29f90e5f3e0f1a9"],"basis":"shared function","functions":["doOneDay"]}]}]}}