Skip to main content

OpenEMR CVE-2026-126482

| EUVDEUVD-2026-124942 HIGH
SQL Injection (CWE-89)
2026-11-13 VulnCheck GHSA-xh45-xw7v-4c5r
8.7
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

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

  1. Access
    Authenticate with billing ACL or supply malicious payer ERA
  2. Delivery
    Craft X12 835 with payload in CLP01 element
  3. Exploit
    Upload file to ERA Posting screen
  4. Execution
    Payload concatenated into billing SQL query
  5. Persist
    Error/subquery-based extraction of users_secure hashes
  6. Impact
    Offline crack admin hash for full compromise

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 OpenEMR account holding billing write permissions (acct/bill or acct/eob) to upload an X12 835 ERA remittance file via the ERA Posting screen (interface/billing/era_payments.php), with a valid CSRF token from that page. The payload lives in the CLP01 claim identifier and must split into exactly three space/hyphen-delimited parts and avoid spaces/hyphens (worked around with MySQL /**/ comments) and the X12 element delimiter (re-declared as '|' in the ISA segment to free '*'). A key limiting factor is the required authentication and billing role; however, this is partially offset because ERA files legitimately originate from external payers/clearinghouses, so a malicious or compromised payer file uploaded by a trusted billing clerk triggers the injection without the attacker holding any OpenEMR account. Affects OpenEMR versions before 8.5.0.

Impact

This is a genuine priority, not an inflated high-CVSS score. The CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:L/UI:N) with VC:H/VI:H/VA:H yields 8.7 and is well-supported by the evidence: a network-reachable SQL injection (CWE-89) that any authenticated user with routine billing permissions (acct/bill or acct/eob write) can trigger - not just an administrator. PR:L is correct and honest: exploitation requires an authenticated OpenEMR session, which tempers raw severity versus a fully unauthenticated flaw. A detailed, working proof-of-concept is published in the vendor's own GHSA advisory, including confirmed extraction of the admin bcrypt hash from users_secure on a test instance, so exploitability is effectively demonstrated rather than theoretical. No EPSS score and no CISA KEV entry were provided in the input, so there is no signal of mass or active exploitation at this time; the vuln.today decision label is 'this_week', consistent with a serious, credibly-exploitable flaw that is not yet observed being exploited in the wild. The one notable risk amplifier is the secondary vector: because ERA (X12 835) files legitimately arrive from external payers and clearinghouses, a malicious or compromised payer file can carry the injection and fire when an ordinary billing clerk uploads it - effectively lowering the practical barrier below 'authenticated insider'. No conflicting signals were found between the CVSS vector and the description; both point to authenticated, network-reachable, high-impact SQL injection.

Exploit ScenarioDerived

A user with billing permissions (or an attacker who gets a crafted X12 835 ERA file uploaded by an unwitting billing clerk) submits a remittance file whose CLP01 claim identifier contains a SQL injection payload. When OpenEMR parses and posts the ERA, SLEOB::slInvoiceNumber() concatenates that value into a query unescaped, letting the attacker read any table - including users_secure password hashes - and modify data. A full working proof-of-concept exists in the vendor advisory and was confirmed to extract the admin bcrypt hash.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.5% exploitation probability (EPSS)

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

Alert me

AnalysisAIv1 – Nov 13, 2026

OpenEMR releases before 8.5.0 concatenate the CLP01 claim identifier from uploaded X12 835 remittance (ERA) files directly into a SQL query in SLEOB::slInvoiceNumber(), letting an attacker execute arbitrary SQL against the OpenEMR database - reading any table, including users_secure password hashes and patient PHI, and altering data. The injection is reachable by an authenticated user holding only routine billing write permissions (acct/bill or acct/eob) via the ERA Posting screen, and because ERA files legitimately arrive from external payers and clearinghouses, a malicious or compromised payer file uploaded by a billing clerk in normal business also triggers it. A working proof-of-concept with tested extraction steps is published in the GitHub security advisory, and the vendor has released 8.5.0 as the fix; the assessed severity is high (CVSS 3.1 AV:N/AC:L/PR:L/UI:N/C:H/I:H/A:H) and the priority is to remediate this week.

RemediationAI

Vendor-released patch: OpenEMR 8.5.0 - upgrade all instances to 8.5.0 per the GitHub advisory at https://github.com/openemr/openemr/security/advisories/GHSA-cw3f-mhw8-44jp (VulnCheck advisory: https://www.vulncheck.com/advisories/openemr-before-8.5.0-sql-injection-via-clp01-element-of-x12-835-era-upload). If upgrading immediately is not possible, apply the code-level fix recommended by the vendor in src/Billing/SLEOB.php: bind pid as a parameter (pid = ?) alongside the existing encounter binding and/or cast it with intval(), since a pid is always an integer - this closes the injection point but must be re-applied after any upgrade or code refresh. Note that validating or rejecting malformed ERA uploads is not a reliable workaround: the advisory documents that era_payments.php reaches rename() even when parseERA() returns a parse error, so the injection still fires. Tightening the acct/bill and acct/eob write ACL to the smallest set of trusted billing staff and restricting who can reach interface/billing/era_payments.php reduces the authenticated-attacker path, but it does not remove exposure from a malicious or compromised payer file uploaded by a legitimately privileged clerk. Because the disclosed primitive permits reading users_secure password hashes, treat credentials as potentially exposed on any instance that processed untrusted ERA files and rotate affected accounts after patching.

Affected VersionsENISA

OpenEMR 0 <8.5.0

Affected Packages

euvd openemr fix: 8.5.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

CWE-89 SQL injection in the PHP billing subsystem of OpenEMR. ParseERA.php:262 stores the raw X12 835 CLP01 element with only trim() applied, and the parse callback (era_payments_callback in interface/billing/era_payments.php:67, eob_search_era_callback in sl_eob_search.php:986, and the same path in sl_eob_process.php:325) passes it to SLEOB::slInvoiceNumber() in src/Billing/SLEOB.php:28-44. There the value is split on space and hyphen by preg_split('/[ -]/'), and the first segment is interpolated into a single-quoted literal while only the encounter value is bound: SELECT encounter FROM billing WHERE pid = '$pid' AND encounter = ? AND activity = 1. No intval(), escaping, or allow-list exists along the path, so a single quote breaks out of the literal. Two parser-level constraints shape payloads rather than prevent them: spaces and hyphens are split delimiters and can be replaced with MySQL /**/ inline comments, and although '*' is the default X12 element delimiter, parseERA() reads the delimiter from the fourth character of the ISA segment (ParseERA.php:119), so declaring '|' frees '*' for use in comments. The injection also fires for otherwise malformed files, because era_payments.php:156-170 reaches rename() regardless of whether parseERA() returned an error string. The root cause is string-concatenated query construction in a routine that handles untrusted third-party payer data, and the trigger requires an authenticated billing user (CVSS vector PR:L) uploading a crafted ERA file with a valid CSRF token.

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 8.7 HIGH
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
vuln.today AI 8.8 HIGH

Network-reachable SQL injection requiring an authenticated billing role (PR:L), no user interaction for the direct insider path, with full database read and modification (C:H/I:H/A:H).

3.1 AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
4.0 AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/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
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

2
Patch available
Nov 13, 2026 - 10:02 EUVD
CVE Published
Nov 13, 2026 - 09:34 cve.org
HIGH 8.7

DescriptionCVE.org

OpenEMR before 8.5.0 contains an SQL injection vulnerability in SLEOB::slInvoiceNumber() in src/Billing/SLEOB.php, which concatenates the CLP01 claim identifier from uploaded X12 835 ERA files into a query without escaping or parameter binding. Authenticated users with billing permissions, or a malicious payer whose ERA file a clerk uploads, can execute arbitrary SQL to read any table, including users_secure password hashes, and modify data.

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

OpenEMR versions prior to 8.5.0 contain a high-severity SQL injection flaw that a malicious insider or compromised external payer file can exploit to access patient health information and password hashes. This puts patient privacy at risk and exposes the organization to regulatory penalties and reputational damage.

Business Impact: High
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.5%
Top 60% exploitable
Prevalence
Medium
most popular open-source EHR, common in small clinics but not ubiquitous
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 HIGH
CISA KEV No
Public POC No
EPSS 0.5%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
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

44
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +44
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