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.