Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAuthenticate as any portal patient
-
DeliveryHarvest own valid CSRF token
-
ExploitPOST JSON with victim setting_patient to persist.php
-
ExecutionInsert/overwrite victim patient_settings rows
-
ImpactSuppress 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. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – 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
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 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
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
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.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
Lifecycle Timeline
2DescriptionCVE.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
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.
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
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-119530
GHSA-6frr-mhqw-hcvv
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB