SQL Injection in Openemr
CVE-2026-126425
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.
Vulnerability class: SQL Injection
Published · last modified .
CVSS v3 metric
CVSS v3 base score 7.2 (High). Vector: CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:C/C:H/I:L/A:L.
EPSS exploit prediction
EPSS 0.002, 14.2th percentile (scored ); unchanged over 30 days. About EPSS.
Affected products
Weakness classification (CWE)
References
- github.com/openemr/openemr/security/advisories/GHSA-fq58-jp5g-x44q (vendor-advisory)
- www.vulncheck.com/advisories/openemr-before-8.5.0-stored-sql-injection-via-hist… (third-party-advisory)