Skip to main content

OpenEMR CVE-2026-126480

| EUVDEUVD-2026-124944 HIGH
SQL Injection (CWE-89)
2026-11-13 VulnCheck GHSA-grff-556r-q8w3
8.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 any OpenEMR user
  2. Delivery
    POST crafted patient_data-*-sel parameters to revandapprove route
  3. Exploit
    Inject subquery into UPDATE column-name position
  4. Execution
    Copy users_secure password hashes into patient_data field
  5. Impact
    Read 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.

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

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

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

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

Vendor (VulnCheck) PRIMARY 8.6 HIGH
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
vuln.today AI 8.1 HIGH

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.

3.1 AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N
4.0 AV:N/AC:L/AT:N/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
None
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:34 cve.org
HIGH 8.6

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

Why It Matters

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.

Business Impact: High
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.4%
Top 65% exploitable
Prevalence
Medium
most popular open-source EHR, but healthcare-specific deployment footprint
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

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

Cross-Site Request Forgery exploits the automatic credential inclusion behavior of web browsers.

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