Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAuthenticate with billing write access
-
DeliveryUpload crafted X12 835 ERA .edi file
-
ExploitUnescaped CLP01 concatenated into SQL and persisted on disk
-
ExecutionReprocess stored remittance via sl_eob_process.php
-
ImpactTime-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. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – 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
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 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
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
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.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
Lifecycle Timeline
2DescriptionCVE.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
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.
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-124964
GHSA-x268-2jm3-5wqc
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB