Skip to main content

OpenEMR EUVDEUVD-2026-125012

| CVE-2026-126431 HIGH
SQL Injection (CWE-89)
2026-11-13 VulnCheck GHSA-h4wh-c5mx-3xm2
7.6
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

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

  1. Access
    Authenticate as Carecoordination module user
  2. Delivery
    Store malicious field ID via savedata (no ACL check)
  3. Exploit
    Trigger C-CDA generation for mapped patient
  4. Execution
    Injected SQL executes in IN clause
  5. Impact
    Blind-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.

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

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

Alert me

AnalysisAIv1 – 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

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 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

Vendor (VulnCheck) PRIMARY 7.6 HIGH
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
vuln.today AI 6.8 MEDIUM

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.

3.1 AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N
4.0 AV:N/AC:L/AT:P/PR:L/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N

Primary rating from Vendor (VulnCheck).

CVSS VectorVendor: VulnCheck

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
Present
Privileges Required
Low
User Interaction
None
Vulnerable system: Confidentiality
High
Vulnerable system: Integrity
High
Vulnerable system: Availability
None
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.6

DescriptionCVE.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

Why It Matters

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.

Business Impact: High
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.4%
Top 69% exploitable
Prevalence
Medium
popular open-source EHR, but vulnerable Carecoordination/C-CDA module not always enabled
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.4%
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
None
System Exposure· derived
Open
Automatable
No
Human Impact
High
Technical Impact
Total

Priority Score

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

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