Privilege escalation in OpenEMR via SMART/OAuth scope finalization
Key facts
- Attack vector
- Network
- Privileges required
- Low
- User interaction
- None
- Attack complexity
- Low
- Attack requirements
- None
- Impact type
- Security bypass
- Confidentiality · integrity · availability
- None · High · Low
- Fix status
- Fixed
Attack profile from CVSS 4.0 · CNA. Fix status from CNA. Impact type from CWE-863.
Summary
OpenEMR before 8.4.0 has an incorrect authorization flaw in ScopeRepository::finalizeScopes() that lets read-only SMART/OAuth clients obtain write scopes, because ScopeEntity::containsScope() ignores registered permissions (CWE-863). A remote attacker with a low-privileged client registered for read access can request matching write scopes and then create, update, and delete appointments or patient data.
Written with Claude Haiku 5.5 from the sources below · 2026-11-13
Description from the CNA
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.
Why it matters now
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
Remediation
OpenEMR users should upgrade to version 8.4.0, which fixes the flaw.
Written with Claude Haiku 5.5 from the sources below · 2026-11-13
- Fix · CNA openemr (openemr) Fixed in 8.4.0
Fixed in the same release
Records fixed by the same vendor advisory or release, as the CNA lists them.
- Release ·
openemr 8.4.0
2 records Highest priority Priority HIGH 1 HIGH, 1 LOW
Other records, highest priority first
- TI-2026-91365 OpenEMR OAuth scope flaw exposes FHIR Patient records to attackersPriority HIGH 81
Timeline
- 2026-11-13 Threatist record created from CVE-2026-126494
- 2026-11-13 Alias added: GHSA-q8w8-wv2v-7crx
References
More openemr vulnerabilities
- TI-2026-91365 OpenEMR OAuth scope flaw exposes FHIR Patient records to attackers CVSS 4.0CRITICAL 9.3
- TI-2026-86808 Token replay and PIN brute force in OpenEMR one-time authentication CVSS 4.0CRITICAL 9.3
- TI-2026-24664 SQL Injection Vulnerability in ajax graphs library (OpenEMR) CVSS 3.1HIGH 8.8
- TI-2026-85645 Missing access checks in OpenEMR let users reassign documents CVSS 3.1CRITICAL 9.6
- TI-2026-28796 OpenEMR 8.2.0 Remote Code Execution via CategoryTree eval() Injection CVSS 4.0CRITICAL 9.4
- TI-2026-20308 OpenEMR's payments gateway_api_key secret rendered into client JS code CVSS 3.1CRITICAL 9.6
Sources
- CVE-2026-126494 · CVE Program
- CVE-2026-126494 · NVD
- FIRST EPSS
- GHSA-q8w8-wv2v-7crx · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences