OpenEMR Vulnerable to Critical SQL Injection


Advisory by Netsparker (now Invicti)
Name: SQL Injection Vulnerability in OpenEMR
Software: OpenEMR 4.1.0 and possibly below.
Vendor Homepage:
Vulnerability Type: SQL Injection
Severity: Critical
Researcher: Canberk Bolat
Advisory Reference: NS-12-001


OpenEMR is a Free and Open Source electronic health records and medical practice management application. OpenEMR is ONC Complete Ambulatory EHR certified and features fully integrated electronic health records, practice management, scheduling, electronic billing, and internationalization.


OpenEMR is affected by a SQL Injection vulnerability in version 4.1.0.
Example PoC url is as follows :'%2b(SELECT%201%20FROM%20(SELECT%20SLEEP(25))A)%2b'

For more information, read the section SQL injection.


The vendor released a patch for this vulnerability. Please see the references.


It It has been discovered on testing of Invicti’s Web Application Security Scanner.


  1. Vendor Url / Patch:
  2. MSL Advisory Link: /sql-injection-vulnerability-in-openemr/
  3. Invicti Advisories: /web-applications-advisories/

About Invicti

Invicti Security is transforming the way web applications are secured. Invicti empowers organizations in every industry to scale their overall security operations, make the best use of their security resources, and engage developers in helping to improve their overall security posture.