Description
An authenticated SQL injection vulnerability exists in OpenEMR ≤ 4.1.1 Patch 14 that allows a low-privileged attacker to extract administrator credentials and subsequently escalate privileges. Once elevated, the attacker can exploit an unrestricted file upload flaw to achieve remote code execution, resulting in full compromise of the application and its host system.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| OpenEMR Foundation | OpenEMR | ≤ 4.1.1 Patch 14 | — |
Public exploits
Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.
Metasploit 1 module
-
OpenEMR 4.1.1 Patch 14 SQLi Privilege Escalation Remote Code Execution
exploit/unix/webapp/openemr_sqli_privesc_upload
Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.
References
- https://raw.githubusercontent.com/rapid7/metasploit-framework/master/modules/exploits/unix/webapp/openemr_sqli_privesc_upload.rb exploit
- https://www.exploit-db.com/exploits/28329 exploit
- https://www.exploit-db.com/exploits/28408 exploit
- https://www.open-emr.org/ product
- https://github.com/openemr/openemr product
- https://www.vulncheck.com/advisories/openemr-sqli-priv-esc-rce third-party-advisory