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: 6.9 [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]
CVE-ID: CVE-2017-16540
CWE-ID: CWE-89
Exploitation vector: Remote access
Exploit availability: Public exploit is available

Vulnerability details

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.


Affected software

OpenEMR

How to mitigate CVE-2017-16540

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

OpenEMR - update to 5.0.0.6

Links to Public Exploits and PoC-codes

External References

Related Security Bulletins