Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAuthenticate as any core OpenEMR user
-
DeliveryPOST to CCR revandapprove with crafted field name
-
ExploitScalar subquery injected into UPDATE patient_data SET
-
ExecutionRead admin hashes and portal reset values
-
ImpactTake over patient-portal account / alter demographics
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 | Prerequisites are concrete and minimal: the attacker needs any authenticated OpenEMR core account and a target patient pid - the advisory explicitly states NO CCR import relationship, NO patient ACL, and NO database access is required. The request is sent to CcrController::revandapproveAction (which performs no authorization), and the sibling CarecoordinationController::revandapproveAction route - normally gated by the Carecoordination module ACL - is also reachable because the module-ACL self-grant exposes it to any core user. The trigger is a request-controlled patient_data field name ending in '-sel' with value 'update', whose column identifier is concatenated into UPDATE patient_data SET before the statement is prepared (the patient value itself is safely bound). The principal limiting factor is authentication: exploitation requires a valid low-privilege core login, so this is an insider or post-credential-compromise vector, not remote-unauthenticated. No non-default configuration is needed - the vulnerable controllers are reachable in a standard OpenEMR install prior to 8.5.0. |
| Impact | This is a genuine priority rather than an inflated CVSS number. The vendor-assigned CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H, score 8.6) is internally consistent with the GHSA advisory: network-reachable, low complexity, no user interaction, and only PR:L - the PR:L reflects the advisory's key finding that ANY authenticated core user (no Carecoordination ACL, no CCR import relationship, no patient access, no database access) can reach the vulnerable route. The dual high impact (VC:H confidentiality from cross-table scalar reads of staff password hashes, portal reset values, OAuth and config; VI:H integrity from arbitrary modification of any patient's demographics) is well-supported by the confirmed PoC showing an admin username exfiltrated into a patient record. Signals partly conflict on urgency: VulnCheck is the reporter and a detailed PoC is embedded in the GHSA advisory, yet the vuln.today Decision label is 'this_week' (not act_now/emergency), the CVE is NOT on CISA KEV, and no EPSS score was provided - so there is no evidence of active in-the-wild exploitation, only strong exploitability. The main mitigating factor is the authentication requirement: the attacker must already hold a valid OpenEMR core account, which bounds this to malicious insiders or attackers who have already obtained any low-privilege credential. Net: a low-privilege-to-high-impact privilege escalation / data disclosure flaw worth prompt remediation on the vendor's 'this_week' cadence, but not an emergency absent KEV/EPSS evidence. |
| Exploit ScenarioDerived | A low-privileged but authenticated OpenEMR core user (e.g. a clinic staffer with no Carecoordination rights) sends a crafted POST to the CCR revandapprove controller, replacing a patient_data column identifier with a scalar SQL subquery so that the UPDATE patient_data SET clause executes attacker-chosen SQL. In 2-3 requests they read the administrator's password hash and a patient-portal reset value, then alter the target patient's demographics or hijack the portal account. A working PoC (the exact HTTP request and the CONCAT('CCRSQLI_',username) subquery) is published in the GHSA advisory, so the exploitation technique is fully documented. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 13, 2026
SQL injection in OpenEMR before 8.5.0 lets any authenticated core user rewrite the UPDATE patient_data SET clause via a crafted patient_data field name ending in '-sel', disclosing cross-table data such as staff password hashes and active patient-portal reset values while modifying any patient's demographics. No CCR import relationship, patient ACL, or database access is required, and a captured active reset value can be redeemed for patient-portal account takeover. The vendor advisory documents a proof-of-concept request against the CCR revandapprove controller, and the fix ships in OpenEMR 8.5.0.
RemediationAI
Upgrade to OpenEMR 8.5.0, the release that fixes the concatenated field-name query in both the CCR and Carecoordination approval models (vendor advisory https://github.com/openemr/openemr/security/advisories/GHSA-wh28-4qcg-5hcc). The advisory publishes no code-level workaround, and the described trigger sits inside the approval controller rather than behind a documented configuration switch, so the version upgrade is the remediation path. Because the sole prerequisite is any authenticated core account and no patient ACL or import relationship is needed, deployments that cannot reach 8.5.0 in the current patch cycle should limit which users hold core logins - that is a stopgap that shrinks the pool of usable credentials, not a substitute for the release - and should treat staff password hashes and active portal reset values as exposed until the upgrade is applied. The current priority label places this within this week's remediation cycle rather than an emergency response.
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
OpenEMR is a PHP electronic health record platform whose module layer runs on Zend Framework components under interface/modules/zend_modules. In CcrTable::insertApprovedData(), request keys that end in '-sel' and carry the value 'update' are trimmed down to a field name, appended to a $patient_data_fields string, and concatenated into the statement "UPDATE patient_data SET ..." before the query is handed to QueryUtils::sqlStatementThrowException(); the patient value itself is bound through a placeholder, so the defect is the unparameterized identifier/expression slot rather than the data slot (CWE-89, improper neutralization of special elements used in an SQL command). Because the field name is treated as SQL syntax, an attacker substitutes a scalar subquery for the intended column identifier, obtaining cross-table reads and unauthorized writes in a single statement. The identical construction is copied into CarecoordinationTable::insertApprovedData() and reached through CarecoordinationController::revandapproveAction(), a route normally gated by the Carecoordination module ACL but opened to any core user by a separate module-ACL self-grant. The CPE cpe:2.3:a:openemr:openemr:* together with the EUVD range 0 to <8.5.0 confirms the scope as every pre-8.5.0 release.
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:N/SC:N/SI:N/SA:N
Network-reachable controller, low complexity, no UI; PR:L because any authenticated core account suffices; C:H/I:H for cross-table hash reads and arbitrary demographic writes; A:N and S:U as impact stays within the OpenEMR DB.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
Lifecycle Timeline
2DescriptionCVE.org
OpenEMR before 8.5.0 contains an sql injection vulnerability that allows any authenticated core user to inject SQL by supplying crafted patient_data field names to the CCR revandapprove controller. Attackers can embed scalar subqueries in the UPDATE patient_data SET clause to read staff password hashes and portal reset values, alter arbitrary patient demographics, and take over patient-portal accounts.
Technical POC Analysis
CWE-89 (SQL injection), caused by string-concatenating an attacker-controlled SQL identifier position while binding only the value position.
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 before 8.5.0 contain a SQL injection vulnerability that allows any authenticated user to access sensitive data including staff password hashes and patient portal reset tokens. This could lead to unauthorized access to patient accounts and modification of patient records, posing a significant risk to patient privacy and data integrity. Leadership should prioritize remediation to prevent potential data breaches and compliance violations.
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-125013
GHSA-54mg-j2w3-j7fj
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB