Technical impact
The vulnerability is a stored SQL injection in OpenEMR versions prior to 8.5.0. History layout field identifiers entered via edit_layout.php and LBF source-H fields are incorporated without validation into an INSERT statement for patients lacking a history_data record. An attacker who can submit such identifiers can inject arbitrary SQL, such as SLEEP or data‑retrieval statements, resulting in potential denial‑of‑service or unauthorized data exposure. This flaw corresponds to CWE‑89 and carries a CVSS score of 4.6, indicating a moderate severity.
Affected Systems
OpenEMR installations that use any version before 8.5.0 are affected. The vulnerability applies to all deployments of the openemr product where the edit_layout.php or LBF save functionality is enabled and patients lacking a history_data row exist.
Risk and Exploitability
The risk is moderate due to the potential for unauthorized data access and denial of service, but the low exploitation probability and absence from KEV moderate the urgency. Timely application of vendor updates remains essential to mitigate this risk.