Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAuthenticate as low-priv clinician (nurse)
-
DeliveryOpen encounter and POST Fee Sheet product line
-
ExploitInject constant subquery into ORDER BY via prod[N][warehouse]
-
ExecutionRun blind time-based oracle to read database bit-by-bit
-
ImpactExfiltrate 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. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – 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
Affected Packages
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
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
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.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
Lifecycle Timeline
2DescriptionCVE.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
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.
Apply vendor patch.
Threat Intelligence Overview
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.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
SQL injection exploits the way applications construct database queries by mixing user input directly into SQL statements.
An authenticated SQL injection vulnerability exists in OpenEMR ≤ 4.1.1 Patch 14 that allows a low-privileged attacker to
Unauthenticated token disclosure in OpenEMR before 8.0.0. CVSS 10.0. PoC and patch available.
Path traversal in OpenEMR 7.0.4 disposeDocument() allows file access. PoC available.
Path traversal in OpenEMR electronic health records before fix allows authenticated users to read arbitrary files on the
SQL injection in OpenEMR electronic health records before fix. Authenticated users can execute arbitrary SQL through the
OpenEMR 7.0.2 is vulnerable to SQL Injection via \openemr\library\classes\Pharmacy.class.php, \controllers\C_Pharmacy.cl
An issue in OpenEMR 7.0.2 allows a remote attacker to escalate privileges viaa crafted POST request using the noteid par
Information disclosure in OpenEMR 5.0.2 to before 8.0.0 exposes sensitive data. PoC and patch available.
Remote code execution in OpenEMR through 8.2.0 lets an authenticated administrator poison the document category tree so
interface/fax/fax_dispatch.php in OpenEMR 4.1.0 allows remote authenticated users to execute arbitrary commands via shel
Authenticated low-privilege users can exploit OpenEMR before 8.3.0 to read and write arbitrary files through the fax/sms
interface/globals.php in OpenEMR 2.x, 3.x, and 4.x before 4.2.0 patch 2 allows remote attackers to bypass authentication
EUVD-2026-119525
GHSA-v2w6-cjv6-3m3w
NVD
CVE.org
EPSS
Exploit-DB