Skip to main content

OpenEMR EUVDEUVD-2026-125015

| CVE-2026-126428 HIGH
Unrestricted Upload of File with Dangerous Type (CWE-434)
2026-11-13 VulnCheck GHSA-c3qm-6w97-8wmg
7.7
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

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

  1. Access
    Authenticate as billing/AR user
  2. Delivery
    Upload malformed ERA to era_payments.php
  3. Exploit
    Malformed file stored as predictable .edi
  4. Execution
    Inject background_services row via SQL injection
  5. Persist
    Trigger service so require_once loads .edi
  6. Impact
    Execute attacker PHP as web-server user

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A06:2025 - Insecure Design
ASVS 5.0
V5 - File Handling File type validation, storage isolation
MITRE ATT&CK

2 techniques across 2 tactics: Command and Control, 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 ALL of the following, per the GHSA advisory: (1) an authenticated OpenEMR account with acct/bill write or acct/eob write permission - typically a billing clerk, accounts-receivable, or payment-posting user - to upload a malformed ERA file to interface/billing/era_payments.php, which the parser rejects but still stores at the predictable path sites/default/documents/era/.edi; (2) a SEPARATE database-write primitive, such as a write-capable SQL injection, to INSERT or UPDATE a row in the background_services registry whose require_once points to the stored .edi file (and whose 'function' names a function defined in that file); and (3) the background-service PHP process must be able to read the same sites/default/documents/era directory. The chain is gated by the need for two independent primitives - the file upload alone is inert PHP on disk. Limiting factors: authenticated low-privilege access is mandatory (PR:L), the SQLi/DB-write requirement is the AT:P attack requirement and the main barrier, and the whole chain is remediated by upgrading to OpenEMR 8.5.0. Note the write capability of the SQLi 'depends on the configuration of the database,' further narrowing viable targets.

Impact

This is a genuine but conditional RCE, and the signals are internally consistent rather than conflicting. The CVSS 4.0 score of 7.7 (High) reflects a network vector (AV:N) that is deliberately tempered by AC:H and AT:P (a specific attack requirement) plus PR:L - the vendor's own metrics encode that this is not a point-and-click flaw. The defining constraint is that exploitation is a CHAIN: an authenticated billing/AR user can store attacker-controlled PHP via the malformed-ERA upload, but code execution only occurs if the attacker ALSO possesses a separate database-write primitive (e.g., a write-capable SQL injection) to register a background_services row whose require_once loads the stored .edi file. On its own the file upload is inert. No EPSS score was provided, so statistical exploitation probability cannot be weighed. The CVE is NOT in CISA KEV and there is no indication of active exploitation - status is 'no public exploit identified at time of analysis' in the KEV/active-exploitation sense, though the GHSA advisory does contain a detailed proof-of-concept (see exploitation status note). The vuln.today Decision label is 'this_week' (not act_now/emergency), which aligns with a patchable, chained, authenticated flaw rather than a wormable zero-day. Net: a real priority for OpenEMR operators because the impact is full RCE as the web-server user and the GHSA advisory publishes the full chain, but the dual-primitive requirement (billing credentials + DB-write/SQLi) places it below unauthenticated-RCE urgency. Patch to 8.5.0 is the decisive action.

Exploit ScenarioDerived

An authenticated user holding billing permissions (acct/bill or acct/eob write) uploads a malformed ERA file to era_payments.php; the parser errors but still stores the attacker's PHP at the predictable path sites/default/documents/era/.edi. Leveraging a separate write-capable SQL injection, the attacker inserts a background_services row pointing require_once at that .edi file, then triggers execute_background_services.php with any logged-in session to run their code as the web-server user. The GHSA advisory publishes a complete step-by-step PoC (curl upload, SQL INSERT, and trigger request); the AV:N/AC:H profile means it is remotely reachable but requires chaining two primitives rather than a single request.

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

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

Alert me

AnalysisAIv1 – Nov 13, 2026

Remote code execution in OpenEMR before 8.5.0 lets a low-privileged billing, accounts-receivable, or payment-posting user store attacker-controlled PHP on disk by uploading a malformed ERA file that the parser rejects but still moves to the predictable path sites/default/documents/era/.edi. Execution is not automatic: the attacker must also hold a separate database-write primitive, such as a write-capable SQL injection, to insert or update a background_services row whose require_once points at the stored .edi file, after which the background-service runner loads and executes it as the web-server user. The chain is therefore conditional on two independent primitives, and the write capability of a given SQL injection depends on the database configuration; upgrading to OpenEMR 8.5.0 removes the flaw. A public proof-of-concept reference exists in the vendor advisory (GHSA-r6wm-8m2j-c3q9); it is not verified as working exploit code in this dataset, and there is no KEV listing or public EPSS signal in the supplied data.

RemediationAI

Vendor-released patch: upgrade OpenEMR to 8.5.0 or later, which remediates the full chain (the package data records "vulnerable: < 8.5.0 - fixed in: 8.5.0"; details in https://github.com/openemr/openemr/security/advisories/GHSA-r6wm-8m2j-c3q9 and the VulnCheck advisory at https://www.vulncheck.com/advisories/openemr-before-8.5.0-rce-via-stored-era-upload-and-background-services). The advisory's prerequisites define the compensating controls available where upgrading must be staged: the upload step alone is inert PHP on disk, so exposure is removed by denying acct/bill and acct/eob write permission to users who do not need ERA reconciliation (trade-off: billing and payment-posting workflows must be reassigned to a smaller trusted group), and by eliminating write-capable SQL injection anywhere in the application, since the write capability the attacker needs depends on the database configuration (trade-off: this requires code and query review rather than a configuration toggle). The third precondition - the background-service PHP process being able to read sites/default/documents/era - can be removed by separating the web-server user's read access to the documents tree from the background-service worker (trade-off: OpenEMR's document storage layout and worker permissions must be re-plumbed and validated, which can break ERA processing if done incorrectly). These reduce exposure but do not replace the 8.5.0 upgrade as the complete fix.

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 root cause is CWE-434 (unrestricted upload of a file with a dangerous type), realised in OpenEMR's ERA reconciliation workflow. In interface/billing/era_payments.php, $eraname is initialised to an empty string, and ParseERA::parseERA() returning an error string for malformed data does not abort the request: the caller reports the alert but still reaches the rename() that moves the temporary upload to "$eraDir/$eraname.edi". With an empty $eraname that destination collapses to the constant, predictable plaintext file sites/default/documents/era/.edi, with no extension filtering and no content validation. The second half of the chain lives in BackgroundServiceRunner, which reads require_once and function from the background_services table. SafeIncludeResolver blocks path traversal but otherwise accepts any regular file located beneath the OpenEMR project root, so the uploaded .edi is a valid include target; PHP evaluates code inside <?php ?> tags regardless of the file extension, so the stored payload executes when require_once() runs, and the row's 'function' name is then invoked. Because the registry content is read from the database rather than from code, an attacker who can INSERT or UPDATE a background_services row - for example through a write-capable SQL injection - supplies the include path. The web background-service endpoint (library/ajax/execute_background_services.php) requires a logged-in session but no administrative ACL before dispatching a database-selected service. The assessed CVSS:3.1 vector AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H reflects that the network-reachable upload is gated by a high-complexity precondition (the separate database-write primitive, corresponding to AT:P in the CVSS:4.0 vector) and by low-privilege authentication (PR:L), while a successful chain yields full confidentiality, integrity, and availability impact under the web-server account.

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

AV:N as the endpoints are web-reachable; AC:H because success requires chaining a separate DB-write/SQLi primitive; PR:L for the authenticated billing account; C/I/A:H since code runs as the web-server user.

3.1 AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
4.0 AV:N/AC:H/AT:P/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
High
Attack Requirements
Present
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:35 cve.org
HIGH 7.7

DescriptionCVE.org

OpenEMR before 8.5.0 contains a remote code execution vulnerability that allows authenticated billing users to store attacker-controlled PHP by uploading a malformed ERA file to era_payments.php. Attackers with a database-write primitive such as SQL injection can register a background_services row whose require_once loads the stored .edi file, executing PHP as the web-server user.

Technical POC Analysis

CWE-434 (Unrestricted Upload of File with Dangerous Type), compounded by an unsafe dynamic-include sink.

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 flaw allowing low-privileged billing users to upload malicious PHP files disguised as ERA files; while execution requires an additional SQL injection primitive, the potential for remote code execution as the web server user is significant. Healthcare organizations using OpenEMR are at risk, and leadership should prioritize patching to protect patient data and ensure compliance.

Business Impact: High
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.6%
Top 51% exploitable
Prevalence
Medium
widely used open-source EHR, but healthcare-sector-specific deployment footprint
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.6%
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
Poc
System Exposure· derived
Open
Automatable
No
Human Impact
High
Technical Impact
Total

Priority Score

39
Low Medium High Critical
KEV: 0
EPSS: +1
CVSS: +38
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.

Malicious file upload attacks exploit insufficient validation when web applications accept user-provided files.

Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.

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