Technical impact
OpenEMR before version 8.4.0 has a mass assignment flaw in the OnsiteDocument query API of the patient portal. Parameters such as Id_BitwiseAnd are incorporated directly into the SQL WHERE clause without quoting, giving authenticated patient portal users the ability to inject SQL code. Through this vulnerability the attacker can read any database table, exposing personal health information and potentially staff credentials. The weakness is a classic SQL injection defect, identified as CWE‑89.
Affected Systems
All OpenEMR deployments running versions older than 8.4.0, regardless of the specific minor or patch release, are affected. The issue exists in the patient portal component of the OpenEMR application and is not isolated to a particular operating system or database platform.
Risk and Exploitability
The CVSS score of 7.1 classifies this flaw as high severity, and because it requires an authenticated user session, the attack vector is application‑level. The exploit does not depend on elevated privileges beyond a normal patient portal login, making it practically feasible for a user who has legitimate portal access. EPSS data is not available, and the vulnerability is not listed in the CISA KEV catalog. Overall, the risk is high for any OpenEMR instance serving patients and staff.