CVE-2026-126494

OpenEMR before 8.4.0 Privilege Escalation via SMART/OAuth Scope Finalization

Published Nov 13, 2026 CVSS 4.0 · 7.1 High EPSS < 1% KEV · Not listed
Description
OpenEMR before 8.4.0 contains an improper authorization vulnerability in ScopeRepository::finalizeScopes() that allows read-only SMART/OAuth clients to obtain write scopes because ScopeEntity::containsScope() ignores registered permissions. Attackers with a client registered for user/<resource>.read can request user/<resource>.write to create, update, and delete appointments or patient data.

Analysis

AI-generated

Technical impact

OpenEMR prior to version 8.4.0 suffers from an improper authorization flaw in the ScopeRepository::finalizeScopes() method. The flaw lets a read‑only SMART/OAuth client acquire write scopes because the ScopeEntity::containsScope() check ignores registered permissions. An attacker who has a client registered for the user/<resource>.read scope can request the corresponding write scopes to create, modify, or delete appointments and patient data. This leads to a loss of integrity for critical medical records and potential exposure of sensitive health information.

Affected Systems

The vulnerability affects OpenEMR deployments running any version before 8.4.0, including all 8.x releases up to 8.3.x. The issue resides in the SMART/OAuth authorization layer and requires the presence of a SMART client registered with read permissions for a user resource.

Risk and Exploitability

The CVSS score of 7.1 categorizes this as a high severity vulnerability, while the EPSS score of less than 1% indicates a low probability of exploitation at the time of analysis. It is not listed in the CISA KEV catalog. Exploitation requires the ability to register or own a SMART/OAuth client with read permissions, after which the client may request write permissions without proper authorization. The attack vector is an authorization bypass during scope finalization, and the threat is confined to applications using the affected version and permitting SMART/OAuth client registration.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade to OpenEMR 8.4.0 or later to apply the vendor patch that corrects the scope validation logic.
  • Revoke any existing read‑only SMART/OAuth clients and recreate them with the correct permission set to prevent unauthorized write scope requests.
  • Audit existing SMART/OAuth client registrations and scope grants for over‑privileged entries, and enforce least‑privilege principles for future client registrations.

Generated by OpenCVE AI on November 14, 2026 at 16:32 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Openemr
Openemr openemr
Vendors & Products Openemr
Openemr openemr
Type Values Removed Values Added
Description OpenEMR before 8.4.0 contains an improper authorization vulnerability in ScopeRepository::finalizeScopes() that allows read-only SMART/OAuth clients to obtain write scopes because ScopeEntity::containsScope() ignores registered permissions. Attackers with a client registered for user/<resource>.read can request user/<resource>.write to create, update, and delete appointments or patient data.
Title OpenEMR before 8.4.0 Privilege Escalation via SMART/OAuth Scope Finalization
First Time appeared Open-emr
Open-emr openemr
Weaknesses CWE-863
CPEs cpe:2.3:a:open-emr:openemr:*:*:*:*:*:*:*:*
Vendors & Products Open-emr
Open-emr openemr
References
Metrics cvssV3_1

{'score': 7.1, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:L'}

cvssV4_0

{'score': 7.1, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:H/VA:L/SC:N/SI:N/SA:N'}

Weaknesses

Sources

Status
PUBLISHED
Assigner
VulnCheck
Published
Updated
Nov 17, 2026, 8:42 PM
Reserved
Nov 10, 2026, 9:45 PM
Status
Awaiting Analysis
Published
Nov 13, 2026, 10:18 AM
Modified
Nov 17, 2026, 9:17 PM