Skip to main content

OpenEMR CVE-2026-124475

| EUVDEUVD-2026-119530 HIGH
Authorization Bypass Through User-Controlled Key (CWE-639)
2026-11-08 VulnCheck GHSA-6frr-mhqw-hcvv
7.1
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 portal patient
  2. Delivery
    Harvest own valid CSRF token
  3. Exploit
    POST JSON with victim setting_patient to persist.php
  4. Execution
    Insert/overwrite victim patient_settings rows
  5. Impact
    Suppress notifications or flip consent flags

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V8 - Authorization Object-level authorization, IDOR prevention
Exploitation Conditions

Requires an authenticated OpenEMR patient portal account (PR:L): the attacker exploits their own valid session and CSRF token, so the limiting factors are (1) ability to obtain any portal login and (2) the patient portal being reachable. The concrete prerequisite is reaching portal/lib/persist.php and supplying an attacker-chosen setting_patient value in the JSON request body - no victim interaction, no non-default configuration, and no elevated privileges are needed because the sink at L53-L56 never compares the body-supplied pid against the session-bound pid. CSRF protection does not limit exploitation (the attacker uses their own token). Real-world exposure scales with portal accessibility and whether self-registration is enabled; deployments with no open patient-facing portal are far less exposed.

Impact

This is a genuine but bounded priority. The CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:L/UI:N) and the advisory's CVSS 3.1 vector both agree: remote, low-complexity, but requiring PR:L - a valid authenticated portal patient account. That authentication gate is the single biggest risk limiter; this is not a pre-auth internet-wide issue but an authenticated cross-tenant authorization flaw (IDOR/BOLA, CWE-639). The vuln.today decision label is 'this_week' (not act_now/emergency), consistent with a serious-but-not-fire-drill finding. No EPSS score and no KEV status are provided in the input, so exploitation probability and active-exploitation signals cannot be weighed here - their absence is not evidence of low risk, it is simply missing data. A detailed, reproducible public PoC archive (exploit.sh end-to-end) is referenced in the GHSA advisory and the flaw was reproduced live by VulnCheck on commit 3c45f5886, so the barrier to exploitation is low for anyone who can register or obtain a portal account. Signals are internally consistent (no CVSS-vs-description conflict): integrity-dominant impact (VI:H / I:H) with limited confidentiality, which matches the write/overwrite primitive described. Net: prioritize for patching within the vendor's suggested window, weighted by how exposed the patient portal is (open self-registration materially raises real-world risk).

Exploit ScenarioDerived

An attacker registers or obtains any patient portal account, logs in, and harvests their own valid CSRF token from a portal page. They then POST a JSON body to portal/lib/persist.php with setting_patient set to a victim's pid, writing or silently overwriting rows in the victim's patient_settings (e.g. disabling appointment/lab-result notifications or flipping a consent flag). A working end-to-end PoC (exploit.sh) is referenced in the advisory and was reproduced live against a fresh Docker stack.

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

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

Alert me

AnalysisAIv1 – Nov 08, 2026

Authenticated users of the OpenEMR patient portal can insert or overwrite other patients' records in the patient_settings table because portal/lib/persist.php trusts a body-supplied setting_patient value instead of the session-bound patient ID. Per the CVSS vector the attacker must hold a low-privileged portal account (PR:L) but needs no victim interaction, no elevated role, and no non-default configuration; CSRF tokens are enforced but offer no protection since the attacker uses their own valid token. Successful abuse lets an attacker silently suppress a victim's appointment or lab-result notifications, tamper with signed-consent flags, redirect notification routing, or plant a value that becomes a stored XSS sink, and the vendor advisory ships a reproduction archive with an exploit script. OpenEMR releases before 8.3.0 are affected; the vendor has fixed the issue in 8.3.0 and the issue is not listed in CISA KEV, making this a genuine but bounded priority worthy of this week's patch cycle.

RemediationAI

Upgrade to OpenEMR 8.3.0, the vendor-released fixed version, following the advisory at https://github.com/openemr/openemr/security/advisories/GHSA-jvhx-fg6j-8c9x (also tracked as EUVD-2026-119530); a vendor patch is available, so no long-term code workaround is required. If an immediate upgrade is not possible, the advisory's recommended fix can be backported: reject the request with HTTP 403 whenever (int)$data['setting_patient'] !== (int)$pid before the persistPatientSetting call at L53-L56, or better, remove setting_patient from the accepted request shape entirely and refactor PatientPortalService::persistPatientSetting to take the session-derived pid as its only authoritative argument, ideally as a typed PatientId value object that makes pid transposition a static error, plus an integration test asserting that a session pid A targeting setting_patient=B returns 403. Because the same IDOR exposes high-impact keys, audit the patient_settings keys that drive notification routing or consent and gate them server-side independently of the per-row fix; where the portal is internet-facing and self-registration is enabled, restrict who can obtain a portal account, since exploitation requires exactly one authenticated portal session and exposure drops sharply for deployments with no open patient-facing portal.

Affected VersionsENISA

OpenEMR 0 <8.3.0

Affected Packages

euvd openemr fix: 8.3.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

OpenEMR is a PHP electronic health record suite whose separate patient-facing portal exposes JSON endpoints under portal/. In portal/lib/persist.php the code correctly derives the authenticated patient id from the session at L26 ($pid = $session->get('pid')) and correctly verifies the CSRF token at L44, but the write sink at L53-L56 never consults either value: it takes $data['setting_patient'] straight out of the JSON body decoded from php://input and passes it to PatientPortalService::persistPatientSetting with an attacker-chosen label and value. The persistence layer (src/Services/PatientPortalService.php:255) issues an INSERT ... ON DUPLICATE KEY UPDATE against patient_settings, whose primary key is (setting_patient, setting_label), so the missing object-level authorization check yields two primitives at once: creation of arbitrary new settings rows on a victim's account and silent overwrite of existing rows with no audit trail. This is a textbook CWE-639 authorization bypass through a user-controlled key, i.e. OWASP API Security Top 10 API1 Broken Object Level Authorization (BOLA) and OWASP Top 10 A01 Broken Access Control. The vulnerability class is purely missing per-object authorization scoping; the advisory does not describe any memory-safety, parsing, or race-condition element, and the integrity impact (VI:H) is high while confidentiality (VC:L) and availability (VA:N) impact are limited.

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

Authenticated portal patient (PR:L) sends a simple body parameter (AC:L) over the network; integrity is high (arbitrary overwrite of any victim's settings) with limited confidentiality via possible notification-routing hijack, no availability impact.

3.1 AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:H/A:N
4.0 AV:N/AC:L/AT:N/PR:L/UI:N/VC:L/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
Low
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 08, 2026 - 14:01 EUVD
CVE Published
Nov 08, 2026 - 13:15 cve.org
HIGH 7.1

DescriptionCVE.org

OpenEMR before 8.3.0 contains an insecure direct object reference vulnerability in portal/lib/persist.php that allows authenticated portal patients to modify other patients' settings by supplying an arbitrary setting_patient value. Attackers can insert or overwrite patient_settings rows for victims to suppress notifications, tamper with consent flags, or alter portal preferences.

Technical POC Analysis

CWE-639 (Authorization Bypass Through User-Controlled Key) - an IDOR/BOLA in OpenEMR's patient portal settings write path.

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 before 8.3.0 contain a high-severity flaw that lets any authenticated patient portal user alter other patients' settings, potentially suppressing appointment and lab notifications, tampering with consent flags, or enabling stored cross-site scripting. This compromises patient trust and could disrupt clinical communications for affected individuals. Leadership should prioritize patching this week to prevent privacy and operational risks.

Business Impact: High
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.2%
Top 94% exploitable
Prevalence
Medium
most widely used open-source EHR, but niche medical/clinic deployment footprint
Social Media
1
Sightings
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.2%
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
Poc
System Exposure· derived
Open
Automatable
No
Human Impact
High
Technical Impact
Partial

Priority Score

36
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +36
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0
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