CVE-2024-22611 SQL injection in n/a

Critical 9.8 Published Updated

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.

All Open-Emr Openemr vulnerabilities

Sources

Also known as GHSA-xmgg-6wgj-628j.

Is CVE-2024-22611 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free