Path traversal in OpenEMR - CVE-2019-14530

 

Path traversal in OpenEMR - CVE-2019-14530

Published: August 13, 2019 / Updated: November 25, 2021


Vulnerability identifier: #VU30824
CSH Severity: Medium
CVSS v4.0: CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N/E:P/U:Green
CVE-ID: CVE-2019-14530
CWE-ID: CWE-22
Exploitation vector: Remote access
Exploit availability: Public exploit is available
Vendor: OpenEMR
Affected software:
OpenEMR

Detailed vulnerability description

The vulnerability allows a remote authenticated user to gain access to sensitive information.

An issue was discovered in custom/ajax_download.php in OpenEMR before 5.0.2 via the fileName parameter. An attacker can download any file (that is readable by the user www-data) from server storage. If the requested file is writable for the www-data user and the directory /var/www/openemr/sites/default/documents/cqm_qrda/ exists, it will be deleted from server.


How to mitigate CVE-2019-14530

Install update from vendor's website.

Sources