Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAuthenticate as Carecoordination module user
-
DeliveryStore malicious field ID via savedata (no ACL check)
-
ExploitTrigger C-CDA generation for mapped patient
-
ExecutionInjected SQL executes in IN clause
-
ImpactBlind-extract password hashes, reset tokens, patient records
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 Carecoordination module user who is NOT a core administrator (PR:L), and the deployment must have both the Carecoordination module and C-CDA generation enabled - the advisory states this explicitly. Exploitation also needs a patient/encounter with a layout-based form (LBF) row that reaches the mapped field, and the malicious identifier only fires during subsequent C-CDA generation (second-order), reflected as AT:P. The savedata action itself performs no ACL check, so any Carecoordination user can plant the payload. Limiting factors for defenders: valid module credentials are mandatory, the vulnerable feature set is optional and not enabled in all deployments, and a mapped patient C-CDA must actually be generated for the stored payload to execute. |
| Impact | This is a credible but conditional priority, not a top-tier emergency. The vendor CVSS 4.0 vector (AV:N/AC:L/AT:P/PR:L/UI:N) scores 7.6 and shows a network-reachable flaw with high confidentiality and integrity impact (VC:H/VI:H) but no availability impact (VA:N) and no scope change to other systems. Two signals temper the raw severity: PR:L confirms an authenticated account is required (a Carecoordination module user), and AT:P marks a genuine attack requirement - the second-order nature means the injected identifier only executes later, during C-CDA generation for a mapped patient. The vuln.today decision label is 'this_week' rather than act_now/emergency, which aligns with a serious-but-not-under-active-mass-exploitation posture. No EPSS score and no CISA KEV entry are present in the input, so there is no evidence of active exploitation; exploitation status is best described as a documented PoC in the vendor advisory rather than observed in-the-wild use. The reporting is high quality (VulnCheck advisory plus an official GHSA with annotated source code), so the mechanism is well established. Net: prioritize patching OpenEMR deployments that actually have the Carecoordination/C-CDA feature enabled, but this is gated by prior authentication and feature-enablement rather than being remote-unauthenticated. |
| Exploit ScenarioDerived | An authenticated, non-administrator Carecoordination user submits a crafted C-CDA field identifier (e.g. a blind time-based payload) through the unprotected savedata action, which stores it without an ACL check. When OpenEMR later generates a C-CDA for a mapped patient, fetchFormValues() concatenates the stored string into an SQL IN (...) clause, executing the attacker's SQL to blind-extract staff password hashes, active portal reset tokens, and patient records. The GHSA advisory includes a working proof-of-concept demonstrating a ~3-second SLEEP-based delay, confirming second-order SQL execution. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 13, 2026
Second-order SQL injection in OpenEMR (every version before 8.5.0) lets an authenticated Carecoordination module user who is not a core administrator persist a crafted C-CDA field identifier and have it later concatenated into an SQL IN (...) clause during C-CDA generation, enabling blind extraction of patient records, staff password hashes, active patient-portal reset values, OAuth records and configuration, with portal account takeover possible when an active reset value is harvested. Exploitation is conditional rather than opportunistic: the Carecoordination module and C-CDA generation must both be enabled, a mapped patient/encounter with a layout-based form row must exist, and the stored payload only fires when a mapped patient C-CDA is subsequently generated. The upstream GitHub advisory (GHSA-8rgh-38j4-6pxf) documents a proof-of-concept that demonstrated a measurable timing delay on C-CDA generation; no CISA KEV listing exists and no EPSS score was supplied, and a vendor fix is available in OpenEMR 8.5.0.
RemediationAI
Vendor-released patch: upgrade OpenEMR to 8.5.0, the version in which this issue is fixed, following the release notes and the advisory at https://github.com/openemr/openemr/security/advisories/GHSA-8rgh-38j4-6pxf. The advisory states the vulnerability requires the Carecoordination module and C-CDA generation to be enabled, so where an upgrade cannot be scheduled immediately the direct compensating control is to disable the Carecoordination module and/or C-CDA generation (for example by disabling the module in the OpenEMR module manager and removing access to the /interface/modules/zend_modules/public/carecoordination/ endpoints); the trade-off is loss of inbound/outbound C-CDA exchange and transitions-of-care workflows for the duration. Because the savedata action performs no ACL check, also restrict Carecoordination module accounts to the smallest set of trusted users, since any valid module credential - not just a core administrator - is sufficient to plant the stored payload, and re-validate the C-CDA mapping tables (setup master/child rows) for malicious field identifiers before re-enabling the feature, as the advisory notes the global mapping can be corrupted. Where exposure is suspected, treat the OpenEMR database as compromised: rotate staff credentials whose hashes are stored there and invalidate outstanding patient-portal reset values. Detection is difficult at the network layer because the injection rides on ordinary authenticated module requests and executes during later C-CDA generation, so review module access logs for anomalous 'tosave' parameter content rather than relying on perimeter blocking.
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 a classic CWE-89 second-order (stored) SQL injection in OpenEMR's PHP/Zend-based Carecoordination module, where the vulnerable and the exploitation phases sit in different requests. In the first phase, Carecoordination/Controller/SetupController.php::savedataAction() takes the POST parameter 'tosave', splits it on the module's '|*|', '||' and '|*|' delimiters, and writes the resulting component/section/form tokens into the C-CDA mapping master and child tables without any ACL check - any user with access to the module can therefore plant arbitrary strings, including a future LBF field identifier. In the second phase, Carecoordination/Model/EncounterccdadispatchTable.php::fetchFormValues() reads the stored field-ID list, splits it on commas, and wraps each element in single quotes via array_map before imploding it into a $fields_str fragment that is concatenated directly into the SQL 'IN ({$fields_str})' grammar used to join the layout-based form (LBF) table against the forms table. Only the pid and formdir placeholders are bound, so the interpolated field-ID list remains fully attacker-controlled. Because the payload executes only during a later C-CDA generation run rather than at storage time, the CVSS 4.0 vector reflects AT:P (present attack requirements) alongside PR:L, and the base vector scores 7.6 with high confidentiality and integrity impact; the independent assessment maps this to CVSS 3.1 AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N. The advisory also notes repeated delay expressions can degrade application availability, and that the issue was identified using AI plus a custom harness with dynamic validation and human review.
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:P/PR:L/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N
Authenticated module user gives PR:L; the second-order trigger requiring an existing mapped patient and later C-CDA generation raises AC:H (3.1 has no separate attack-requirement metric); data read and mapping corruption give C:H/I:H, with A:N.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
Lifecycle Timeline
2DescriptionCVE.org
OpenEMR before 8.5.0 contains a second-order sql injection vulnerability that allows authenticated Carecoordination users to store malicious C-CDA field identifiers through the savedata action. Attackers can inject SQL into the IN clause built by fetchFormValues() during C-CDA generation to extract password hashes, portal reset values, and patient records.
Technical POC Analysis
CWE-89 (SQL injection), second-order variant.
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 vulnerability that requires an authenticated Carecoordination user (non-core-admin) to exploit. Successful exploitation could allow an attacker to extract sensitive data including patient records, staff password hashes, and active patient-portal reset values, potentially leading to portal account takeover and significant data breach. Leadership should prioritize patching because of the potential for unauthorized access to protected health information and credential theft.
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-125012
GHSA-h4wh-c5mx-3xm2
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB