Arbitrary file upload in OpenEMR - CVE-2018-15139
Published: August 13, 2018 / Updated: November 25, 2021
Vulnerability details
The vulnerability allows a remote authenticated user to execute arbitrary code.
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.
Affected software
How to mitigate CVE-2018-15139
Links to Public Exploits and PoC-codes
- Exploit #7080 - OpenEMR 5.0.1.3 - 'manage_site_files' Remote Code Execution (Authenticated) (2) (November 25, 2021)
- Exploit #6518 - exploit-CVE-2018-15139 (OpenEMR < 5.0.1.4 - (Authenticated) File upload - Remote command execution) (July 5, 2021)
- Exploit #5571 - OpenEMR 5.0.1.3 - 'manage_site_files' Remote Code Execution (Authenticated) (June 17, 2021)