{"id":"CVE-2026-126425","summary":"OpenEMR before 8.5.0 Stored SQL Injection via History Layout Field Identifiers","details":"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.","aliases":["GHSA-fq58-jp5g-x44q"],"modified":"2026-11-18T21:01:11.596335617Z","published":"2026-11-13T09:35:30.379Z","database_specific":{"cna_assigner":"VulnCheck","cwe_ids":["CWE-89"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/126xxx/CVE-2026-126425.json"},"references":[{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/126xxx/CVE-2026-126425.json"},{"type":"ADVISORY","url":"https://github.com/openemr/openemr/security/advisories/GHSA-fq58-jp5g-x44q"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-126425"},{"type":"ADVISORY","url":"https://www.vulncheck.com/advisories/openemr-before-8.5.0-stored-sql-injection-via-history-layout-field-identifiers"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/openemr/openemr","events":[{"introduced":"0"},{"fixed":"c1b2b8bcbe91aa81858f7ba8b25c31d9a82639a5"}],"database_specific":{"extracted_events":[{"strategy":"StandardRange","range":[{"introduced":"0"},{"fixed":"8.5.0"}],"source":"AFFECTED_FIELD"},{"cpe":"cpe:2.3:a:open-emr:openemr:*:*:*:*:*:*:*:*","range":[{"introduced":"0"},{"fixed":"8.5.0"}],"source":"CPE_RANGE"}]}}],"versions":["v3_0_1","v3_0_0","v2_9_0","v2_8_3","v2_8_2","v2_8_1","v2_8_0","v2_7_3-rc1","v2_7_2","v2_7_2-rc2","v2_7_2-rc1"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-126425.json"}}],"schema_version":"1.9.2","severity":[{"type":"CVSS_V4","score":"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"}]}