Skip to main content

OpenEMR EUVDEUVD-2026-124964

| CVE-2026-126460 HIGH
SQL Injection (CWE-89)
2026-11-13 VulnCheck GHSA-x268-2jm3-5wqc
7.1
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 write access
  2. Delivery
    Upload crafted X12 835 ERA .edi file
  3. Exploit
    Unescaped CLP01 concatenated into SQL and persisted on disk
  4. Execution
    Reprocess stored remittance via sl_eob_process.php
  5. Impact
    Time-based blind injection exfiltrates patient health data

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

Exploitation requires an authenticated OpenEMR account with billing (accounting/eob) write access that can reach sl_eob_search.php, plus a valid session cookie and csrf_token_form value. The attacker must craft an X12 835 ERA file whose CLP01 claim control number carries the payload; the crafted segment cannot contain '*', '~', space, or '-' characters, and the file must include a claim-level DTM*050 segment or processing fails for unrelated reasons. Because a SQL error aborts the upload before the file is saved, only non-erroring time-based (blind) payloads survive into the persistent chain, which limits exploitation to slow, inference-based extraction rather than direct dumping. Limiting factors: authentication with billing privileges is mandatory (not unauthenticated), extraction is time-based blind and therefore slow, and only time-based payloads persist - but once planted the payload re-fires whenever any user reprocesses the stored remittance.

Impact

This is a real, patch-worthy priority but not an emergency, consistent with the input's 'this_week' decision label. The CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:L/UI:N) describes a network-reachable, low-complexity flaw that nonetheless requires authentication: PR:L maps to an attacker who already holds billing (accounting/eob) write access, so this is an authenticated insider or credential-theft scenario rather than anonymous internet-wide exploitation. Impact is weighted toward confidentiality (VC:H) because the demonstrated payload is a read-only time-based blind SELECT that discloses database content including patient health information; the input's VI:L integrity rating is debatable since the evidence explicitly describes the injection as read-only (discloses rather than destroys, zero payload residue in tables). No CISA KEV listing is present, so there is no confirmed active exploitation, and no EPSS score was provided, so statistical exploitation probability cannot be weighed. The countervailing signal is a detailed, timing-confirmed proof-of-concept published in the vendor GHSA advisory, which materially lowers the barrier to exploitation for anyone with billing access. Net: medium-high severity (7.1) gated behind authentication, affecting a medical-records system where the confidentiality impact is critical - worth patching promptly but not drop-everything, matching the this_week triage.

Exploit ScenarioDerived

An attacker holding billing (accounting/eob) write credentials uploads a crafted X12 835 ERA .edi file via sl_eob_search.php whose CLP01 claim-control-number field contains a time-based blind SQL payload; the file is parsed (executing the injection once) and stored verbatim on the server. Later, any staff member who clicks 'Process ERA' re-runs sl_eob_process.php against the saved file and silently re-executes the payload without the attacker present, allowing boolean-by-boolean extraction of patient health information. A detailed proof-of-concept with confirmed 6-second SLEEP timings and condition-pair controls is published in the vendor GHSA advisory, so the attack is well-documented though delivered as a technical writeup rather than packaged exploit code.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
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 13, 2026

Persistent second-order SQL injection in OpenEMR's X12 835 ERA remittance workflow lets a user with billing (accounting/eob) write access implant a time-based SQL payload that re-executes every time the stored remittance file is reprocessed, exposing patient health information over a slow blind channel. The CLP01 claim control number from the uploaded .edi file is interpolated unescaped into a query in SLEOB::slInvoiceNumber(), and because the upload is saved verbatim under documents/era/, the injected SQL fires again from sl_eob_process.php in a completely separate request without any re-upload. All versions before 8.5.0 are affected; the vendor has released 8.5.0, and its advisory includes a public proof-of-concept walkthrough (curl requests plus hit/miss timing measurements) that is not independently verified as working exploit code - there is no confirmed active exploitation and the issue is not in CISA KEV.

RemediationAI

Vendor-released patch: upgrade OpenEMR to 8.5.0 or later (composer/OpenEMR fixed in 8.5.0), following the vendor advisory at https://github.com/openemr/openemr/security/advisories/GHSA-hqjp-rcv8-7p9c. The advisory's suggested code change binds $pid with a second placeholder in SLEOB::slInvoiceNumber() and additionally validates or encodes the claim control number before the parsed upload is written to documents/era/, so the stored file no longer carries executable SQL content; sites maintaining local patches should apply both parts. No alternative workaround is documented in the advisory, and the vendor presents updating as the complete fix. As an interim reduction of exposure, limit who holds billing (accounting/eob) write access to sl_eob_search.php, since that privilege is a hard prerequisite for the attack - the trade-off is that this blocks legitimate ERA upload and posting for the affected staff. Because the persistence lives in the saved .edi files rather than in database tables, auditing and removing any untrusted files already present in sites/default/documents/era/ is warranted, keeping in mind that this interrupts remittance reprocessing for those files. Note that only non-erroring time-based payloads persist, so extraction is slow and inference-based, but a planted payload re-fires unattended whenever any user processes the poisoned remittance.

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

The flaw is CWE-89 SQL injection in a PHP medical-records application, specifically a second-order (stored) variant. OpenEMR's billing component parses X12 835 Electronic Remittance Advice files with OpenEMR\Billing\ParseERA, which assigns the CLP01 provider-assigned claim control number to $out['our_claim_id'] after only a trim(). In src/Billing/SLEOB.php, SLEOB::slInvoiceNumber() splits that value on '-' and ' ' and interpolates the first part into a sqlQuery() string as $pid ("pid = '$pid' AND encounter = ? AND activity = 1"), while the second part is safely bound to a placeholder - so only the interpolated $pid carries the injection. The persistent character comes from the upload path in interface/billing/sl_eob_search.php: the file is parsed first, then renamed into sites/default/documents/era/<eraname>.edi with no content filtering, and sl_eob_process.php later re-reads that saved file and re-runs the same parser through ParseERA::parseERA() before calling SLEOB::slInvoiceNumber(). Because a SQL error aborts the upload before rename() executes, only non-erroring time-based payloads survive to persistence; the injected segment may not contain '*', '~', space or '-', and the file must carry a claim-level DTM*050 segment or processing fails for unrelated reasons. The CPE cpe:2.3:a:openemr:openemr:*:*:*:*:*:*:*:* matches all pre-8.5.0 releases, consistent with the EUVD range 0 < 8.5.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 7.1 HIGH
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:L/VA:N/SC:N/SI:N/SA:N
vuln.today AI 6.5 MEDIUM

Network-reachable and low-complexity (plain unescaped concatenation, no race or timing), but requires authenticated billing write access (PR:L); read-only blind SELECT yields confidentiality-only impact, so I:N and A:N.

3.1 AV:N/AC:L/PR:L/UI:N/S:U/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
Low
Vulnerable system: Availability
None
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:35 cve.org
HIGH 7.1

DescriptionCVE.org

OpenEMR before 8.5.0 contains a persistent SQL injection vulnerability in SLEOB::slInvoiceNumber(), where the CLP01 claim control number from uploaded X12 835 ERA files is concatenated unescaped into a query. Attackers with billing write access can upload a crafted .edi file via sl_eob_search.php that is stored on the server and re-executes a time-based payload whenever it is reprocessed through sl_eob_process.php, extracting patient health information.

Technical POC Analysis

CWE-89 SQL injection, specifically persistent/second-order SQL injection in OpenEMR's X12 835 ERA workflow.

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 persistent SQL injection vulnerability in the billing module that could expose patient health information. The flaw allows a user with billing access to inject malicious code that executes repeatedly, creating an ongoing data leakage risk. Leadership should prioritize remediation due to the sensitive nature of the data and regulatory implications.

Business Impact: High
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.3%
Top 74% exploitable
Prevalence
Medium
most popular open-source EHR but confined to the healthcare sector
Data Quality
6 sources
Confidence: High

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.3%
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
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact
High
Technical Impact
Partial

Priority Score

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