Skip to main content

OpenEMR EUVDEUVD-2026-125136

| CVE-2026-126488 HIGH
SQL Injection (CWE-89)
2026-11-13 VulnCheck GHSA-hf2c-h9g2-rf29
8.3
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

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

  1. Access
    Authenticate as enrolled portal patient
  2. Delivery
    Send crafted OnsiteDocument.Query API request
  3. Exploit
    Inject SQL via unquoted Id_BitwiseAnd parameter
  4. Execution
    Break per-patient scope and query any table
  5. Impact
    Exfiltrate cross-patient PHI and users_secure password hashes

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 the Patient Portal to be enabled (portal_onsite_two_enable=1), which the advisory notes is the standard configuration for any patient-facing OpenEMR deployment, and a valid enrolled portal account of the lowest role reaching OnsiteDocument.Query (route p_acl=p_all); the sibling OnsiteActivityView.Query is reachable by any staff user. The limiting factors are that an authenticated portal (or staff) session is mandatory - this is not anonymous/unauthenticated - and that deployments with the patient portal disabled are not reachable via this endpoint; no user interaction, non-default toggle, or specific platform beyond an affected version (<8.5.0) is otherwise needed.

Impact

This is a genuine priority, not a high-CVSS-but-low-real-risk issue. The supplied CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:L/UI:N) describes a remotely reachable, low-complexity attack requiring only the lowest authenticated privilege (PR:L), with high confidentiality impact on the vulnerable system (VC:H) and high subsequent-system confidentiality (SC:H) reflecting that stolen users_secure bcrypt hashes crack to application-admin access. The GHSA advisory documents live-verified exploitation on v8.1.0 and master, with error-, boolean-, and time-based oracles all firing and sqlmap confirming three injection techniques, so exploitability is practically demonstrated rather than theoretical. No CISA KEV listing and no EPSS score are present in the input, so there is no signal of active in-the-wild exploitation or a modeled exploitation probability to weigh; the risk case rests on the confirmed low-barrier mechanics and the vuln.today 'this_week' decision label rather than on observed attacks. Impact is bounded to confidentiality (VI/VA:N) - the flaw reads data but does not itself write or deny service - but the readable data includes all patients' PHI plus staff and admin credential hashes, which escalates the practical consequence well beyond the single endpoint.

Exploit ScenarioDerived

An attacker enrolls or uses any existing patient-portal account (the lowest role) and sends a single crafted request to the OnsiteDocument.Query document API with a malicious Id_BitwiseAnd parameter. Because the value lands unquoted in the SQL, they break out of the per-patient scope and read arbitrary tables - dumping other patients' demographics and the users_secure password hashes for later offline cracking to OpenEMR admin. The GHSA advisory includes a complete, live-verified reproduction with working error-based payloads, so the attack path is concrete; the low attack complexity (AC:L) means no special timing or grooming is needed.

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

Authenticated SQL injection in OpenEMR's patient portal OnsiteDocument.Query endpoint, affecting releases before 8.5.0, lets any enrolled portal patient of the lowest role break out of the per-patient record scope and read arbitrary tables in the openemr schema - other patients' demographics, sessions, OAuth and API tokens, and the users_secure bcrypt password hashes for every staff and admin account. Impact is confidentiality-only, with no integrity or availability effect assessed; the only prerequisites are that the Patient Portal be enabled (portal_onsite_two_enable=1) and that the attacker hold a valid portal, or staff, session, with no user interaction required. The flaw is not listed in CISA KEV, but the vendor advisory publishes live-verified reproduction requests and notes sqlmap confirmed error-, boolean- and time-based oracles; the vendor fix is OpenEMR 8.5.0.

RemediationAI

Vendor-released patch: upgrade OpenEMR to 8.5.0 or later, which closes the vulnerable code path described in advisory GHSA-g2xw-rvhq-x543; no backport or interim patch version is documented in the available sources. Because the flaw requires an authenticated portal (or staff) session and reachability is explicitly gated on the Patient Portal being enabled, deployments that cannot upgrade immediately can reduce exposure by disabling the portal (portal_onsite_two_enable=0), at the cost of removing all patient-facing portal functionality for the duration; sites that must keep the portal online should treat every enrolled portal account, including the lowest-privilege role, as able to read the full openemr schema until 8.5.0 is applied. No other vendor-stated workaround, configuration flag or WAF rule is provided in the available evidence. Post-upgrade, review portal and staff access logs for requests to /portal/patient/api/onsitedocuments carrying *_BitwiseAnd parameters, and rotate staff and administrator credentials as well as OAuth and API tokens, since users_secure password hashes and token tables are readable through this primitive on unpatched hosts.

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 root cause is CWE-89 arising from how OpenEMR's Phreeze-based portal controllers bind request parameters to ORM criteria objects. OnsiteDocumentController.php:144 copies every $_REQUEST key whose ucfirst() name matches a property on the auto-generated Criteria class, and that class declares a <Field>_BitwiseAnd property for every column, so an attacker-supplied Id_BitwiseAnd parameter is mass-assigned onto the criteria object. Criteria::GetWhere() (Phreeze/Criteria.php:275) then renders the fragment (column & value) with the attacker value in an unquoted numeric context, and the MySQLi driver's Escape() only handles backslash, NUL, newline, carriage return, 0x1a and quote characters, so spaces, parentheses and SQL keywords pass through intact. The sibling operators _Equals and _IsLike wrap their value in single quotes, where quote-only escaping is sufficient, which is why the _BitwiseAnd branch is the exploitable path. Critically, the injected predicate executes outside the per-patient Pid_Equals row scope, which is what makes a lowest-privilege portal account reach data belonging to other patients and to staff accounts. The route api/onsitedocuments carries p_acl => p_all, and the same vulnerable Criteria/MySQLi code is reachable by any staff user through OnsiteActivityView.Query. The code was confirmed live on release 8.1.0 (HEAD 28dc4f9) and found unchanged on master HEAD as of 2026-06-13.

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.3 HIGH
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:N/VA:N/SC:H/SI:N/SA:N
vuln.today AI 7.7 HIGH

Network-reachable portal endpoint, trivial injection (AC:L) by a low-privilege authenticated patient (PR:L); reading other security authorities' data and admin hashes crosses scope (S:C), confidentiality-only (I/A:N).

3.1 AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:N/A:N
4.0 AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:N/VA:N/SC:H/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
None
Vulnerable system: Availability
None
Subsequent system: Confidentiality
High
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.3

DescriptionCVE.org

OpenEMR before 8.5.0 contains an SQL injection vulnerability in the patient portal OnsiteDocument.Query endpoint, where mass-assigned _BitwiseAnd criteria parameters are placed unquoted into SQL with only quote-character escaping. Authenticated portal patients can inject SQL outside their per-patient scope to read the entire database, including other patients' demographics and users_secure password hashes.

Technical POC Analysis

CWE-89 SQL injection arising from mass assignment into an ORM criteria object combined with a non-quoting escaper.

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, the electronic health record system used by your clinical operations, contains a high-severity SQL injection (CVE-2026-126488) that lets any authenticated patient portal user access the entire database, including other patients' records, session tokens, and staff password hashes. This exposes protected health information and could lead to credential compromise across the organization. Leadership should prioritize remediation because the flaw requires only a valid portal account and the portal is commonly enabled for patient access.

Business Impact: High
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.4%
Top 68% exploitable
Prevalence
Medium
most popular open-source EHR, common in clinics but not universally deployed
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
Partial

Priority Score

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