CVE-2024-22611 SQL injection in n/a
An attacker can execute arbitrary SQL commands in OpenEMR, potentially reading or modifying sensitive medical data.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- None listed
What is CVE-2024-22611?
CVE-2024-22611 is a critical SQL injection vulnerability in Open-Emr Openemr, published on 3 Apr 2025. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
OpenEMR 7.0.2 is vulnerable to SQL Injection via \openemr\library\classes\Pharmacy.class.php, \controllers\C_Pharmacy.class.php and \openemr\controller.php.
Weakness: CWE-89
Which versions are affected by CVE-2024-22611?
It affects 1 product.
Products include Open-Emr Openemr.
How do I fix CVE-2024-22611?
No fix has been published for CVE-2024-22611 yet. Limit exposure of the affected software until one is available.
Use parameterised queries everywhere and never build SQL by joining strings. Upgrade affected software first; a web application firewall only buys time. More about SQL injection.
Is CVE-2024-22611 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-22611 exists.
Other vulnerabilities in Open-Emr Openemr
- CVE-2026-24898 OpenEMR has an Unauthenticated MedEx Token Disclosure
- CVE-2026-24849 OpenEMR Arbitrary File Read Vulnerability
- CVE-2026-24908 OpenEMR has SQL Injection in Patient API Sort Parameter
- CVE-2022-2734 Improper Restriction of Rendered UI Layers or Frames in openemr/openemr
- CVE-2024-37734 Privilege escalation in n/a
Sources
Also known as GHSA-xmgg-6wgj-628j.