---
id: CVE-2026-126425
title: OpenEMR before 8.5.0 Stored SQL Injection via History Layout Field Identifiers
summary: >-
  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…
severity: high
cvss: 7.2
cvssVector: 'CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:C/C:H/I:L/A:L'
cvssSource: cna
cwe:
  - CWE-89
vendor: openemr
product: openemr
affected:
  - openemr < 8.5.0
ssvc:
  exploitation: poc
  automatable: 'no'
  technicalImpact: partial
  timestamp: '2026-11-17T20:24:18.868674Z'
exploitAvailable: true
published: '2026-11-13'
updated: '2026-11-17'
sourceUpdated: '2026-11-17T20:37:58.887Z'
source: CVEORG
sourceUrl: 'https://www.cve.org/CVERecord?id=CVE-2026-126425'
references:
  - url: 'https://github.com/openemr/openemr/security/advisories/GHSA-fq58-jp5g-x44q'
    label: GitHub Security Advisory (GHSA-fq58-jp5g-x44q)
  - url: >-
      https://www.vulncheck.com/advisories/openemr-before-8.5.0-stored-sql-injection-via-history-layout-field-identifiers
    label: >-
      VulnCheck Advisory: OpenEMR before 8.5.0 Stored SQL Injection via History
      Layout Field Identifiers
tags:
  - cve.org
  - exploit-available
epss: 0.00314
epssPercentile: 0.24509
ingestedAt: '2026-11-13T10:36:39.541Z'
---

## Overview

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.

## Affected

- `openemr < 8.5.0`

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
