Technical impact
OpenEMR versions before 8.4.0 contain a flaw that lets an attacker with the patients|demo permission set create a specially crafted OAuth token that binds any patient UUID into the token context. This bypass of the usual authorization controls enables the attacker to read the targeted patient's clinical notes and documents via patient‑scoped FHIR DocumentReference and Binary endpoints, exposing protected health information. The weakness is classified as CWE‑639, an authorization bypass for existing accounts.
Affected Systems
All installations of OpenEMR older than version 8.4.0 are impacted. The vulnerability applies to the SMART standalone launch feature used by low‑privileged users and does not affect earlier OpenEMR releases or other components unrelated to SMART launch.
Risk and Exploitability
The CVSS score of 7.1 indicates a high severity risk. Because the EPSS score is unavailable, the exact exploitation probability is uncertain, but the lack of a KEV listing and absence of widespread advisories suggest the threat is not yet actively exploited. The likely attack vector involves a low‑privileged user initiating a SMART authorization flow, selecting an arbitrary patient ID, and then reading that patient’s PHI through normal FHIR endpoints. An attacker with only patients|demo access can thus obtain confidential data from patients they should not be able to see.