Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAuthenticate as billing/AR user
-
DeliveryUpload malformed ERA to era_payments.php
-
ExploitMalformed file stored as predictable .edi
-
ExecutionInject background_services row via SQL injection
-
PersistTrigger service so require_once loads .edi
-
ImpactExecute 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. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – 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
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
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
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
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.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
Lifecycle Timeline
2DescriptionCVE.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
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.
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.
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.
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-125015
GHSA-c3qm-6w97-8wmg
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB