CVE-2026-126425

OpenEMR before 8.5.0 Stored SQL Injection via History Layout Field Identifiers

Published Nov 13, 2026 CVSS 4.0 · 4.6 Medium EPSS < 1% KEV · Not listed
Description
OpenEMR before 8.5.0 contains a stored SQL injection vulnerability in which History layout field identifiers saved through edit_layout.php, including HIS fields and LBF source-H fields, are placed unvalidated into an INSERT statement for patients without a history_data row. Users with admin/super and patients/med write access can trigger history_save.php or LBF saves to execute SQL functions like SLEEP, tying up database workers or accessing data beyond their privileges.

Analysis

AI-generated

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.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade OpenEMR to version 8.5.0 or later to receive the fix for the stored SQL injection.
  • If an immediate update is not possible, restrict use of edit_layout.php and LBF source-H functionality to trusted administrators and revoke unnecessary write access for patient/med users.
  • Implement strict input validation or sanitization for all layout field identifiers to prevent SQL injection, following CWE‑89 guidance.
  • Monitor database activity for abnormal queries such as SLEEP or other injection patterns and apply database‑level permissions to limit read/write scope for compromised accounts.

Generated by OpenCVE AI on November 14, 2026 at 15:26 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Openemr
Openemr openemr
Vendors & Products Openemr
Openemr openemr
Type Values Removed Values Added
Description OpenEMR before 8.5.0 contains a stored SQL injection vulnerability in which History layout field identifiers saved through edit_layout.php, including HIS fields and LBF source-H fields, are placed unvalidated into an INSERT statement for patients without a history_data row. Users with admin/super and patients/med write access can trigger history_save.php or LBF saves to execute SQL functions like SLEEP, tying up database workers or accessing data beyond their privileges.
Title OpenEMR before 8.5.0 Stored SQL Injection via History Layout Field Identifiers
First Time appeared Open-emr
Open-emr openemr
Weaknesses CWE-89
CPEs cpe:2.3:a:open-emr:openemr:*:*:*:*:*:*:*:*
Vendors & Products Open-emr
Open-emr openemr
References
Metrics cvssV3_1

{'score': 7.2, 'vector': 'CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:C/C:H/I:L/A:L'}

cvssV4_0

{'score': 4.6, 'vector': 'CVSS:4.0/AV:N/AC:H/AT:N/PR:H/UI:N/VC:L/VI:L/VA:L/SC:H/SI:N/SA:N'}

Weaknesses
  • CWE-89

    Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')

Sources

Status
PUBLISHED
Assigner
VulnCheck
Published
Updated
Nov 17, 2026, 8:37 PM
Reserved
Nov 10, 2026, 9:36 PM
Status
Analyzed
Published
Nov 13, 2026, 10:17 AM
Modified
Nov 17, 2026, 9:17 PM