Technical impact
The OpenEMR vulnerability is a stored SQL injection occurring in the getByPatientDemographics() routine. An attacker can supply a malicious field_id that is concatenated unchecked into the patient search WHERE clause, allowing the database query to execute arbitrary SQL. Because the query runs with the privileges of the authenticated user, the flaw is classified as CWE‑89 and enables the attacker to read records from the patient_data and users_secure tables. The result is unauthorized data exposure without requiring elevated privileges.
Affected Systems
All OpenEMR installations before version 8.5.0 are vulnerable. No additional sub‑release information is provided, so any build older than 8.5.0 should be considered affected.
Risk and Exploitability
The CVSS score of 8.3 classifies this as high severity, while the EPSS score of less than 1% indicates a very low probability of exploitation at the current time. The vulnerability is not listed in the CISA KEV catalog. To exploit the flaw an attacker must first gain Layout Editor access to inject a harmful field_id; thereafter any authenticated user can trigger the injection and exfiltrate sensitive patient and user data, thereby compromising confidentiality.