SQL injection in OpenEMR - CVE-2017-16540

 

SQL injection in OpenEMR - CVE-2017-16540

Published: November 30, 2017 / Updated: June 17, 2021


Vulnerability identifier: #VU9457
CSH Severity: Low
CVSS v4.0: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N/E:P/U:Clear
CVE-ID: CVE-2017-16540
CWE-ID: CWE-89
Exploitation vector: Remote access
Exploit availability: Public exploit is available
Vendor: OpenEMR
Affected software:
OpenEMR

Detailed vulnerability description

The vulnerability allows a remote attacker to execute arbitrary SQL commands in web application database.

The vulnerability exists in the setup.php installation scriptdue to insufficient sanitization of user-supplied data. A remote attacker can send a specially crafted HTTP request to vulnerable script and execute arbitrary SQL commands in web application database.

Successful exploitation of the vulnerability may allow an attacker to gain administrative access to vulnerable web application.


How to mitigate CVE-2017-16540

Install update from vendor's website (5.0.0 Patch 6).

Sources