Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAuthenticate with billing ACL or supply malicious payer ERA
-
DeliveryCraft X12 835 with payload in CLP01 element
-
ExploitUpload file to ERA Posting screen
-
ExecutionPayload concatenated into billing SQL query
-
PersistError/subquery-based extraction of users_secure hashes
-
ImpactOffline 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. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – 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
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
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
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
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).
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
Lifecycle Timeline
2DescriptionCVE.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
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.
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-124942
GHSA-xh45-xw7v-4c5r
NVD
CVE.org
EPSS
Exploit-DB