Skip to main content

OpenEMR CVE-2026-124469

| EUVDEUVD-2026-119525 CRITICAL
SQL Injection (CWE-89)
2026-11-08 VulnCheck GHSA-v2w6-cjv6-3m3w
9.4
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Authenticate as low-priv clinician (nurse)
  2. Delivery
    Open encounter and POST Fee Sheet product line
  3. Exploit
    Inject constant subquery into ORDER BY via prod[N][warehouse]
  4. Execution
    Run blind time-based oracle to read database bit-by-bit
  5. Impact
    Exfiltrate users_secure bcrypt hashes and crack offline for admin takeover

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Parameterized queries, prepared statements
MITRE ATT&CK

2 techniques across 2 tactics: Initial Access, Persistence

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Requires an authenticated session as any user whose role passes aclCheckForm('fee_sheet') (ACO encounters|coding) - which in a default install includes low-privileged clinical staff such as the 'nurse'/Clinician role - plus an openable encounter context; no provider, admin, or special global is needed because the Fee Sheet is a core form. The injection point is the per-product-line POST field prod[N][warehouse] interpolated into an ORDER BY clause in DrugSalesService::sellDrug. The SELL_FROM_ONE_WAREHOUSE=true barrier (a bound AND di.warehouse_id=? that yields zero rows) is bypassed by placing a non-correlated constant subquery as an extra ORDER BY term, which the DB evaluates once at query setup regardless of row count, giving a reliable blind timing oracle. LIMITING factors: authentication is required (PR:L, not unauthenticated), and exploitation is read-only - single-statement, no stacked writes, and INTO OUTFILE/FILE is blocked by the zero-row barrier and OpenEMR's default database-scoped grant, so there is no RCE on a default install. Notably, the product line carries no CSRF token, removing one typical mitigating factor.

Impact

This is a genuine high-priority issue, not a CVSS-inflated one. The supplied CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:L/UI:N, score 9.4) indicates a network-reachable, low-complexity attack needing only low privileges and no user interaction, and the vuln.today decision label is act_now. Crucially, exploitability is backed by evidence, not just score: the OpenEMR GHSA advisory (GHSA-cg8c-2v5q-29g7) publishes full reproduction steps and a verified demonstration dated 2026-06-03 that extracted a real admin bcrypt hash ($2y$12...) as a low-privileged 'nurse' account, so a working public PoC exists. Signals to weigh against that: the CVE is NOT listed in CISA KEV (no confirmed active exploitation - do not treat PoC availability as in-the-wild use), and no EPSS score was provided in the input, so the statistical probability of near-term mass exploitation cannot be quoted here. One internal tension to flag: the advisory itself scores the flaw two ways - 9.9 (S:C/C:H/I:H/A:H, prior-art-consistent with CVE-2026-24908) versus a conservative 7.7 (S:C/C:H/I:N/A:N) because the direct SQL primitive is a read-only ORDER-BY timing oracle; the I/A impact is indirect (offline hash cracking → account takeover) rather than a direct write. Net: authenticated but low barrier, confirmed reproducible, patch available, healthcare PHI and auth hashes at stake - prioritize patching to 8.3.0.

Exploit ScenarioDerived

A low-privileged clinical user (e.g. the default 'nurse' role, which passes aclCheckForm('fee_sheet')) opens any encounter and saves a Fee Sheet product line whose prod[N][warehouse] field carries a constant subquery that acts as a blind time-based oracle. Because there is no CSRF token on the product line and the response time reveals each extracted bit, the attacker iterates one authenticated POST per bit to read the entire database - all patient PHI plus users_secure bcrypt hashes for admin and providers - then cracks those hashes offline to take over higher-privileged accounts. A verified working PoC with reproduction steps is published in the vendor GHSA advisory.

Act Now Prioritize within 24-48h. Why: CRITICAL severity.
Patch available 0.3% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Nov 08, 2026

Blind SQL injection in OpenEMR before 8.3.0 lets any authenticated user whose role passes the Fee Sheet ACL - including low-privileged Clinician/nurse accounts in a default install - run a time-based oracle and read the entire database, including patient records and users_secure bcrypt hashes. The flaw is a read-only, single-statement ORDER BY injection in DrugSalesService::sellDrug via the prod[N][warehouse] POST field; stacked writes and INTO OUTFILE/RCE are blocked on a default database grant. A public vendor advisory documents a verified proof-of-concept reproduction, no CISA KEV active exploitation is listed, and the vendor fix is OpenEMR 8.3.0.

RemediationAI

Vendor-released patch: 8.3.0. Upgrade OpenEMR to 8.3.0, the fixed release for all versions below 8.3.0, following the vendor advisory at https://github.com/openemr/openemr/security/advisories/GHSA-cg8c-2v5q-29g7. The upstream code fix is to cast the warehouse value to int and bind it, build the ORDER BY from a server-side whitelist, use the existing escape_identifier()/escape_sql_column_name()/QueryUtils::escapeColumnName() helpers in dynamic identifier/sort contexts, and add CsrfUtils::verifyCsrfToken() to the Fee Sheet save path. If immediate upgrade is not possible, restrict the fee_sheet ACO (encounters|coding) to only essential staff - trade-off: those clinical users lose the Fee Sheet workflow - and ensure the application database account never holds the FILE privilege (the installer default), which keeps the read-only primitive from becoming file-write/RCE. Monitor database general_log or slow query logs for ORDER BY terms containing subqueries or IF(...) from Fee Sheet requests; this can detect attempts but does not remediate the flaw. VulnCheck advisory: https://www.vulncheck.com/advisories/openemr-before-8.3.0-sql-injection-via-fee-sheet-warehouse-parameter.

Affected VersionsENISA

OpenEMR 0 <8.3.0

Affected Packages

euvd openemr fix: 8.3.0

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

CVE-2026-124469 is CWE-89 SQL injection in OpenEMR's PHP fee-sheet inventory path. The POST array prod[] supplies per-line drug_id and warehouse values; library/FeeSheet.class.php::checkInventory() reads the warehouse value and passes it through sellDrug() to DrugSalesService::sellDrug(), where it is string-interpolated into an ORDER BY clause ($orderby = "di.warehouse_id != '$default_warehouse', "; ... ORDER BY $orderby). The production SELL_FROM_ONE_WAREHOUSE=true path also appends a bound AND di.warehouse_id = ? predicate, which zeroes the result set and defeats naive per-row payloads; the bypass is a non-correlated (constant) subquery added as an extra ORDER BY term, evaluated once at query setup regardless of row count, yielding a reliable time-based blind oracle (heavy true branch about 1.24 s versus about 0.02 s false). Scope is Changed because the injected read crosses the whole database, including users_secure authentication hashes, but the primitive is read-only: a single statement, no stacked queries, and INTO OUTFILE is blocked by the zero-row barrier and OpenEMR's default database-scoped grant. The affected CPE is cpe:2.3:a:openemr:openemr:*:*:*:*:*:*:*:* for versions before 8.3.0.

Know when Openemr gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (VulnCheck) PRIMARY 9.4 CRITICAL
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H
vuln.today AI 7.7 HIGH

Network-reachable, low-complexity injection needing only a low-priv authenticated role (PR:L); the direct primitive is a read-only ORDER-BY oracle so C:H but I:N/A:N, with S:C as it reads the users_secure auth table beyond the form's data.

3.1 AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:N/A:N
4.0 AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N

Primary rating from Vendor (VulnCheck).

CVSS VectorVendor: VulnCheck

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
Low
User Interaction
None
Vulnerable system: Confidentiality
High
Vulnerable system: Integrity
High
Vulnerable system: Availability
High
Subsequent system: Confidentiality
High
Subsequent system: Integrity
High
Subsequent system: Availability
High

Lifecycle Timeline

2
Patch available
Nov 08, 2026 - 14:01 EUVD
CVE Published
Nov 08, 2026 - 13:15 cve.org
CRITICAL 9.4

DescriptionCVE.org

OpenEMR before 8.3.0 contains an SQL injection vulnerability in the Fee Sheet drug-inventory lookup (DrugSalesService::sellDrug) that interpolates the prod[N][warehouse] POST field into an ORDER BY clause. Low-privileged authenticated users can submit Fee Sheet product lines with constant subqueries to run a time-based blind oracle, extracting patient data and users_secure bcrypt hashes.

Technical POC Analysis

CWE-89 SQL injection.

Full technical POC analysis - root cause, step-by-step exploitation and patch breakdown - is part of the Pro and Business plans.

Executive ViewAI

Why It Matters

CVE-2026-124469 is a critical blind SQL injection in OpenEMR (before 8.3.0) that allows any authenticated user with Fee Sheet access, including low-privileged clinicians and nurses, to extract the entire database, including patient records and password hashes. This threatens the confidentiality of sensitive patient data and could enable further attacks, requiring immediate leadership attention due to regulatory and reputational risks.

Business Impact: High
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.3%
Top 76% exploitable
Prevalence
Medium
most popular open-source EHR, common in clinics but healthcare-sector-specific
Social Media
2
Sightings
Data Quality
5 sources
Confidence: Medium

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity CRITICAL
CISA KEV No
Public POC No
EPSS 0.3%
Patch available Yes
Active threat No
Deciding rule
CRITICAL severity
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
No
Human Impact
High

Priority Score

47
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +47
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

SQL injection exploits the way applications construct database queries by mixing user input directly into SQL statements.

CVE-2013-10044 HIGH POC
8.7 Aug 01

An authenticated SQL injection vulnerability exists in OpenEMR ≤ 4.1.1 Patch 14 that allows a low-privileged attacker to

CVE-2026-24898 CRITICAL POC
10.0 Mar 03

Unauthenticated token disclosure in OpenEMR before 8.0.0. CVSS 10.0. PoC and patch available.

CVE-2026-24848 CRITICAL POC
9.9 Mar 03

Path traversal in OpenEMR 7.0.4 disposeDocument() allows file access. PoC available.

CVE-2026-24849 CRITICAL POC
9.9 Feb 25

Path traversal in OpenEMR electronic health records before fix allows authenticated users to read arbitrary files on the

CVE-2026-24908 CRITICAL POC
9.9 Feb 25

SQL injection in OpenEMR electronic health records before fix. Authenticated users can execute arbitrary SQL through the

CVE-2024-22611 CRITICAL POC
9.8 Apr 03

OpenEMR 7.0.2 is vulnerable to SQL Injection via \openemr\library\classes\Pharmacy.class.php, \controllers\C_Pharmacy.cl

CVE-2024-37734 CRITICAL POC
9.8 Jun 26

An issue in OpenEMR 7.0.2 allows a remote attacker to escalate privileges viaa crafted POST request using the noteid par

CVE-2026-25146 CRITICAL POC
9.6 Mar 03

Information disclosure in OpenEMR 5.0.2 to before 8.0.0 exposes sensitive data. PoC and patch available.

CVE-2026-39932 CRITICAL POC
9.4 Aug 03

Remote code execution in OpenEMR through 8.2.0 lets an authenticated administrator poison the document category tree so

CVE-2012-0992 HIGH POC
8.5 Feb 07

interface/fax/fax_dispatch.php in OpenEMR 4.1.0 allows remote authenticated users to execute arbitrary commands via shel

CVE-2026-124450 CRITICAL POC
9.3 Nov 08

Authenticated low-privilege users can exploit OpenEMR before 8.3.0 to read and write arbitrary files through the fax/sms

CVE-2015-4453 MEDIUM
5.0 Jul 05

interface/globals.php in OpenEMR 2.x, 3.x, and 4.x before 4.2.0 patch 2 allows remote attackers to bypass authentication

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy