Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAuthenticate as any OpenEMR user
-
DeliveryPOST crafted patient_data-*-sel parameters to revandapprove route
-
ExploitInject subquery into UPDATE column-name position
-
ExecutionCopy users_secure password hashes into patient_data field
-
ImpactRead exfiltrated hashes via patient demographics UI
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 a valid authenticated OpenEMR session, but any user suffices - CcrController::revandapproveAction() performs no AclMain::aclCheckCore() check, so even a role with no CCR/import rights can reach the sink. The attacker POSTs to /interface/modules/zend_modules/public/ccr/revandapprove with setval=approve and a crafted parameter pair patient_data-<INJECTED SQL>-sel=update plus patient_data-<INJECTED SQL>=<value>, where the parameter NAME is placed verbatim into the UPDATE column position. Because the route also has no CsrfUtils token check, it can alternatively be triggered cross-site against a logged-in staff member's browser (no attacker credentials needed in that path, but it does require UI interaction by the victim). Limiting factors: PHP rewrites '.' and space in parameter names to '_', so only unqualified tables in the current schema can be referenced (information_schema.columns is unusable); placeholder count must stay consistent (ending the injection with a real column such as ,lname); and the data-disclosure variant requires at least one existing patient_data row for the SET-clause subquery to be evaluated. |
| Impact | This is a genuine priority rather than a CVSS-inflated issue, though the signals are mixed. The CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:L/UI:N, VC:H/VI:H) scores 8.6 and is internally consistent with the advisory: network-reachable HTTP route, low attack complexity, and only a low-privilege authenticated session required (PR:L). The vuln.today decision label is 'this_week' (elevated but not emergency), and the issue was reported by VulnCheck with a vendor patch already available in 8.5.0. No EPSS score and no CISA KEV entry were provided, and there is no indication of active exploitation - so urgency rests on the quality of the research, not on observed attacks. The GHSA advisory includes a reproduced proof of concept: steps 1-2 (attacker control of the SQL statement structure, including an injected subquery and a second assignment clause reaching MySQL table resolution) were fully reproduced on OpenEMR 8.3.0-dev; step 3 (copying users_secure password hashes into readable patient fields) was NOT executed because the test instance had zero patient_data rows, so full confidentiality impact is demonstrated structurally but not end-to-end. The combination of authenticated SQLi (CWE-89) with missing authorization (CWE-862) and missing CSRF protection (CWE-352) on the same route meaningfully lowers the barrier: any low-privilege account - or a CSRF against a logged-in staffer - can reach the sink. Net: a real, patch-now-this-week issue for internet-exposed OpenEMR instances, tempered by the authentication requirement and the unexecuted final exfiltration step. |
| Exploit ScenarioDerived | A low-privilege authenticated OpenEMR user (or an attacker who lures a logged-in staff member to a malicious page, since the route has no CSRF token check) sends a POST to the revandapprove CCR route with a parameter named patient_data-<SQL>-sel set to 'update'. Because the request array keys become raw column names in an UPDATE patient_data SET statement, the attacker injects a subquery that reads users_secure password hashes into a demographic field, then views that field through the patient UI. A public PoC in the GHSA advisory reproduced attacker control of the statement structure; the final hash-exfiltration step was demonstrated structurally but not executed against a populated database. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 13, 2026
SQL injection in OpenEMR's CCR revandapprove workflow lets any authenticated user - including an account with no CCR or import rights at all - inject arbitrary SQL structure into the column-name position of an UPDATE against the patient_data table, allowing password hashes or other schema data to be copied into patient demographic fields and patient records to be corrupted. The same POST route carries neither an AclMain::aclCheckCore() ACL check nor a CsrfUtils token check, so the request can also be driven cross-site against a logged-in staff member's browser. All releases before 8.5.0 are affected and the fix ships in 8.5.0; the vendor advisory includes a reproduced proof of concept for attacker control of the SQL structure, but no CISA KEV listing indicates active exploitation, and the exposure is bounded because PHP mangles dots and spaces in parameter names (blocking qualified references such as information_schema.columns) and the data-disclosure variant needs at least one populated patient_data row.
RemediationAI
Upgrade to OpenEMR 8.5.0, the version that carries the vendor fix, per the advisory at https://github.com/openemr/openemr/security/advisories/GHSA-86hf-j825-r56h and the VulnCheck advisory. Because this is prioritised for this week rather than as an emergency, staged rollout to 8.5.0 is reasonable, but the exposure is genuine for any instance reachable over the network with low-privilege accounts. Where 8.5.0 cannot be deployed immediately, the advisory's code-level remediation is to validate the derived $field_name against an allow-list of actual patient_data columns (for example from layout_options or the table schema) or reject anything not matching /^[a-z0-9_]+$/i before it is concatenated into the SET clause, and to add an AclMain::aclCheckCore() ACL check plus CsrfUtils::verifyCsrfToken() to CcrController::revandapproveAction(); note that these are vendor-source modifications that must be reapplied or dropped at the next upgrade, and that adding the CSRF check will break any existing integrations or scripts that POST to the ccr/revandapprove route without a token. Restricting the route to trusted administrative roles, or denying it at the web server for users who do not perform CCR import approvals, narrows the authenticated attack surface and also blocks the cross-site path, but it disables the CCR approve/reverse workflow for those users. No other site-level workarounds are documented in the available sources.
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
CcrController::revandapproveAction() in interface/modules/zend_modules/module/Ccr/src/Ccr/Controller/CcrController.php passes the entire $_REQUEST array into CcrTable::insertApprovedData(), which iterates over the array keys and, for every parameter named patient_data-<X>-sel with the value 'update', strips the prefix and the '-sel' suffix and concatenates the remainder verbatim into an "UPDATE patient_data SET <field>=?,... WHERE pid=?" statement executed through QueryUtils::sqlStatementThrowException(). Parameter values are bound, but the identifier position is not escaped and is not checked against an allow-list of real patient_data columns, which is the CWE-89 root cause; the advisory additionally classifies the route as CWE-862 (missing authorization) and CWE-352 (missing CSRF protection) because neither an ACL check nor a CSRF token verification exists anywhere in CcrController.php. The CPE cpe:2.3:a:openemr:openemr:*:*:*:*:*:*:*:* and the EUVD record (EUVD-2026-124944, affected range 0 to <8.5.0) place every OpenEMR release up to 8.5.0 in scope. Practical exploitation constraints documented by the reporter are that PHP rewrites '.' and space in HTTP parameter names to '_', so only unqualified tables in the current schema can be reached (information_schema.columns becomes information_schema_columns and is unusable), that MySQL /**/ comments must substitute for whitespace, and that each injected field consumes exactly one bind placeholder so payloads must end with a genuine column name such as ,lname; the reporter reproduced control of the column position (HTTP 500 with "Unknown column 'PROOF_COL' in 'SET'") and a full injected subquery plus second assignment clause on 8.3.0-dev, while the step that copies users_secure password hashes into readable demographics was not executed because the test instance had an empty patient_data table.
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 HTTP route with low complexity and only a low-privilege authenticated session (PR:L, no ACL), yielding high confidentiality (password-hash read) and integrity (arbitrary patient_data writes); no availability impact.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
Lifecycle Timeline
2DescriptionCVE.org
OpenEMR before 8.5.0 contains an sql injection vulnerability in CcrTable::insertApprovedData() that allows authenticated users to inject SQL through request parameter names used as column names. Attackers can send crafted patient_data-*-sel parameters to the revandapprove route, lacking ACL and CSRF checks, to copy password hashes into patient fields or corrupt records.
Technical POC Analysis
CWE-89 SQL injection in the column-name position of an UPDATE patientdata statement, compounded by missing authorization (CWE-862) and missing CSRF protection (CWE-352) on the same route.
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 in the CCR revandapprove workflow, enabling any authenticated user-even those without CCR or import permissions-to manipulate SQL structure and potentially expose sensitive data like password hashes. This puts patient data confidentiality and integrity at risk and could be exploited via cross-site requests against logged-in staff, affecting all users of unpatched OpenEMR instances.
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.
Cross-Site Request Forgery exploits the automatic credential inclusion behavior of web browsers.
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-124944
GHSA-grff-556r-q8w3
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB