CVE-2024-22611

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

Critical · published April 3, 2025

CVSS v3.1
9.8
EPSS
6%
Percentile
93.6
In the wild
Unconfirmed
What it is

🚨 An SQL injection vulnerability lurks in OpenEMR 7.0.2 that can expose your entire database—like leaving the back door open at a pharmacy! 🔥 Imagine a pharmacy where anyone can slip in a prescription without any verification—this SQL injection lets attackers bypass security barriers, just like an unguarded entryway allows unauthorized access. 🎭 An attacker could exploit this vulnerability to access sensitive patient data, manipulate records, and even carry out unauthorized actions within the system—this is incredibly dangerous and could lead to data breaches that compromise patient confidentiality and trust. 💔

Put simply

Imagine a pharmacy where anyone can slip in a prescription without any verification—this SQL injection lets attackers bypass security barriers, just like an unguarded entryway allows unauthorized access. 🎭 This vulnerability allows attackers to execute arbitrary SQL commands through unsanitized input in specific files like Pharmacy.class.php, enabling them to manipulate database queries.

What to do

An attacker could exploit this vulnerability to access sensitive patient data, manipulate records, and even carry out unauthorized actions within the system—this is incredibly dangerous and could lead to data breaches that compromise patient confidentiality and trust. 💔 Immediate action is crucial! Upgrade to OpenEMR version 7.0.3 or later to patch this critical flaw. Additionally, review your input validation processes to ensure all user inputs are sanitized and secured against SQL injection. You've got this! Follow these steps, and you'll be well on your way to securing your system! 🛡️

The record
Technical detail
CVSS v3.1
9.8 · CRITICAL
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
CVSS v4.0
Not supplied
EPSS
0.06315 · 93.6th percentile
Published
2025-04-03T00:00Z
EPSS history
Timeline
  • 03 APR 00:00Z
    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
    cvelistv5